On 20.04.2018 18:54, Martin Simmons wrote:
[...]


then keypunching your commands:

  > bt
  > thread apply all bt
  > info all
  > x/i $pc
  > x/64i $pc-0x30
  >


[...]

I guess gdb is keeping the bacula-fd process from segfaulting, because
it is still in the process list. No idea what the state "tsl" is. It's
either not stated in man ps or I've overlooked it.

The attach command pauses the process (the t in tsl means stopped by
debugger), so you need to enter the continue command to make it respond again.

After that, gdb should announce when the segfault occurs and you can then
enter the other commands (bt etc).

ok, I feel very stupid right now but it still seems not to work:

-----------------------------------------------------------------------------
heRPI02:~ $ ps aux |grep bacula-fd
root 8421 0.0 0.4 19508 4888 ? Ssl 13:25 0:00 /usr/sbin/bacula-fd -f -c /etc/bacula/bacula-fd.conf socrates 8466 0.0 0.0 6320 572 pts/1 S+ 13:25 0:00 grep --color=auto bacula-fd

heRPI02:~ $ sudo gdb
[sudo] password

GNU gdb (Raspbian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".

(gdb) attach 8421
Attaching to process 8421

[New LWP 8425]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
0x76925204 in select () at ../sysdeps/unix/syscall-template.S:84
84      ../sysdeps/unix/syscall-template.S: No such file or directory.

(gdb)
(gdb) continue

Continuing.
[New Thread 0x75c89450 (LWP 8483)]
[Thread 0x75c89450 (LWP 8483) exited]



#** at this point bconsole shows "Backup terminated with error**

bt
thread apply all bt
info all
x/i $pc
x/64i $pc-0x30


-----------------------------------------------------------------------------

Nothing there. What did I miss?


Thank your for your continuous support!


have a nice weekend!

Thorsten




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to