From: Jeffrey L. <jtl...@po...> - 2004-03-17 13:23:25
|
On Wed, 2004-03-17 at 03:16, Kern Sibbald wrote: > Hello, > > Hmmm. It is hard to know if the problem is because of the drive or the > 2.6 kernel. In principle, there is no reason for Bacula to die where it > did even if there is a problem with the drive unless something is > *seriously* wrong. I have two suggestions: > > 1. Run Bacula under the debugger again and when it crashes, enter: > > print *rec > print FI_to_ascii(rec->FileIndex) > print stream_to_ascii(rec->Stream, rec->FileIndex) > > I've never tried printing a subroutine call, so the last two may die. If > they do, you might try investigating a bit further. > > 2. Please download the latest 1.33 from the CVS, if possible. If not, > get the latest devel 1.33 tar. Then build (not necessary to install) and > run btape "test" on your tape drive. That should give us more > information on whether or not Bacula should work with your drive. > > Best regards, Kern Here's the results of rerunning it under the debugger: (gdb) run -s -f -c /etc/bacula/bacula-sd.conf Starting program: /usr/sbin/bacula-sd -s -f -c /etc/bacula/bacula-sd.conf [New Thread 1076241504 (LWP 23153)] [New Thread 1084631984 (LWP 23156)] [New Thread 1093020592 (LWP 23157)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1084631984 (LWP 23156)] 0x08060d9f in read_record_from_block(DEV_BLOCK*, DEV_RECORD*) ( block=0x8088418, rec=0x809a060) at record.c:517 517 Dmsg4(90, "Rtn full rd_rec_blk FI=%s SessId=%d Strm=%s len=%d\n", Current language: auto; currently c++ (gdb) print *rec $1 = {link = {next = 0x0, prev = 0x0}, File = 0, Block = 0, VolSessionId = 0, VolSessionTime = 0, FileIndex = -601169513, Stream = 1657491929, data_len = 0, remainder = 0, state = 32, bsr = 0x0, ser_buf = '\0' <repeats 11 times>, data = 0x809a0d0 'U' <repeats 200 times>...} (gdb) print FI_to_ascii(rec->FileIndex) $2 = 0x8087608 "unknown: -601169513" (gdb) print stream_to_ascii(rec->Stream, rec->FileIndex) $3 = 0x808761c "1657491929" (gdb) I'll see about downloading the CVS version a little later and building btape. I did run btape test prior to configuring bacula with the version of btape that came in the Debian package, and it seemed to work fine. Let me know if the above debugger info sheds any light on the problem. The negative number for the FileIndex looks a little suspicious. Thanks, Jeff |