How to get stacktrace for extending Ruby in C

Hi

I extend ruby with C .

i get error like segmentation fault when i call my client.rb

how can i get the stacktrace ?

Pls help me out

Thanks

Newb N. wrote:

Hi

I extend ruby with C .

i get error like segmentation fault when i call my client.rb

how can i get the stacktrace ?

You can use gdb to get a stack trace, as was documented by Mauricio,
Jamis, and Why a while back.

Not sure what this has to do with rspec, though.

Scott

Scott T. wrote:

Newb N. wrote:

Hi

I extend ruby with C .

i get error like segmentation fault when i call my client.rb

how can i get the stacktrace ?

You can use gdb to get a stack trace, as was documented by Mauricio,
Jamis, and Why a while back.

Not sure what this has to do with rspec, though.

Scott

thanks for the reply…

I m running on windows…

so is it possible to use gdb on windows…

Thanks

Newb N. wrote:

how can i get the stacktrace ?
thanks for the reply…

I m running on windows…

so is it possible to use gdb on windows…

http://hamsterrepublic.com/ohrrpgce/index.php/GDB_on_Windows.html

I’m sorry, but I couldn’t resist…
http://tinyurl.com/dcz4b9

If I had more direct experience I would offer it. :slight_smile:

-Ben

Newb,
I assume you are working in VisualStudio … Is it possible to recompile
all of Ruby in this environment? Or is it possible ot recompile your
extension in MingW?

Sorry to the rest of the group … This thread should be moved to the
Ruby list.

Brian

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs