Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157140 - Bacula 1.38.9 does not work with autoloader (bacula-sd segfaults)
Summary: Bacula 1.38.9 does not work with autoloader (bacula-sd segfaults)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: App-Backup Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-04 14:37 UTC by Arhont
Modified: 2007-04-04 08:37 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arhont 2006-12-04 14:37:01 UTC
Bacula does not start when using an autoloader setup in bacula-sd.conf. The bacula-sd process segfaults. Strace shows a crash after reading from /dev/urandom. 

After copying ebuild to 1.38.11 and installing the latest version, bacula starts without any issues.


If you need more info, please let me know


Output from starting bacula:

---start---
/etc/init.d/bacula-all start
 * Starting bacula file daemon ...
 * Starting bacula director ...
 * Starting bacula storage daemon ...
04-Dec 21:50 bacula-sd: Fatal Error because: Bacula interrupted by signal 11: Segmentation violation
Kaboom! bacula-sd, bacula-sd got signal 11. Attempting traceback.
Kaboom! exepath=/usr/sbin/
Calling: /usr/sbin/btraceback /usr/sbin/bacula-sd 9988
bsmtp: bsmtp.c:286 Fatal connect error to localhost: ERR=Connection refused
Traceback complete, attempting cleanup ...
Orphaned buffer:       9 bytes allocated at line 385 of bacula-sd parse_conf.c
Orphaned buffer:       9 bytes allocated at line 385 of bacula-sd parse_conf.c                                                                         [ !! ]

---stop---


Output from gdb:

---start---
gdb --args /usr/sbin/bacula-sd -u root -g bacula -c /etc/bacula/bacula-sd.conf
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/sbin/bacula-sd -u root -g bacula -c /etc/bacula/bacula-sd.conf
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1212418384 (LWP 10006)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212418384 (LWP 10006)]
0x08051b30 in ?? ()
(gdb) bt
#0  0x08051b30 in ?? ()
#1  0x0804fcce in ?? ()
#2  0xb7bda87c in __libc_start_main () from /lib/libc.so.6
#3  0x0804f1d1 in ?? ()

---end---


Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-gentoo-r3 i686)
=================================================================
System uname: 2.6.18-gentoo-r3 i686 AMD Athlon(tm) XP 3200+
Gentoo Base System version 1.12.6
Last Sync: Sat, 02 Dec 2006 12:20:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ ftp://mir.zyrianes.net/gentoo/"
LINGUAS="ru en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://192.168.66.102/gentoo-portage"
USE="x86 3dnow 7zip X509 acl acpi bash-completion berkdb bitmap-fonts bzip2 chroot cracklib crypt cups elibc_glibc fortran gd gdbm gmp gnutls gpm hpn iconv input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux keyscrub ldap libg++ linguas_en_GB linguas_ru lm_sensors mmx mysql ncurses nls nptl nptlonly ntlm pam pcre perl python radius readline reflection samba sasl sensord session slang snmp spell spl sse ssl syslog tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU utf8 video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo xfs xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kevin Worth 2006-12-13 15:37:38 UTC
I am having the same problem. Resolution the same as reporter's. This should be a reason to do the version bump to 1.38.11 as this is completely BROKEN for people using autochangers.
Comment 2 Aury Fink Filho 2007-01-02 05:06:35 UTC
I'm using with a MSL5060 in production env ... You should recompile with -O1 insted of -O2 to make sd works
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-04-04 08:37:55 UTC
Only 1.36.3-r2 and 2.0.3 left in the tree. If you can reproduce w/ 2.0.3, feel free to reopen this bug.