[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

post mortem debugging possible?

wsdngatgoogle

6/1/2005 8:17:00 AM

Hi,

does anybody know how to get a core dump of failing Ruby programs on
Windows? I am trying to get a little bit more information about a
Segmentation Fault I get in the FXRuby part of my application. Dr.
Watson is enabled as post mortem debugger but this Dr. seems to detect
no failure at all with my crashing program.

Cheers
Sascha

3 Answers

Lothar Scholz

6/1/2005 11:57:00 AM

0

Hello Sascha,

SD> Hi,

SD> does anybody know how to get a core dump of failing Ruby programs on
SD> Windows? I am trying to get a little bit more information about a
SD> Segmentation Fault I get in the FXRuby part of my application. Dr.
SD> Watson is enabled as post mortem debugger but this Dr. seems to detect
SD> no failure at all with my crashing program.

First you must recompile FXRuby and especially Fox with all debugging
information turned on. Then it should be possible to attach MSVC to
the ruby.exe process. But make sure that the *.pdb files are put in
the same dir as the dll.

And remeber it's far from easy so be prepared that spend a lot of
time.


--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz http://www.ru...
CTO Scriptolutions Ruby, PHP, Python IDE 's




wsdngatgoogle

6/2/2005 8:00:00 AM

0

Hello Lothar,

thank you for the anwer. I added it to the RubyGarden page
DebugAnExtension.

> First you must recompile [...] with all
> debugging information turned on

This would help to use a debugger while execution. I was not aware of
the need for recompile to create a crash dump.

> And remeber it's far from easy so be
> prepared that spend a lot of time.

That's why I wanted to get an idea of where
to search for the error first. ;-)

Cheers,
Sascha

Lothar Scholz

6/2/2005 1:20:00 PM

0

Hello Sascha,


SD> This would help to use a debugger while execution. I was not aware of
SD> the need for recompile to create a crash dump.

A crash dump without debugging symbols will not help you very much as
it only points to some meaningless addresses and raw memory.
And remember that windows don't a have a concept like a crash dump
(as i think you compare it to a "core dump" on Unix systems) so a
crash dump is nothing more then attaching a debugger to a process that
run into an execeptional state.


--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz http://www.ru...
CTO Scriptolutions Ruby, PHP, Python IDE 's