Jump to content

Recommended Posts

  • 38 years later...
Posted

I have found that sometimes developers ask to provide debug from GDB, but I was not able to find how to do it in proper way. So I tried to do it myself without any manual and I've got problem.

So I try to connect gdb to running mangos via PID:

gdb --pid=1234

gdb starts do something and then it paused with these lines in the end of stdout:

Loaded symbols for /lib64/ld-linux-x86-64.so.2

Reading symbols from /lib/libnss_files.so.2...done.

Loaded symbols for /lib/libnss_files.so.2

Failed to read a valid object file image from memory.

0x00002b13f3b6da96 in select () from /lib/libc.so.6

Mangos server freez after or during that.

After I press 'q' and quit gdb mangos server return to normal functioning.

Please help me to use gdb!

Posted

I start:

gdb ./mangos-worldd -x mangos.gdb --batch >>worldd.log 2>>worldd.err

It output:

Using host libthread_db library "/lib/libthread_db.so.1".

in worldd.log and finished. :(

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use