a guest Apr 29th, 2009 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # gdb --args /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u root -g tape -f
  2. GNU gdb 6.8-debian
  3. Copyright (C) 2008 Free Software Foundation, Inc.
  4. License GPLv3+: GNU GPL version 3 or later <>
  5. This is free software: you are free to change and redistribute it.
  6. There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  7. and "show warranty" for details.
  8. This GDB was configured as "x86_64-linux-gnu"...
  9. (gdb) run
  10. Starting program: /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u root -g tape -f
  11. Failed to read a valid object file image from memory.
  12. [Thread debugging using libthread_db enabled]
  13. [New Thread 0x7f09918656f0 (LWP 3390)]
  14. [New Thread 0x4169c950 (LWP 3394)]
  15. [Thread 0x4169c950 (LWP 3394) exited]
  16. [New Thread 0x41e9d950 (LWP 3395)]
  17. [New Thread 0x4169c950 (LWP 3396)]
  19. Program received signal SIGSEGV, Segmentation fault.
  20. [Switching to Thread 0x4169c950 (LWP 3396)]
  21. 0x000000000043855b in read_records (dcr=0x1d07248, record_cb=0x42f3e4 <record_cb>, mount_cb=0x431c40 <mount_next_read_volume(DCR*)>) at read_record.c:225
  22. 225     read_record.c: No such file or directory.
  23.         in read_record.c
  24. Current language:  auto; currently c++
  25. (gdb)  print jcr
  26. $1 = (JCR *) 0xc0e3249e2fdb77ce
  27. (gdb) print *jcr
  28. Cannot access memory at address 0xc0e3249e2fdb77ce
  29. (gdb) print jcr->dcr
  30. Cannot access memory at address 0xc0e3249e2fdb7b26
  31. (gdb) print *(jcr->dcr)
  32. Cannot access memory at address 0xc0e3249e2fdb7b26
  33. (gdb)
RAW Paste Data