From: matz@... (Yukihiro Matsumoto) Date: 2003-12-04T16:31:40+09:00 Subject: Re: debugging [BUG] messages/c ext woes Hi, In message "debugging [BUG] messages/c ext woes" on 03/12/04, "Ara.T.Howard" writes: |i'm getting a fatal error using a little c extention i've written, one of |these (rb_fatal?) kinds: | | ./nfsstore.rb:123: [BUG] Segmentation fault Can you get the stack trace using gdb or some other debugger? I can say little from information you've supplied. |my understanding of StringValuePtr is that it would modifiy lockfile (lvalue) |in place and return a char * but this is the first extenstion i've written |since it was introduced. am i doing something silly there? should i be |taking a copy (dup) of lockfile before doing this? everything thing else looks |o.k. to me. No. It seems OK. But segmentation fault can be happen everywhere. Might be a bug in your code, might be a bug in the core, or might be a bug in the library you linked to the extension. matz.