You are not logged in.

#1 2012-05-03 22:14:49

whoop
Member
Registered: 2009-05-28
Posts: 101

getting stacktrace from a daemon

I am getting a segfault in gvfsd-smb in a reproducable instance... I want to get a stacktraceand tried this using the info on https://wiki.archlinux.org/index.php/De … ing_Traces

I'm not succeeding via running

gdb /usr/lib/gvfs/gvfsd-smb

I'm thinking this is because it is a daemon that is allready running?
Any help apreciated in how to get stacktrace from the segfault...

Offline

#2 2012-05-03 22:25:36

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: getting stacktrace from a daemon

You can attach gdb to a running process with:

gdb /path/to/program running-program-id

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2012-05-03 22:54:53

whoop
Member
Registered: 2009-05-28
Posts: 101

Re: getting stacktrace from a daemon

Thanks, this seems to take me a step further. However running the suggested command seems to pause the process altogether...

Offline

#4 2012-05-03 23:19:02

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: getting stacktrace from a daemon

You need to enter 'continue' or 'c' at the gdb prompt. You could also step through the execution with the 'step' command.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

Board footer

Powered by FluxBB