[pkg-bacula-devel] Bug#659032: bacula-sd segfaults
Alexander Fisher
alex at alexfisher.me.uk
Tue Feb 7 15:40:45 UTC 2012
Package: bacula-sd
Version: 5.0.2-2.2+b1
Severity: important
Hi, I repeatably have bacula-sd segfaulting during its overnight backup jobs. This renders it almost useless for me.
It never seems to crash if all backup clients are switched on, but segfaults most times otherwise.
I'm using options to both encrypt communications between bacula components and I've also configured actual data encryption.
Tape drive hardware compression is useless due to the data being encrypted, so gzip compression is also turned on in bacula for most of my backups.
I had to rebuild the package with debugging symbols not stripped, but was then able to capture the following backtrace in gdb. I hope this is enough to trace the bug, but am otherwise happy to provide more information.
Many Thanks,
Alex
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff312f700 (LWP 5115)]
0x00007ffff77c39e0 in ?? () from /usr/lib/libz.so.1
(gdb) thread apply all bt
Thread 26 (Thread 0x7ffff192c700 (LWP 5223)):
#0 0x00007ffff77c2faf in ?? () from /usr/lib/libz.so.1
#1 0x00007ffff77c3cfd in ?? () from /usr/lib/libz.so.1
#2 0x00007ffff77c2251 in deflate () from /usr/lib/libz.so.1
#3 0x00007ffff5daa802 in ?? () from /usr/lib/libcrypto.so.0.9.8
#4 0x00007ffff5da9bc0 in COMP_compress_block ()
from /usr/lib/libcrypto.so.0.9.8
#5 0x00007ffff604981e in ssl3_do_compress () from /usr/lib/libssl.so.0.9.8
#6 0x00007ffff604995e in ?? () from /usr/lib/libssl.so.0.9.8
#7 0x00007ffff6049e76 in ssl3_write_bytes () from /usr/lib/libssl.so.0.9.8
#8 0x00007ffff719309e in tls_bsock_writen(BSOCK*, char*, int) ()
from /usr/lib/bacula/libbac-5.0.1.so
#9 0x00007ffff7172e03 in write_nbytes(BSOCK*, char*, int) ()
from /usr/lib/bacula/libbac-5.0.1.so
#10 0x00007ffff717605d in BSOCK::send() () from /usr/lib/bacula/libbac-5.0.1.so
#11 0x00007ffff71765e3 in BSOCK::fsend(char const*, ...) ()
from /usr/lib/bacula/libbac-5.0.1.so
#12 0x00007ffff7186ab3 in dispatch_message(JCR*, int, long, char*) ()
from /usr/lib/bacula/libbac-5.0.1.so
#13 0x00007ffff7187404 in Jmsg(JCR*, int, long, char const*, ...) ()
from /usr/lib/bacula/libbac-5.0.1.so
#14 0x0000000000425eee in cancel_cmd (cjcr=0x806cd8) at dircmd.c:335
#15 0x00000000004258e1 in handle_connection_request (arg=0x7fffec000a88)
at dircmd.c:233
#16 0x00007ffff719a869 in workq_server () from /usr/lib/bacula/libbac-5.0.1.so
#17 0x00007ffff668b8ca in start_thread () from /lib/libpthread.so.0
#18 0x00007ffff524386d in clone () from /lib/libc.so.6
#19 0x0000000000000000 in ?? ()
Thread 24 (Thread 0x7ffff212d700 (LWP 5174)):
#0 0x00007ffff523d0e3 in select () from /lib/libc.so.6
#1 0x00007ffff719240f in tls_bsock_readn(BSOCK*, char*, int) ()
from /usr/lib/bacula/libbac-5.0.1.so
#2 0x00007ffff7175e27 in BSOCK::recv() () from /usr/lib/bacula/libbac-5.0.1.so
#3 0x00007ffff7171fea in bget_msg(BSOCK*) ()
from /usr/lib/bacula/libbac-5.0.1.so
#4 0x0000000000413667 in do_append_data (jcr=0x75e888) at append.c:183
#5 0x000000000042c66d in append_data_cmd (jcr=0x75e888) at fd_cmds.c:203
#6 0x000000000042c383 in do_fd_commands (jcr=0x75e888) at fd_cmds.c:162
#7 0x000000000042c1a7 in run_job (jcr=0x75e888) at fd_cmds.c:124
#8 0x000000000042dab9 in run_cmd (jcr=0x75e888) at job.c:225
#9 0x00000000004258e1 in handle_connection_request (arg=0x7fffec014378)
at dircmd.c:233
#10 0x00007ffff719a869 in workq_server () from /usr/lib/bacula/libbac-5.0.1.so
#11 0x00007ffff668b8ca in start_thread () from /lib/libpthread.so.0
#12 0x00007ffff524386d in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()
Thread 18 (Thread 0x7ffff4f5b700 (LWP 5140)):
#0 0x00007ffff523d0e3 in select () from /lib/libc.so.6
#1 0x00007ffff719240f in tls_bsock_readn(BSOCK*, char*, int) ()
from /usr/lib/bacula/libbac-5.0.1.so
#2 0x00007ffff7175be7 in BSOCK::recv() () from /usr/lib/bacula/libbac-5.0.1.so
#3 0x00007ffff7171fea in bget_msg(BSOCK*) ()
from /usr/lib/bacula/libbac-5.0.1.so
#4 0x00000000004130ee in do_append_data (jcr=0x699648) at append.c:151
#5 0x000000000042c66d in append_data_cmd (jcr=0x699648) at fd_cmds.c:203
#6 0x000000000042c383 in do_fd_commands (jcr=0x699648) at fd_cmds.c:162
#7 0x000000000042c1a7 in run_job (jcr=0x699648) at fd_cmds.c:124
#8 0x000000000042dab9 in run_cmd (jcr=0x699648) at job.c:225
#9 0x00000000004258e1 in handle_connection_request (arg=0x7fffec016cf8)
at dircmd.c:233
#10 0x00007ffff719a869 in workq_server () from /usr/lib/bacula/libbac-5.0.1.so
#11 0x00007ffff668b8ca in start_thread () from /lib/libpthread.so.0
#12 0x00007ffff524386d in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()
Thread 13 (Thread 0x7ffff312f700 (LWP 5115)):
#0 0x00007ffff77c39e0 in ?? () from /usr/lib/libz.so.1
#1 0x00007ffff77c2251 in deflate () from /usr/lib/libz.so.1
#2 0x00007ffff5daa802 in ?? () from /usr/lib/libcrypto.so.0.9.8
#3 0x00007ffff5da9bc0 in COMP_compress_block ()
from /usr/lib/libcrypto.so.0.9.8
#4 0x00007ffff604981e in ssl3_do_compress () from /usr/lib/libssl.so.0.9.8
#5 0x00007ffff604995e in ?? () from /usr/lib/libssl.so.0.9.8
#6 0x00007ffff6049e76 in ssl3_write_bytes () from /usr/lib/libssl.so.0.9.8
#7 0x00007ffff719309e in tls_bsock_writen(BSOCK*, char*, int) ()
from /usr/lib/bacula/libbac-5.0.1.so
#8 0x00007ffff7172e03 in write_nbytes(BSOCK*, char*, int) ()
from /usr/lib/bacula/libbac-5.0.1.so
#9 0x00007ffff717605d in BSOCK::send() () from /usr/lib/bacula/libbac-5.0.1.so
#10 0x0000000000425a39 in handle_connection_request (arg=0x7fffec015348)
at dircmd.c:251
#11 0x00007ffff719a869 in workq_server () from /usr/lib/bacula/libbac-5.0.1.so
#12 0x00007ffff668b8ca in start_thread () from /lib/libpthread.so.0
#13 0x00007ffff524386d in clone () from /lib/libc.so.6
#14 0x0000000000000000 in ?? ()
Thread 3 (Thread 0x7ffff475a700 (LWP 4938)):
#0 0x00007ffff6690569 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib/libpthread.so.0
#1 0x00007ffff719a3d8 in watchdog_thread ()
from /usr/lib/bacula/libbac-5.0.1.so
#2 0x00007ffff668b8ca in start_thread () from /lib/libpthread.so.0
#3 0x00007ffff524386d in clone () from /lib/libc.so.6
#4 0x0000000000000000 in ?? ()
Thread 1 (Thread 0x7ffff7fe6720 (LWP 4933)):
#0 0x00007ffff523d0e3 in select () from /lib/libc.so.6
#1 0x00007ffff71739f1 in bnet_thread_server(dlist*, int, workq_tag*, void* (*)(void*)) () from /usr/lib/bacula/libbac-5.0.1.so
#2 0x00000000004087ca in main (argc=0, argv=0x7fffffffe700) at stored.c:312
-- System Information:
Debian Release: 6.0.4
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages bacula-sd depends on:
ii bacula-common 5.0.2-2.2+b1 network backup, recovery and verif
ii libacl1 2.2.49-4 Access control list shared library
ii libattr1 1:2.4.44-2 Extended attribute shared library
ii libc6 2.11.3-2 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.5-8 GCC support library
ii libpython2.6 2.6.6-8+b1 Shared Python runtime library (ver
ii libssl0.9.8 0.9.8o-4squeeze7 SSL shared libraries
ii libstdc++6 4.4.5-8 The GNU Standard C++ Library v3
ii libwrap0 7.6.q-19 Wietse Venema's TCP wrappers libra
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii mtx 1.3.12-3 controls tape autochangers
ii python 2.6.6-3+squeeze6 interactive high-level object-orie
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages bacula-sd recommends:
ii bacula-sd-pgsql [bacula-sd- 5.0.2-2.2+b1 network backup, recovery and verif
ii mt-st 1.1-4 Linux SCSI tape driver aware magne
Versions of packages bacula-sd suggests:
pn dds2tar <none> (no description available)
ii scsitools 0.10-2.1 Collection of tools for SCSI hardw
ii sg3-utils 1.29-1 utilities for devices using the SC
-- Configuration Files:
/etc/init.d/bacula-sd changed [not included]
-- no debconf information
More information about the pkg-bacula-devel
mailing list