Problem with Solaris extension for 'ps'

Hi,

I’m working on a Ruby extension for the ‘ps’ command. I’ve got a
working version for Linux (at home), but I’m hitting a snag with my
Solaris version. It compiles, it runs - then it core dumps. The
problem appears to be something it doesn’t like about the way I
create
my return struct. There are some debug printf statements in there.
It
appears to core dump the moment it tries to return a rb_struct. Any
ideas? Something wrong with the way I create the struct? Some
malloc
that needs doing?

You don’t store the defined Struct.

Gah! That’s it. Thanks!

Regards,

Dan

···

-----Original Message-----
From: nobu.nokada@softhome.net nobu.nokada@softhome.net
To: ruby-talk ML ruby-talk@ruby-lang.org
Date: Monday, July 01, 2002 3:13 PM
Subject: Re: Problem with Solaris extension for ‘ps’

At Tue, 2 Jul 2002 04:34:51 +0900, >Mr. Sunblade djberge@qwest.com wrote: