Hi I already post about this problems but the help of Martin Simmons i dig up a bit and lok like
my problems come from the function : bool init_autochangers()
if (!device->changer_name && changer->changer_name) { device->changer_name = bstrdup(changer->changer_name); } if (!device->changer_command && changer->changer_command) { device->changer_command = bstrdup(changer->changer_command); } look like the device pointer is not initialise and causing sd to crash. what can be doing that ? here is my config : - Mandrive 2006 - bacula 1.38.5 (mysql) build on the system from the RPMS (i have to update it for Mandriva) - Librairy Exabyte 220 - tape drive exabyte mammoth-2 and the autochanger Section : # # Devices supported by this Storage daemon # To connect, the Director's bacula-dir.conf must have the # same Name and MediaType. # Autochanger { Name = Autochanger Device = Drive-1 Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/sg2 } Device { Name = "Drive-1" Media Type = "8mm" Archive Device = /dev/nst0 Hardware end of medium = No; AutomaticMount = yes; # when device opened, read it AlwaysOpen = Yes; RemovableMedia = yes; RandomAccess = no; AutoChanger = yes } the debug output : [EMAIL PROTECTED] sbin]# export LD_ASSUME_KERNEL=2.4.19 [EMAIL PROTECTED] sbin]# gdb ./bacula-sd GNU gdb 6.3-5mdk (Mandriva Linux release 2006.0) Copyright 2004 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 "i586-mandriva-linux-gnu"...Using host libthread_db library "/lib/i686/libthread_db.so.1". (gdb) run -s -f -d 99 -c /etc/bacula/bacula-sd.conf Starting program: /usr/sbin/bacula-sd -s -f -d 99 -c /etc/bacula/bacula-sd.conf Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xffffe000 [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 24064)] bacula-sd: stored_conf.c:613 Inserting director res: cow-mon Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 24064)] 0x0804dff4 in init_autochangers () at autochanger.c:48 48 if (!device->changer_command && changer->changer_command) { Current language: auto; currently c++ (gdb) thread apply all bt Thread 1 (Thread 16384 (LWP 24064)): #0 0x0804dff4 in init_autochangers () at autochanger.c:48 #1 0x0804c170 in main (argc=Variable "argc" is not available. ) at stored.c:399 #2 0xb7ae134e in __libc_start_main () from /lib/i686/libc.so.6 #3 0x0804b841 in _start () If i remove autochanger section , sd start fine. I am beggin for help now .... :( thanks ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users