>>>>> On Fri, 5 Oct 2007 20:36:58 +0200, Kern Sibbald said:
> 
> On Friday 05 October 2007 19:40, Dan Langille wrote:
> > On 5 Oct 2007 at 19:02, Kern Sibbald wrote:
> > > Could you be sure you are updated to the latest SVN and let me know if
> > > the crash is still happening.  The date printed by Bacula is still
> > > listed as 30 September 2007 so you may well be on the latest code.
> >
> > Right you are, I was behind.  I'm now on:
> >
> >  Bacula version:             2.3.6 (05 October 2007)
> 
> Yes, but something is wrong.  I think you have an old version of Bacula 
> running or somehow the build is not working because the traceback does not 
> correspond to the current source code.
> 
> Take a look at 
> 
> > #2  0x0806e1de in free_volume_list () at reserve.c:520
> 
> i.e. src/stored/reserve.c line 520,  and you will see that it does not 
> correspond to the debug output.  It seems to me that the debugger is 
> referencing an older binary.

That is probably an optimization v.s. debugging snafu.  Note the line=518 in
the args to d_msg is correct.

__Martin


> 
> Regards,
> 
> Kern
> 
> 
> >
> > > Also, please make sure the executable and the source code correspond.
> > > The traceback is complaining about that.
> >
> > I am not sure why:
> >
> > [EMAIL PROTECTED]:~/src/BaculaRegressionTesting] $ ls -l *.core
> > -rw-------  1 dan  dan  10321920 Oct  5 13:34 bacula-sd.core
> > [EMAIL PROTECTED]:~/src/BaculaRegressionTesting] $ date
> > Fri Oct  5 13:36:23 EDT 2007
> > [EMAIL PROTECTED]:~/src/BaculaRegressionTesting] $ gdb bin/bacula-sd bacula-
> > sd.core
> > GNU gdb 6.1.1 [FreeBSD]
> > 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 "i386-marcel-freebsd"...
> > Core was generated by `bacula-sd'.
> > Program terminated with signal 11, Segmentation fault.
> > Reading symbols from /lib/libz.so.4...done.
> > Loaded symbols for /lib/libz.so.4
> > Reading symbols from /lib/libthr.so.3...done.
> > Loaded symbols for /lib/libthr.so.3
> > Reading symbols from /usr/local/lib/libintl.so.8...done.
> > Loaded symbols for /usr/local/lib/libintl.so.8
> > Reading symbols from /usr/local/lib/libiconv.so.3...done.
> > Loaded symbols for /usr/local/lib/libiconv.so.3
> > Reading symbols from /usr/lib/libssl.so.5...done.
> > Loaded symbols for /usr/lib/libssl.so.5
> > Reading symbols from /lib/libcrypto.so.5...done.
> > Loaded symbols for /lib/libcrypto.so.5
> > Reading symbols from /usr/lib/libstdc++.so.6...done.
> > Loaded symbols for /usr/lib/libstdc++.so.6
> > Reading symbols from /lib/libm.so.5...done.
> > Loaded symbols for /lib/libm.so.5
> > Reading symbols from /lib/libgcc_s.so.1...done.
> > Loaded symbols for /lib/libgcc_s.so.1
> > Reading symbols from /lib/libc.so.7...done.
> > Loaded symbols for /lib/libc.so.7
> > Reading symbols from /libexec/ld-elf.so.1...done.
> > Loaded symbols for /libexec/ld-elf.so.1
> > #0  0x0807c310 in bvsnprintf (buffer=0xbf9fd6fe "free vol_list
> > Volume=TestVolume001 dev=n/src/BaculaRegressionTesting/tmp\n",
> >     maxlen=4970, format=0x809d68a "\n", args=0xbf9fea98
> > "¨ê\237¿pá\006\b") at bsnprintf.c:413
> >
> > warning: Source file is more recent than executable.
> >
> > 413        strln = strlen(value);
> > [New Thread 0x28601200 (LWP 100526)]
> > [New Thread 0x28601100 (LWP 100331)]
> > [EMAIL PROTECTED]:~/src/BaculaRegressionTesting] $ ls -l
> > ./build/src/stored/stored.c
> > -rw-r--r--  1 dan  dan  18787 Sep 29 15:16
> > ./build/src/stored/stored.c
> > [EMAIL PROTECTED]:~/src/BaculaRegressionTesting] $ date
> > Fri Oct  5 13:36:45 EDT 2007
> > [EMAIL PROTECTED]:~/src/BaculaRegressionTesting] $
> >
> >
> > (gdb) traceback
> > Undefined command: "traceback".  Try "help".
> > (gdb) backtrace
> > #0  0x0807c310 in bvsnprintf (buffer=0xbf9fd6fe "free vol_list
> > Volume=TestVolume001 dev=n/src/BaculaRegressionTesting/tmp\n",
> >     maxlen=4970, format=0x809d68a "\n", args=0xbf9fea98
> > "¨ê\237¿pá\006\b") at bsnprintf.c:413
> > #1  0x08084a1e in d_msg (file=0x809cf5b "reserve.c", line=518,
> > level=0, fmt=0x809d66c "free vol_list Volume=%s dev=%s\n")
> >     at message.c:864
> > #2  0x0806e1de in free_volume_list () at reserve.c:520
> > #3  0x0804cf94 in terminate_stored (sig=15) at stored.c:608
> > #4  0x0808c21d in signal_handler (sig=15) at signal.c:180
> > #5  0xbfbfffb4 in ?? ()
> > #6  0x0000000f in ?? ()
> > #7  0x00000000 in ?? ()
> > #8  0xbf9febc0 in ?? ()
> > #9  0x00000000 in ?? ()
> > #10 0x0808bec8 in get_signal_name () at signal.c:72
> > #11 0x280f81de in pthread_cond_init () from /lib/libthr.so.3
> > #12 0x080900bc in workq_server (arg=0xbf9fef3c) at workq.c:332
> > #13 0x280f1a7f in pthread_getprio () from /lib/libthr.so.3
> > #14 0xbf6fbfec in ?? ()
> > Current language:  auto; currently c++
> > (gdb)
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Bacula-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-devel
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to