Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

use gdb to close files of (buggy) application

14 views
Skip to first unread message

adirtymindisajoyforever

unread,
May 24, 2012, 3:22:54 AM5/24/12
to
Hi,

I have a java application that doesn't close its sockets, so
tried to solve the problem with gdb.

# gdb -p 1111
(gdb) call close(14)
No symbol table is loaded. Use the "file" command.

So I tried
(gdb) symbol-file /lib/libc.so.1
Reading symbols from /lib/libc.so.1...(no debugging symbols
found)...done.
warning: sol_thread_new_objfile: td_ta_new: Debugger service failed
(gdb) call close(14)
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0xffffffff: I/O error.

Any idea of how to get the desired result?

Yes, I can restart the app, and even change the source code, but just
a very bit curieus.

Tnx in advance for all answers.
0 new messages