]> git.sur5r.net Git - bacula/bacula/commitdiff
Update
authorKern Sibbald <kern@sibbald.com>
Mon, 18 Jun 2007 14:29:50 +0000 (14:29 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 18 Jun 2007 14:29:50 +0000 (14:29 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5036 91ce42f0-d328-0410-95d8-f526ca767f89

regress/README
regress/tests/bscan-test
regress/tests/regexwhere-test

index efd85e9e8eeb87c03eeae416df747fda0c436054..5f5aad70aa44ea365409083eb609951ce8b94bee 100644 (file)
@@ -143,3 +143,31 @@ Also, if you run from time to time on a computer that is not connected
 to the network, please be sure that "hostname" is set to "localhost",
 otherwise, your tests may fail because the hostname used by Bacula's
 ./configure cannot be properly resolved.
+
+Anyway, you can debug where it is happening in the source code using the 
+following example.  For example, here I get the following backtrace:
+
+======= Backtrace: =========
+/lib/libc.so.6[0xb7b9d6e1]
+/lib/libc.so.6(cfree+0x89)[0xb7b9ed79]
+/home/kern/bacula/regress/bin/bacula-fd[0x8082ae5]
+/home/kern/bacula/regress/bin/bacula-fd[0x8082d58]
+/home/kern/bacula/regress/bin/bacula-fd[0x80838ac]
+/home/kern/bacula/regress/bin/bacula-fd[0x807aa3f]
+/home/kern/bacula/regress/bin/bacula-fd[0x807ac29]
+/home/kern/bacula/regress/bin/bacula-fd[0x804d188]
+/lib/libc.so.6(__libc_start_main+0xdc)[0xb7b4ef9c]
+/home/kern/bacula/regress/bin/bacula-fd[0x804cd21]
+
+Now to convert this into something more meaningful, kill off any hung Bacula 
+processes.  Note the one that was running -- above you see that it was 
+bacula-fd, then bring the same binary up in the debugger.  Then start at the 
+first bacula-fd line, and feed the hex number to gdb as follows:
+
+info symbol 0x8082ae5
+free_addresses(dlist*) + 53 in section .text
+
+info symbol 0x8082d58
+add_address(dlist**, IPADDR::i_type, unsigned short, int, char const*, char 
+const*, char**) + 568 in section .text
+
index 59c4905400e42347613ace7d9560f763b518e242..a009c932d7b3fb486dbb4d8a9f558fbff1d26775 100755 (executable)
@@ -29,6 +29,12 @@ update Volume=TestVolume001 MaxVolBytes=3000000
 run job=$JobName storage=File1
 yes
 wait
+list volumes
+list files jobid=1
+sql
+select * from JobMedia;
+
+
 messages
 @$out /dev/null
 @#
@@ -48,13 +54,10 @@ run_bacula
 check_for_zombie_jobs storage=File1
 stop_bacula
 
-echo "volume=TestVolume001|TestVolume002" >tmp/bscan.bsr
+echo "volume=TestVolume001" >tmp/bscan.bsr
+echo "volume=TestVolume002" >>tmp/bscan.bsr
 
-if test "$debug" -eq 1 ; then
-  bin/bscan -w working -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf ${cwd}/tmp
-else
-  bin/bscan -w working -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf ${cwd}/tmp 2>&1 >/dev/null
-fi
+bin/bscan -w working -u regress -n regress -m -s -v -b tmp/bscan.bsr -c bin/bacula-sd.conf ${cwd}/tmp 2>&1 >tmp/log3.out
 
 cat <<END_OF_DATA >tmp/bconcmds
 @$out /dev/null
index cecbc5f95f47c6bd998ccd3ab7110648486ffcb5..d38537c1282606d890be853ef9ff0056717904dc 100755 (executable)
@@ -8,12 +8,9 @@ JobName=backup
 
 . scripts/functions
 
-copy_test_confs
+scripts/cleanup
+scripts/copy_test_confs
 
-rm -f bin/bacula-dir.conf
-rm -f tmp/RUN*
-rm -f ${cwd}/build/po/*old*
-rm -rf tmp/po
 /bin/cp -f scripts/bacula-dir.conf.regexwhere bin/bacula-dir.conf
 
 echo "${cwd}/build/po" >/tmp/file-list
@@ -160,9 +157,8 @@ messages
 quit
 END_OF_DATA
 
+run_bacula
 
-bin/bacula start
-cat tmp/bconcmds | bin/bconsole -c bin/bconsole.conf > /dev/null
 stop_bacula