Hi list,

I just hit a segmentation fault with my bacula installation. I hope
someone can help me how to get this fixed.

This happened now the second time within a week, so I think there
might be a bug in the sd code.

Environmental information:

Version: 5.0.3 (04 August 2010)
OS: SUSE Linux Enterprise Server 11 (i586) Patchlevel 1

Configure flags (manual build, no binary package):

./configure \
        --exec-prefix=/usr \
        --sysconfdir=/etc/bacula \
        --localstatedir=/var \
        --mandir=/usr/share/man \
        --datadir=/usr/share \
        --with-openssl \
        --with-mysql \
        --with-dir-group=bacula \
        --with-sd-group=bacula \
        --enable-smartalloc \
        --enable-batch-insert

storage daemon configuration:

Storage {                             # definition of myself
  Name = backup-sd
  SDPort = 9103                  # Director's port
  WorkingDirectory = "/var/bacula/working"
  Pid Directory = "/var/run"
  MaximumConcurrentJobs = 270
}
Device {
    Name                = FileStorage
    MediaType           = File
    DeviceType          = File
    ArchiveDevice       = /daten/backups/bacula/FileStorage
    LabelMedia          = yes
    RandomAccess        = yes
    AutomaticMount      = yes
    RemovableMedia      = no
    AlwaysOpen          = no
}
Device {
    Name                = FileStorageFull
    MediaType           = FileFull
    DeviceType          = File
    ArchiveDevice       = /daten/backups/bacula/FileStorageFull
    LabelMedia          = yes
    RandomAccess        = yes
    AutomaticMount      = yes
    RemovableMedia      = no
    AlwaysOpen          = no
}
Autochanger {
    Name                        = T24-Changer
    Device                      = LTO-4-1
    ChangerDevice               = /dev/sg7
    ChangerCommand              = "/etc/bacula/mtx-changer %c %o %S %a %d"
}
Device {
    Name                        = LTO-4-1
    DriveIndex                  = 0
    Autochanger                 = Yes
    ArchiveDevice               = /dev/nst1
    DeviceType                  = Tape
    MediaType                   = LTO-4
    AlwaysOpen                  = Yes
    RemovableMedia              = Yes
    RandomAccess                = No
    RequiresMount               = No
    AutomaticMount              = yes
    AutoSelect                  = yes
    LabelMedia                  = no
    MaximumBlockSize            = 262144
    MaximumNetworkBufferSize    = 65536
    MaximumFileSize             = 5G
    SpoolDirectory              = /var/bacula/spool
    MaximumChangerWait          = 600
}


I have attached the gdb traceback output because it's a quite large
file. Hope that's ok.


-- 
Le deagh dhùraghd,

        Frank Altpeter
[?1034hMissing separate debuginfo for /lib/libz.so.1
Try: zypper install -C 
"debuginfo(build-id)=9f5e4b386d9826b14a48677c23dcdf8a2cb45bff"
Missing separate debuginfo for /lib/libpthread.so.0
Try: zypper install -C 
"debuginfo(build-id)=3043b78c80daa60cdb3d347dcb33f00bd1551163"
Missing separate debuginfo for /lib/libdl.so.2
Try: zypper install -C 
"debuginfo(build-id)=cd785200787e37f6917cc1c87966fb4404e65297"
[Thread debugging using libthread_db enabled]
[New Thread 0xbf45cb70 (LWP 18527)]
[New Thread 0x9f4f0b70 (LWP 18525)]
[New Thread 0x5041b70 (LWP 18524)]
[New Thread 0xa44fab70 (LWP 14328)]
[New Thread 0xa6ffbb70 (LWP 3933)]
[New Thread 0xb6a56b70 (LWP 5866)]
Missing separate debuginfo for /usr/lib/libssl.so.0.9.8
Try: zypper install -C 
"debuginfo(build-id)=1df05ccab62c61feacf8b1b41930d73aa5b88489"
Missing separate debuginfo for /usr/lib/libcrypto.so.0.9.8
Try: zypper install -C 
"debuginfo(build-id)=5fa488ae806481e4f6f787b52f1bbc71f9efa3d0"
Missing separate debuginfo for /usr/lib/libstdc++.so.6
Try: zypper install -C 
"debuginfo(build-id)=a06c7686acca71405f69e506919c07c1db9ea518"
Missing separate debuginfo for /lib/libm.so.6
Try: zypper install -C 
"debuginfo(build-id)=293aa876def3cb4177e0389f96c11e76b839b7e4"
Missing separate debuginfo for /lib/libgcc_s.so.1
Try: zypper install -C 
"debuginfo(build-id)=815f111c78054fb492b3e12dd7bef2d7efc808b7"
Missing separate debuginfo for /lib/libc.so.6
Try: zypper install -C 
"debuginfo(build-id)=d47431471a179a11c4f04201dca9fb320d26e78d"
Missing separate debuginfo for /lib/ld-linux.so.2
Try: zypper install -C 
"debuginfo(build-id)=a18c87099e8bcecf243e2c48b2db7b11bc51816b"
0xffffe430 in __kernel_vsyscall ()
$1 = '\000' <repeats 29 times>
$2 = 0x809d048 "bacula-sd"
$3 = 0x809d070 "/usr/sbin/bacula-sd"
$4 = 0x0
$5 = 0xb771971e "5.0.3 (04 August 2010)"
$6 = 0xb771973d "i686-pc-linux-gnu"
$7 = 0xb771974f "suse"
$8 = 0xb771973a "11"
$9 = "backup", '\000' <repeats 43 times>
$10 = 0xb7719735 "suse 11"
$11 = 0
Environment variable "TestName" not defined.
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb76af4bb in waitpid () from /lib/libpthread.so.0
#2  0xb770605e in signal_handler (sig=11) at signal.c:229
#3  <signal handler called>
#4  Jmsg (jcr=0x0, type=1, mtime=0, fmt=0xb771ceeb "%s") at message.c:1298
#5  0xb76fbde4 in j_msg (file=0xb7715cd6 "bnet_server.c", line=221, jcr=0x0, 
    type=1, mtime=0, 
    fmt=0xb7715e1c "Could not add job to client queue: ERR=%s\n")
    at message.c:1330
#6  0xb76e571c in bnet_thread_server (addrs=0x809d900, max_clients=541, 
    client_wq=0x809bda0, handle_client_request=
    0x8069130 <handle_connection_request(void*)>) at bnet_server.c:221
#7  0x0804e783 in main (argc=<value optimized out>, argv=Cannot access memory 
at address 0x1004
) at stored.c:313

Thread 7 (Thread 0xb6a56b70 (LWP 5866)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb76ab702 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
   from /lib/libpthread.so.0
#2  0xb77101ff in watchdog_thread (arg=0x0) at watchdog.c:321
#3  0xb76a7725 in start_thread () from /lib/libpthread.so.0
#4  0xb732e1ee in clone () from /lib/libc.so.6

Thread 6 (Thread 0xa6ffbb70 (LWP 3933)):
#0  0xb72cf090 in strcmp () from /lib/libc.so.6
#1  0x080750fc in match_volume (bsr=0xbb263ed8, volume=0xbb263f58, 
    volrec=0x80abfa8, done=true) at match_bsr.c:514
#2  0x0807583c in match_all (bsr=0xbb263ed8, rec=0xbbe589f8, volrec=0x80abfa8, 
    sessrec=0xa6ffabac, done=false, jcr=0xba259cd0) at match_bsr.c:394
#3  0x080760f9 in match_bsr (bsr=0xb97924c0, rec=0xbbe589f8, volrec=0x80abfa8, 
    sessrec=0xa6ffabac, jcr=0xba259cd0) at match_bsr.c:190
#4  0x0807b828 in read_records (dcr=0xa7110090, 
    record_cb=0x80746d0 <record_cb(DCR*, DEV_RECORD*)>, mount_cb=
    0x8076120 <mount_next_read_volume(DCR*)>) at read_record.c:260
#5  0x08074540 in do_mac (jcr=0xba259cd0) at mac.c:114
#6  0x0806f530 in run_cmd (jcr=0xba259cd0) at job.c:192
#7  0x0806953b in handle_connection_request (arg=0xa90cac58) at dircmd.c:233
#8  0xb771090b in workq_server (arg=0x809bda0) at workq.c:346
#9  0xb76a7725 in start_thread () from /lib/libpthread.so.0
#10 0xb732e1ee in clone () from /lib/libc.so.6

Thread 5 (Thread 0xa44fab70 (LWP 14328)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb76aecf6 in nanosleep () from /lib/libpthread.so.0
#2  0xb76e28d0 in bmicrosleep (sec=30, usec=0) at bsys.c:63
#3  0x080800b1 in use_storage_cmd (jcr=<value optimized out>) at reserve.c:340
#4  use_cmd (jcr=<value optimized out>) at reserve.c:71
#5  0x0806953b in handle_connection_request (arg=0xa90c85e8) at dircmd.c:233
#6  0xb771090b in workq_server (arg=0x809bda0) at workq.c:346
#7  0xb76a7725 in start_thread () from /lib/libpthread.so.0
#8  0xb732e1ee in clone () from /lib/libc.so.6

Thread 4 (Thread 0x5041b70 (LWP 18524)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb76ae4bb in read () from /lib/libpthread.so.0
#2  0xb76e48f3 in read_nbytes (bsock=0xa90c7df8, ptr=0x5040bd8 "", nbytes=4)
    at bnet.c:80
#3  0xb76e840d in BSOCK::recv (this=0xa90c7df8) at bsock.c:470
#4  0x080590b7 in do_get_volume_info (dcr=0xfffffe00) at askdir.c:176
#5  0x08059b4c in dir_find_next_appendable_volume (dcr=0xbd51b818)
    at askdir.c:278
#6  0x0807e2ea in reserve_device (rctx=...) at reserve.c:678
#7  0x0807ef9f in search_res_for_device (rctx=...) at reserve.c:581
#8  0x0807f106 in find_suitable_device_for_job (jcr=0xbeb5b598, rctx=...)
    at reserve.c:511
#9  0x08080039 in use_storage_cmd (jcr=<value optimized out>) at reserve.c:317
#10 use_cmd (jcr=<value optimized out>) at reserve.c:71
#11 0x0806953b in handle_connection_request (arg=0xa90c7df8) at dircmd.c:233
#12 0xb771090b in workq_server (arg=0x809bda0) at workq.c:346
#13 0xb76a7725 in start_thread () from /lib/libpthread.so.0
#14 0xb732e1ee in clone () from /lib/libc.so.6

Thread 3 (Thread 0x9f4f0b70 (LWP 18525)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb76ab3d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7703a06 in rwl_writelock_p (rwl=0x809c1a0, file=0x8094c48 "reserve.c", 
    line=275) at rwlock.c:241
#3  0x0807f9f9 in _lock_reservations (file=0x8094c48 "reserve.c", line=275)
    at reserve.c:108
#4  0x0807fef5 in use_storage_cmd (jcr=<value optimized out>) at reserve.c:275
#5  use_cmd (jcr=<value optimized out>) at reserve.c:71
#6  0x0806953b in handle_connection_request (arg=0xa90ae368) at dircmd.c:233
#7  0xb771090b in workq_server (arg=0x809bda0) at workq.c:346
#8  0xb76a7725 in start_thread () from /lib/libpthread.so.0
#9  0xb732e1ee in clone () from /lib/libc.so.6

Thread 2 (Thread 0xbf45cb70 (LWP 18527)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb76ab3d5 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7703a06 in rwl_writelock_p (rwl=0x809c1a0, file=0x8094c48 "reserve.c", 
    line=275) at rwlock.c:241
#3  0x0807f9f9 in _lock_reservations (file=0x8094c48 "reserve.c", line=275)
    at reserve.c:108
#4  0x0807fef5 in use_storage_cmd (jcr=<value optimized out>) at reserve.c:275
#5  use_cmd (jcr=<value optimized out>) at reserve.c:71
#6  0x0806953b in handle_connection_request (arg=0xb71a8cf0) at dircmd.c:233
#7  0xb771090b in workq_server (arg=0x809bda0) at workq.c:346
#8  0xb76a7725 in start_thread () from /lib/libpthread.so.0
#9  0xb732e1ee in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb72586d0 (LWP 5862)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb76af4bb in waitpid () from /lib/libpthread.so.0
#2  0xb770605e in signal_handler (sig=11) at signal.c:229
#3  <signal handler called>
#4  Jmsg (jcr=0x0, type=1, mtime=0, fmt=0xb771ceeb "%s") at message.c:1298
#5  0xb76fbde4 in j_msg (file=0xb7715cd6 "bnet_server.c", line=221, jcr=0x0, 
    type=1, mtime=0, 
    fmt=0xb7715e1c "Could not add job to client queue: ERR=%s\n")
    at message.c:1330
#6  0xb76e571c in bnet_thread_server (addrs=0x809d900, max_clients=541, 
    client_wq=0x809bda0, 
    handle_client_request=0x8069130 <handle_connection_request(void*)>)
    at bnet_server.c:221
#7  0x0804e783 in main (argc=<value optimized out>, argv=Cannot access memory 
at address 0x1004
) at stored.c:313
#0  0xffffe430 in __kernel_vsyscall ()
No symbol table info available.
#1  0xb76af4bb in waitpid () from /lib/libpthread.so.0
No symbol table info available.
#2  0xb770605e in signal_handler (sig=11) at signal.c:229
229              waitpid(pid, NULL, 0);       /* wait for child to produce dump 
*/
Current language:  auto
The current source language is "auto; currently c++".
sigdefault = {__sigaction_handler = {sa_handler = 0, sa_sigaction = 0}, 
  sa_mask = {__val = {2147483647, 4294967294, 4294967295 <repeats 30 times>}}, 
  sa_flags = 0, sa_restorer = 0xb7705a3b <signal_handler(int)+11>}
buf = '\000' <repeats 24 times>"\377, 
\377\377\377\212^8\267\211^8\267\000\000\000\000\000\000\000\000\377\377\377\377\354\316q\267\353\316q\267\000\000\000\000\000\000\000\000\t\000\000\000cY,\267",
 '\000' <repeats 12 times>, 
"\024\377\357\224\"Z,\267w\f\210\265\034\233q\267-\000\000\000\024\377\357\224\000\000\000\000\364o;\267-\000\000\000\200\376\357\224\344\031\206\277c})\267\200\376\357\224\034\233q\267-\000\000\000\270\377\377\377\270\377\377\377",
 '\000' <repeats 12 times>"\220, \216)\267", '\000' <repeats 24 times>, 
"L\031\206\277\320\206%\267", '\000' <repeats 12 times>, 
"\024\377\357\224\320\206%\267", '\000' <repeats 12 times>, 
"\024\377\357\224\214^8\267\000\000\000\000J\030\206\277\000\000\000\000\000\000\000\000\355\316q\267",
 '\000' <repeats 12 times>"\360, 
\032\206\277\000\000\000\000\377\377\377\377\212^8\267\211^8\267\000\000\000\000\000\000\000\000\t\000\000\000\000\000\000\000I\233q\267\000\000\000\000\n\000\000\000\t",
 '\000' <repeats 47 times>...
already_dead = 1
argv = {0x0, 0x0, 0x0, 0x0, 0x0}
pid_buf = "5862", '\000' <repeats 15 times>
btpath = "/usr/sbin/btraceback", '\000' <repeats 379 times>
#3  <signal handler called>
No symbol table info available.
#4  Jmsg (jcr=0x0, type=1, mtime=0, fmt=0xb771ceeb "%s") at message.c:1298
1298           p[0] = 0;                      /* generate segmentation 
violation */
rbuf = "backup-sd ABORTING due to ERROR\nbnet_server.c:221 Could not add job to 
client queue: ERR=Resource temporarily unavailable\n", '\000' <repeats 2942 
times>, "cY,\267", '\000' <repeats 12 times>"\364, 
-\206\277\000\000\000\000\364o;\267\000\000\000\000\270b8\267D-\206\277\341\201)\267`-\206\277\270b8\267",
 '\000' <repeats 20 times>"\270, \377\377\377\270\377\377\377\270\377\377\377", 
'\000' <repeats 12 times>"\220, \216)\267", '\000' <repeats 24 times>"\300, 
,\206\277\320\206%\267", '\000' <repeats 12 times>"\364"...
len = <value optimized out>
msgs = <value optimized out>
JobId = <value optimized out>
#5  0xb76fbde4 in j_msg (file=0xb7715cd6 "bnet_server.c", line=221, jcr=0x0, 
    type=1, mtime=0, 
    fmt=0xb7715e1c "Could not add job to client queue: ERR=%s\n")
    at message.c:1330
1330       Jmsg(jcr, type, mtime, "%s", pool_buf);
i = <value optimized out>
len = <value optimized out>
maxlen = 1005
pool_buf = 0xb5880850 "bnet_server.c:221 Could not add job to client queue: 
ERR=Resource temporarily unavailable\n"
#6  0xb76e571c in bnet_thread_server (addrs=0x809d900, max_clients=541, 
    client_wq=0x809bda0, 
    handle_client_request=0x8069130 <handle_connection_request(void*)>)
    at bnet_server.c:221
221                          be.bstrerror());
be = {<SMARTALLOC> = {<No data fields>}, 
  m_buf = 0x9caebaa0 "Resource temporarily unavailable", m_berrno = 11}
bs = <value optimized out>
maxfd = <value optimized out>
sockset = {fds_bits = {16, 0 <repeats 31 times>}}
newsockfd = 12
stat = <value optimized out>
clilen = 16
cli_addr = {sa_family = 2, 
  sa_data = "\256\314\300L\206)\000\000\000\000\000\000\000"}
tlog = 0
turnon = 1
p = 0x0
fd_ptr = 0xbf862f10
buf = 
"192.76.134.41\000t\267\030\253s\267\000\000\000\000\001\000\000\000\005\000\000\000\000\000\000\000|\207m\267\344:\206\277\064\322\004\000\005\000\000\000\310om\267\364\357q\267\260\br\267\000\000\000\000\030;\206\277\000\000\000\000\350xm\267`\251s\267\260\br\267\377\377\377\377\364\257u\267\000\271u\267\234\233\004\b@;\206\277V\237t\267\270\272u\267\000\000\000\000\001\000\000\000\005\000\000"
sockfds = {<SMARTALLOC> = {<No data fields>}, head = 0xbf862f10, 
  tail = 0xbf862f10, loffset = 0, num_items = 1}
allbuf = 
"h\242<\267\364\257u\267\064\060\206\277\\\247<xl0\206\277\234Nt\267D0\206\277\252Ft\267|0\206\277\n\001[\001\000\000\000\000\240\242<\267(dm\267\330~m\267\340Im\267CGt\267\341\307&\267\251\314m\267t0\206\277\070\247<\267\030\b&\267\002\000t\267\220\256t\267i\314m\267h\242<\267\364\257u\267\224\060\206\277\\\247<\267\314\060\206\277\234Nt\267Nar\267\314fu\267B4\206\277\364\257u\267a\230,\267\240\242<\267\004\061\206\277\vPt\267`\251s\267\314fu\267\000\000\000\000D4\206\277\002\000\000\000\001\000\000\000\002\000\000\000\270\065\206\277Nar\267\200\203;\267Y\000\000\000\v\000\000\000\000\204;\267\016\000\000\000\270\203;\267\030\b&\267)\000\000\000\000\000\000\000\347\221j\267\006\000\000\000\330\203;\267\000\000\000\000`\251s\267M\221m\267\253\322(\267\000\000\000\000\000\000\020A\314\060\206\277,\326(\267,3\206\277\022\000\000\000\000\000\000\000\350\063\206\277\370\060\206\277\005Rq\267\364o;\267\253\322(\267\000\000\000\000\000\000\...@\374\060\206\277,\326(\267\\!
 3\206\277
002\000\000\000\000\000\000\000\253\322(\267\000\000\000\000\000\300"...
#7  0x0804e783 in main (argc=<value optimized out>, argv=Cannot access memory 
at address 0x1004
) at stored.c:313
313                           &dird_workq, handle_connection_request);
ch = <value optimized out>
no_signals = false
test_config = false
thid = 3072686960
uid = 0x0
gid = 0x0

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to