Forum: RSpec How to get stacktrace for extending Ruby in C

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3083ca8f0496edaac2fa10c20630d0bc?d=identicon&s=25 Newb Newb (newb)
on 2009-04-21 09:28
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
369b9fd2a0d9e7cdbc60907a2a056ad9?d=identicon&s=25 Scott Taylor (Guest)
on 2009-04-21 15:42
(Received via mailing list)
Newb Newb 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
3083ca8f0496edaac2fa10c20630d0bc?d=identicon&s=25 Newb Newb (newb)
on 2009-04-22 05:28
Scott Taylor wrote:
> Newb Newb 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
C694a032be7518a0d704318895f8fe1d?d=identicon&s=25 Ben Mabey (mabes)
on 2009-04-22 06:43
(Received via mailing list)
Newb Newb 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_...

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

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

-Ben
75a43ab10305dddce2b72827a5cbb0b9?d=identicon&s=25 Brian Colfer (briancolfer)
on 2009-04-22 19:31
(Received via mailing list)
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 topic is locked and can not be replied to.