From: Kern S. <ke...@si...> - 2003-11-01 17:31:58
|
Hello, Unfortunately it did not work because it got a SIG32, which is probably something that the pthreads library on your machine uses (must be FreeBSD). Can you try it once more, and when the debugger stops on: Program received signal SIG32, Real-time event 32. enter: cont and wait a bit. If it comes back to the command prompt again, try "cont" again. Hopefully you will get to the point where the debugger does not come back to the command prompt. At that point, start the console and run your estimate command. If all goes well, the debugger will say Program received signal SIG11 ... at that point, please enter the commands I gave you for the debugger. Thanks, Kern On Sat, 2003-11-01 at 16:20, Johan Decock wrote: > I did what you asked. But I don't know whether it did what you needed. > > Here is the output of gdb: > > [root@tosfeb33 jo]# cd /usr/bin/bacula/ > [root@tosfeb33 bacula]# gdb ./bacula-dir > GNU gdb 5.3-25mdk (Mandrake Linux) > Copyright 2002 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-mandrake-linux-gnu"... > (gdb) run -s -f -c /etc/ba > bacula bash_completion.d bashrc > (gdb) run -s -f -c /etc/bacula/b > bacula bacula-dir.conf.new bacula-fd.conf.new bacula-sd.conf.new > bacula-dir.conf bacula-fd.conf bacula-sd.conf > (gdb) run -s -f -c /etc/bacula > Starting program: /usr/bin/bacula/bacula-dir -s -f -c /etc/bacula > bacula-dir: Fatal error: No Director resource defined in /etc/bacula > Without that I don't know who I am :-( > bacula-dir: Fatal error: No Job records defined in /etc/bacula > bacula-dir ERROR TERMINATION > Please correct configuration file: /etc/bacula > > Program exited with code 01. > (gdb) run -s -f -c /etc/bacula/ba > bacula bacula-dir.conf.new bacula-fd.conf.new bacula-sd.conf.new > bacula-dir.conf bacula-fd.conf bacula-sd.conf > (gdb) run -s -f -c /etc/bacula/bacula- > bacula-dir.conf bacula-fd.conf bacula-sd.conf > bacula-dir.conf.new bacula-fd.conf.new bacula-sd.conf.new > (gdb) run -s -f -c /etc/bacula/bacula-di > bacula-dir.conf bacula-dir.conf.new > (gdb) run -s -f -c /etc/bacula/bacula-dir.conf > Starting program: /usr/bin/bacula/bacula-dir -s -f -c /etc/bacula/bacula-dir.conf > > Program received signal SIG32, Real-time event 32. > 0x40028714 in pthread_getconcurrency () from /lib/i686/libpthread.so.0 > (gdb) thread apply all bt > (gdb) info locals > No symbol table info available. > (gdb) print *jcr > No symbol "jcr" in current context. > (gdb) > > And here is what I did in the console (which hangs now) > > [root@tosfeb33 bacula]# /etc/bacula/console > Connecting to Director tosfeb33.abis.be:9101 > 1000 OK: tosfeb33-dir Version: 1.32c (30 Oct 2003) > * > You have messages. > *me > 01-Nov-2003 16:05 tosfeb33-dir: Shutting down Bacula service: tosfeb33-dir ... > *list nextvolume > Using default Catalog name=MyCatalog DB=bacula > The defined Job resources are: > 1: Tosfeb31AllHDD > 2: Tosfeb31AllUSB > 3: Tosfeb31EssentialDVD > 4: Tosfeb31AllCompressedDVD > 5: Tosfeb32AllHDD > 6: Tosfeb32AllUSB > 7: Tosfeb32EssentialDVD > 8: Tosfeb30System > 9: BackupCatalogHDD > 10: BackupCatalogUSB > 11: BackupCatalogDVD > 12: RestoreFiles > Select Job resource (1-12): 1 > Unknown list keyword: list > The defined Job resources are: > 1: Tosfeb31AllHDD > 2: Tosfeb31AllUSB > 3: Tosfeb31EssentialDVD > 4: Tosfeb31AllCompressedDVD > 5: Tosfeb32AllHDD > 6: Tosfeb32AllUSB > 7: Tosfeb32EssentialDVD > 8: Tosfeb30System > 9: BackupCatalogHDD > 10: BackupCatalogUSB > 11: BackupCatalogDVD > 12: RestoreFiles > Select Job resource (1-12): 2 > > Here all execution stops and I did the three commands in gdb. I'm afraid something is wrong though. I had expected lots and lots of pointers and registers and variables and code and dead bodies to scroll over my screen. But no > > I hope it helps. > > Johan > > > > > From: Kern Sibbald <ke...@si...> on 01/11/2003 10:49 GMT > > To: Johan Decock/Abis@Abis > cc: bacula-users <bac...@li...> > Subject: Re: [Bacula-users] Kaboom asking for a list nextvolume > > > > Hello Johan, > > This Kaboom doesn't surprise me much, because it is new code > and it runs through a lot of code that is used for Job startup, > but without really starting a job, so it is a at risk of problems. > > If you can run this under the debugger, I should be able to find > the problem, fix it, and send you a patch. > > Please read over the following chapter: > > http://www.bacula.org/html-manual/kaboom.html > > and I know that you are *really* good at reading the manual. :-) > (he has sent me 30-40 typo corrections for the manual). > Perhaps simplify things and go directly to the "Manually Running > Bacula ..." rather than get bogged down in trying to make automatic > traceback work. > > Then, please try the following: > > - Stop Bacula > - Start the Director only (for this the other daemons are > not needed) with: > > gdb ./bacula-dir > > - At the command prompt, enter: > > run -s -f > > possibly adding "-c ...." if your bacula-dir.conf is > elsewhere. > > - In another shell, fire up the console, and run the commands > that cause Bacula to crash. When it does crash, the > debugger should report the problem and leave you at the > command prompt. > > - Enter: > > thread apply all bt > info locals > print *jcr > > - Send me the output. I may ask you to repeat the sequence > to get a bit more info after looking over what you send. > > Best regards, > > Kern > > On Sat, 2003-11-01 at 10:58, Johan Decock wrote: > > *status dir > > tosfeb33-dir Version: 1.32c (30 Oct 2003) i686-pc-linux-gnu mandrake (FiveStar) > > Daemon started 01-Nov-2003 10:42, 0 Jobs run. > > JobId 52 Job BackupCatalogDVD.2003-11-01_10.45.02 is waiting execution. > > JobId 51 Job Tosfeb32EssentialDVD.2003-11-01_10.45.01 is waiting execution. > > JobId 50 Job Tosfeb31EssentialDVD.2003-11-01_10.45.00 is running. > > Console connected at 01-Nov-2003 10:42 > > ==== > > *list nextvolume > > The defined Job resources are: > > 1: Tosfeb31AllHDD > > 2: Tosfeb31AllUSB > > 3: Tosfeb31EssentialDVD > > 4: Tosfeb31AllCompressedDVD > > 5: Tosfeb32AllHDD > > 6: Tosfeb32AllUSB > > 7: Tosfeb32EssentialDVD > > 8: Tosfeb30System > > 9: BackupCatalogHDD > > 10: BackupCatalogUSB > > 11: BackupCatalogDVD > > 12: RestoreFiles > > Select Job resource (1-12): 1 > > Unknown list keyword: list > > The defined Job resources are: > > 1: Tosfeb31AllHDD > > 2: Tosfeb31AllUSB > > 3: Tosfeb31EssentialDVD > > 4: Tosfeb31AllCompressedDVD > > 5: Tosfeb32AllHDD > > 6: Tosfeb32AllUSB > > 7: Tosfeb32EssentialDVD > > 8: Tosfeb30System > > 9: BackupCatalogHDD > > 10: BackupCatalogUSB > > 11: BackupCatalogDVD > > 12: RestoreFiles > > Select Job resource (1-12): 2 > > Kaboom! bacula-dir, tosfeb33-dir got signal 11. Attempting traceback. > > Calling: /usr/bin/bacula/btraceback /usr/bin/bacula/bacula-dir 32665 > > smtp: smtp.c:254 Fatal connect error: ERR=Connection refusedTraceback complete, attempting cleanup ... > > Orphaned buffer: 528 bytes allocated at line 769 of tosfeb33-dir bnet.c > > Orphaned buffer: 1040 bytes allocated at line 94 of tosfeb33-dir mysql.c > > Orphaned buffer: 1040 bytes allocated at line 96 of tosfeb33-dir mysql.c > > Orphaned buffer: 272 bytes allocated at line 61 of tosfeb33-dir jcr.c > > Orphaned buffer: 272 bytes allocated at line 200 of tosfeb33-dir ua_server.c > > Orphaned buffer: 272 bytes allocated at line 201 of tosfeb33-dir ua_server.c > > Orphaned buffer: 272 bytes allocated at line 97 of tosfeb33-dir mysql.c > > Orphaned buffer: 96 bytes allocated at line 765 of tosfeb33-dir bnet.c > > Orphaned buffer: 528 bytes allocated at line 770 of tosfeb33-dir bnet.c > > Orphaned buffer: 7 bytes allocated at line 771 of tosfeb33-dir bnet.c > > Orphaned buffer: 13 bytes allocated at line 772 of tosfeb33-dir bnet.c > > Orphaned buffer: 8 bytes allocated at line 157 of tosfeb33-dir workq.c > > Orphaned buffer: 992 bytes allocated at line 53 of tosfeb33-dir jcr.c > > Orphaned buffer: 528 bytes allocated at line 63 of tosfeb33-dir jcr.c > > Orphaned buffer: 312 bytes allocated at line 196 of tosfeb33-dir ua_server.c > > Orphaned buffer: 792 bytes allocated at line 79 of tosfeb33-dir mysql.c > > Orphaned buffer: 7 bytes allocated at line 81 of tosfeb33-dir mysql.c > > Orphaned buffer: 7 bytes allocated at line 82 of tosfeb33-dir mysql.c > > Orphaned buffer: 1 bytes allocated at line 84 of tosfeb33-dir mysql.c > > Orphaned buffer: 272 bytes allocated at line 100 of tosfeb33-dir mysql.c > > Orphaned buffer: 272 bytes allocated at line 101 of tosfeb33-dir mysql.c > > Orphaned buffer: 272 bytes allocated at line 102 of tosfeb33-dir mysql.c > > Orphaned buffer: 528 bytes allocated at line 63 of tosfeb33-dir jcr.c > > Orphaned buffer: 992 bytes allocated at line 53 of tosfeb33-dir jcr.c > > Orphaned buffer: 272 bytes allocated at line 61 of tosfeb33-dir jcr.c > > Orphaned buffer: 146 bytes allocated at line 415 of tosfeb33-dir job.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 24 bytes allocated at line 208 of tosfeb33-dir message.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 91 bytes allocated at line 205 of tosfeb33-dir message.c > > Orphaned buffer: 16 bytes allocated at line 208 of tosfeb33-dir message.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 79 bytes allocated at line 205 of tosfeb33-dir message.c > > Orphaned buffer: 16 bytes allocated at line 208 of tosfeb33-dir message.c > > Orphaned buffer: 88 bytes allocated at line 214 of tosfeb33-dir message.c > > Orphaned buffer: 12 bytes allocated at line 213 of tosfeb33-dir jobq.c > > Orphaned buffer: 992 bytes allocated at line 53 of tosfeb33-dir jcr.c > > Orphaned buffer: 272 bytes allocated at line 61 of tosfeb33-dir jcr.c > > Orphaned buffer: 528 bytes allocated at line 63 of tosfeb33-dir jcr.c > > Orphaned buffer: 146 bytes allocated at line 415 of tosfeb33-dir job.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 24 bytes allocated at line 208 of tosfeb33-dir message.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 91 bytes allocated at line 205 of tosfeb33-dir message.c > > Orphaned buffer: 16 bytes allocated at line 208 of tosfeb33-dir message.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 79 bytes allocated at line 205 of tosfeb33-dir message.c > > Orphaned buffer: 16 bytes allocated at line 208 of tosfeb33-dir message.c > > Orphaned buffer: 88 bytes allocated at line 214 of tosfeb33-dir message.c > > Orphaned buffer: 12 bytes allocated at line 213 of tosfeb33-dir jobq.c > > Orphaned buffer: 992 bytes allocated at line 53 of tosfeb33-dir jcr.c > > Orphaned buffer: 272 bytes allocated at line 61 of tosfeb33-dir jcr.c > > Orphaned buffer: 528 bytes allocated at line 63 of tosfeb33-dir jcr.c > > Orphaned buffer: 146 bytes allocated at line 415 of tosfeb33-dir job.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 24 bytes allocated at line 208 of tosfeb33-dir message.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 91 bytes allocated at line 205 of tosfeb33-dir message.c > > Orphaned buffer: 16 bytes allocated at line 208 of tosfeb33-dir message.c > > Orphaned buffer: 32 bytes allocated at line 199 of tosfeb33-dir message.c > > Orphaned buffer: 79 bytes allocated at line 205 of tosfeb33-dir message.c > > Orphaned buffer: 16 bytes allocated at line 208 of tosfeb33-dir message.c > > Orphaned buffer: 88 bytes allocated at line 214 of tosfeb33-dir message.c > > Orphaned buffer: 12 bytes allocated at line 213 of tosfeb33-dir jobq.c > > Orphaned buffer: 146 bytes allocated at line 274 of tosfeb33-dir job.c > > Orphaned buffer: 528 bytes allocated at line 139 of tosfeb33-dir fd_cmds.c > > Orphaned buffer: 272 bytes allocated at line 116 of tosfeb33-dir backup.c > > Orphaned buffer: 528 bytes allocated at line 640 of tosfeb33-dir message.c > > Orphaned buffer: 96 bytes allocated at line 765 of tosfeb33-dir bnet.c > > Orphaned buffer: 528 bytes allocated at line 769 of tosfeb33-dir bnet.c > > Orphaned buffer: 528 bytes allocated at line 770 of tosfeb33-dir bnet.c > > Orphaned buffer: 15 bytes allocated at line 771 of tosfeb33-dir bnet.c > > Orphaned buffer: 17 bytes allocated at line 772 of tosfeb33-dir bnet.c > > Orphaned buffer: 40 bytes allocated at line 127 of tosfeb33-dir msgchan.c > > Orphaned buffer: 96 bytes allocated at line 765 of tosfeb33-dir bnet.c > > Orphaned buffer: 528 bytes allocated at line 769 of tosfeb33-dir bnet.c > > Orphaned buffer: 528 bytes allocated at line 770 of tosfeb33-dir bnet.c > > Orphaned buffer: 12 bytes allocated at line 771 of tosfeb33-dir bnet.c > > Orphaned buffer: 17 bytes allocated at line 772 of tosfeb33-dir bnet.c > > Orphaned buffer: 6 bytes allocated at line 372 of tosfeb33-dir ua_status.c > > Orphaned buffer: 80 bytes allocated at line 87 of tosfeb33-dir bsys.c > > [root@tosfeb33 jo]# > > > > > > -------------------------------------------------------------------------- > > ABIS Training & Consulting > > website: http://www.abis.be - e-mail: tra...@ab... > > tel: Belgium: (+32)-16-245610 - The Netherlands: (+31)-348-435570 > > fax: Belgium: (+32)-16-245691 - The Netherlands: (+31)-348-432493 > > -------------------------------------------------------------------------- > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: SF.net Giveback Program. > > Does SourceForge.net help you be more productive? Does it > > help you create better code? SHARE THE LOVE, and help us help > > YOU! Click Here: http://sourceforge.net/donate/ > > _______________________________________________ > > Bacula-users mailing list > > Bac...@li... > > https://lists.sourceforge.net/lists/listinfo/bacula-users > > > > > > > > > -------------------------------------------------------------------------- > ABIS Training & Consulting > website: http://www.abis.be - e-mail: tra...@ab... > tel: Belgium: (+32)-16-245610 - The Netherlands: (+31)-348-435570 > fax: Belgium: (+32)-16-245691 - The Netherlands: (+31)-348-432493 > -------------------------------------------------------------------------- > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Bacula-users mailing list > Bac...@li... > https://lists.sourceforge.net/lists/listinfo/bacula-users |