Newb Newb
2009-Apr-21 07:28 UTC
[rspec-users] 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 -- Posted via http://www.ruby-forum.com/.
Scott Taylor
2009-Apr-21 13:39 UTC
[rspec-users] How to get stacktrace for extending Ruby in C
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> > Pls help me out > > Thanks >
Newb Newb
2009-Apr-22 03:28 UTC
[rspec-users] How to get stacktrace for extending Ruby in C
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. > > Scottthanks for the reply.. I m running on windows.. so is it possible to use gdb on windows.. Thanks -- Posted via http://www.ruby-forum.com/.
Ben Mabey
2009-Apr-22 04:41 UTC
[rspec-users] How to get stacktrace for extending Ruby in C
Newb Newb wrote:> 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.. >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. :) -Ben
Colfer, Brian
2009-Apr-22 17:17 UTC
[rspec-users] How to get stacktrace for extending Ruby in C
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 -----Original Message----- From: rspec-users-bounces at rubyforge.org [mailto:rspec-users-bounces at rubyforge.org] On Behalf Of Newb Newb Sent: Tuesday, April 21, 2009 8:28 PM To: rspec-users at rubyforge.org Subject: Re: [rspec-users] How to get stacktrace for extending Ruby in C 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. > > Scottthanks for the reply.. I m running on windows.. so is it possible to use gdb on windows.. Thanks -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users at rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users