debugging core dumps

J

Joe Van Dyk

Hi,

I'm developing a GUI program using ruby-gnome2. It's core dumping on exit.

How can I figure out what's going wrong? I tried using ddd on the
core dump and ruby interpreter, but didn't get very far.
 
G

Gennady Bystritksy

Joe said:
Hi,

I'm developing a GUI program using ruby-gnome2. It's core dumping on exit.

How can I figure out what's going wrong? I tried using ddd on the
core dump and ruby interpreter, but didn't get very far.

You can inspect coredumps with gdb together with the application that
dumped that core (ruby executable in your case, I presume). The most
straightforward information you can get is the execution stack that led
to the crash, if you are lucky ;-) (memory may be corrupted beyond
recognition).

gdb -c <your core file> /usr/local/bin/ruby

When you get a gdb prompt (normally, "(gdb) "), issue command
"backtrace" or "bt". Your executable must not be stripped so that you
get symbolic names, not just addresses.

Gennady.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,920
Members
47,462
Latest member
ChanaLipsc

Latest Threads

Top