I had 2 jobs working in parallel on the same pool and same tape drive
(and ofcourse same volume). Did a status storage=DAT72 (DAT72 is the
name of the device in sd) ... it stopped in the middle of the output
(when it wanted to print what jobs are waiting to reserve the drive)
and I did a ctrl+c ... reran bconsole again, tried again, same thing
... repeated that about 2 times I think and then left it alone, after
a while the director crashed with "Program received signal SIGPIPE,
Broken pipe." ... :)


Was running both sd and dir in gdb, sd didn't crash, but for dir I've
attached the bt.
itv# gdb /usr/local/sbin/bacula-dir
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"...(no debugging symbols 
found)...
(gdb) run -u bacula -g bacula -v -c /usr/local/etc/bacula-dir.conf -f -s -d50
Starting program: /usr/local/sbin/bacula-dir -u bacula -g bacula -v -c 
/usr/local/etc/bacula-dir.conf -f -s -d50
(no debugging symbols found)...(no debugging symbols found)...warning: Unable 
to get location for thread creation breakpoint: generic error
[New LWP 100141]
(no debugging symbols found)...(no debugging symbols found)...(no debugging 
symbols found)...(no debugging symbols found)...(no debugging symbols 
found)...(no debugging symbols found)...(no debugging symbols found)...(no 
debugging symbols found)...(no debugging symbols found)...bacula-dir: 
dird.c:129 Debug level = 50
[New Thread 0x80d1000 (LWP 100168)]
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK HVk2Pn8d9n/HSmpfED+Z8B
admiral-dir: ua_status.c:98 status:status:
admiral-dir: ua_status.c:131 do_prompt: select daemon
admiral-dir: ua_status.c:135 item=3
admiral-dir: ua_status.c:194 Stuffing: 192.168.1.186:9103
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK d++O/0wWK1/nj8/rDgswbB
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: ua_status.c:228 Stuffing: 127.0.0.1:9102
admiral-dir: ua_status.c:228 Stuffing: 192.168.1.179:9102
admiral-dir: fd_cmds.c:80 Opened connection with File daemon
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK 7hMrBR+2z9BZ0n/5+651ZB
admiral-dir: ua_status.c:335 Connected to file daemon
admiral-dir: fd_cmds.c:80 Opened connection with File daemon
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK s6VUrD+ZfWx2+l/yf4kBlC
admiral-dir: ua_status.c:335 Connected to file daemon
admiral-dir: ua_status.c:98 status:status:
admiral-dir: ua_status.c:131 do_prompt: select daemon
admiral-dir: ua_status.c:135 item=2
admiral-dir: fd_cmds.c:80 Opened connection with File daemon
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK nW+3AQ/J1z+Kf9dgf39L1B
admiral-dir: ua_status.c:335 Connected to file daemon
admiral-dir: job.c:98 Open database
admiral-dir: job.c:111 DB opened
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK F7+MN/+zx6lMViU4t4o7LB
admiral-dir: fd_cmds.c:80 Opened connection with File daemon
admiral-dir: job.c:98 Open database
admiral-dir: job.c:111 DB opened
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK ny+F/w+X16+QUVxlk5p6KC
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK yU1KM+1ZxW8dR8l0pT+YwB
admiral-dir: fd_cmds.c:80 Opened connection with File daemon
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK 6ldj578vil9tJ5MKh8+zwC
admiral-dir: ua_status.c:98 status:status storage=DAT72:
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK e9thU4gWSi+7Ph/Ca9I55A
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: ua_status.c:98 status:status storage=DAT72:
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK 1x+ki8lyM7+pL8/wP9+xPA
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK 05/jg5lKa4+RyS+g39w9qB
admiral-dir: ua_status.c:98 status:status storage=DAT72:
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK EE/EM/A/I+YvCVN228p5WA
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: ua_status.c:98 status:status storage=DAT72:
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK e9Y1p+/nf7/cs5/a0Do0jC
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: ua_prune.c:243 select sql=SELECT JobId from Job WHERE 
JobTDate<1149688404 AND ClientId=1 AND PurgedFiles=0
admiral-dir: job.c:363 ======== End Job stat=T ==========
admiral-dir: ua_status.c:98 status:status storage=DAT72:
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK F8/8dh1TJTN0v+/HF4/v4C
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: ua_status.c:98 status:status storage=DAT72:
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK zh/Zqk4A67NW1TN0HH+yrA
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: ua_status.c:98 status:status storage=DAT72:
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK b//ehTQYF7IkN+dxT4+oBD
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: ua_status.c:98 status:status storage=DAT72:
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK W+MV98/4dg/9U7/afjA9MB
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: job.c:98 Open database
admiral-dir: job.c:111 DB opened
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK yDxlQ+Fm13+VhU/eek+W+C
admiral-dir: ua_status.c:98 status:status storage=DAT72:
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK E6dMe4RHyUYpkUxqc+/EuD
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK PSBN985Lg9gprHdF/4k1GC
admiral-dir: ua_status.c:98 status:status storage=DAT72:
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK Iht8y4/419txQ9tQe3NYBB
admiral-dir: ua_status.c:297 Connected to storage daemon
admiral-dir: cram-md5.c:52 send: auth cram-md5 <[EMAIL PROTECTED]> ssl=0
admiral-dir: cram-md5.c:68 Authenticate OK wXhWV6/yH7+4t8RI98IGmB
admiral-dir: ua_status.c:98 status:status Director:
[New Thread 0x80d1200 (LWP 100118)]

Program received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x80d1200 (LWP 100118)]
0x2814d52b in pthread_testcancel () from /usr/lib/libpthread.so.2
(gdb) thread apply all bt
[New Thread 0x811f600 (runnable)]
[New Thread 0x811f200 (runnable)]
[New Thread 0x810fa00 (runnable)]
[New Thread 0x810f800 (runnable)]
[New Thread 0x810f200 (runnable)]
[New Thread 0x80ebe00 (LWP 100111)]
[New Thread 0x80ebc00 (sleeping)]
[New Thread 0x80eba00 (runnable)]

Thread 11 (Thread 0x80eba00 (runnable)):
#0  0x2850775f in select () from /lib/libc.so.6
#1  0x2813603d in select () from /usr/lib/libpthread.so.2
#2  0x08087628 in bnet_thread_server ()
#3  0x08074256 in connect_thread ()
#4  0x2813e319 in pthread_create () from /usr/lib/libpthread.so.2
#5  0x284ef637 in _ctx_start () from /lib/libc.so.6

Thread 10 (Thread 0x80ebc00 (sleeping)):
#0  0x28145f0f in pthread_mutexattr_init () from /usr/lib/libpthread.so.2
#1  0x281460a3 in pthread_mutexattr_init () from /usr/lib/libpthread.so.2
#2  0x2814afe1 in _pthread_cond_timedwait () from /usr/lib/libpthread.so.2
#3  0x2814b536 in pthread_cond_timedwait () from /usr/lib/libpthread.so.2
#4  0x0809d0d7 in watchdog_thread ()
#5  0x2813e319 in pthread_create () from /usr/lib/libpthread.so.2
#6  0x284ef637 in _ctx_start () from /lib/libc.so.6

Thread 9 (Thread 0x80ebe00 (LWP 100111)):
#0  0x2814d54b in pthread_testcancel () from /usr/lib/libpthread.so.2
#1  0x08084db3 in write_nbytes ()
#2  0x0808580d in bnet_send ()
#3  0x0806a113 in bsendmsg ()
---Type <return> to continue, or q <return> to quit---
#4  0x08074823 in do_storage_status ()
#5  0x08075c96 in status_cmd ()
#6  0x08062fab in do_a_command ()
#7  0x08074504 in handle_UA_client_request ()
#8  0x0809db01 in workq_server ()
#9  0x2813e319 in pthread_create () from /usr/lib/libpthread.so.2
#10 0x284ef637 in _ctx_start () from /lib/libc.so.6

Thread 8 (Thread 0x810f200 (runnable)):
#0  0x285077df in read () from /lib/libc.so.6
#1  0x2813619a in read () from /usr/lib/libpthread.so.2
#2  0x08084cd4 in read_nbytes ()
#3  0x08085bef in bnet_recv ()
#4  0x08057327 in bget_dirmsg ()
#5  0x0804f02d in wait_for_job_termination ()
#6  0x0805002a in do_backup ()
#7  0x08059ae2 in job_thread ()
#8  0x0805c1c6 in jobq_server ()
#9  0x2813e319 in pthread_create () from /usr/lib/libpthread.so.2
#10 0x284ef637 in _ctx_start () from /lib/libc.so.6

Thread 7 (Thread 0x810f800 (runnable)):
#0  0x285077df in read () from /lib/libc.so.6
---Type <return> to continue, or q <return> to quit---
#1  0x2813619a in read () from /usr/lib/libpthread.so.2
#2  0x08084cd4 in read_nbytes ()
#3  0x08085c5d in bnet_recv ()
#4  0x08057327 in bget_dirmsg ()
#5  0x0805edba in msg_thread ()
#6  0x2813e319 in pthread_create () from /usr/lib/libpthread.so.2
#7  0x284ef637 in _ctx_start () from /lib/libc.so.6

Thread 6 (Thread 0x810fa00 (runnable)):
#0  0x285077df in read () from /lib/libc.so.6
#1  0x2813619a in read () from /usr/lib/libpthread.so.2
#2  0x08084cd4 in read_nbytes ()
#3  0x08085c5d in bnet_recv ()
#4  0x08057327 in bget_dirmsg ()
#5  0x0805ea5e in start_storage_daemon_job ()
#6  0x0804fe53 in do_backup ()
#7  0x08059ae2 in job_thread ()
#8  0x0805c1c6 in jobq_server ()
#9  0x2813e319 in pthread_create () from /usr/lib/libpthread.so.2
#10 0x284ef637 in _ctx_start () from /lib/libc.so.6

Thread 5 (Thread 0x811f200 (runnable)):
#0  0x285077df in read () from /lib/libc.so.6
---Type <return> to continue, or q <return> to quit---
#1  0x2813619a in read () from /usr/lib/libpthread.so.2
#2  0x08084cd4 in read_nbytes ()
#3  0x08085c5d in bnet_recv ()
#4  0x0807482b in do_storage_status ()
#5  0x08075c96 in status_cmd ()
#6  0x08062fab in do_a_command ()
#7  0x08074504 in handle_UA_client_request ()
#8  0x0809db01 in workq_server ()
#9  0x2813e319 in pthread_create () from /usr/lib/libpthread.so.2
#10 0x284ef637 in _ctx_start () from /lib/libc.so.6

Thread 4 (Thread 0x811f600 (runnable)):
#0  0x285077df in read () from /lib/libc.so.6
#1  0x2813619a in read () from /usr/lib/libpthread.so.2
#2  0x08084cd4 in read_nbytes ()
#3  0x08085bef in bnet_recv ()
#4  0x080744be in handle_UA_client_request ()
#5  0x0809db01 in workq_server ()
#6  0x2813e319 in pthread_create () from /usr/lib/libpthread.so.2
#7  0x284ef637 in _ctx_start () from /lib/libc.so.6

Thread 3 (Thread 0x80d1200 (LWP 100118)):
#0  0x2814d52b in pthread_testcancel () from /usr/lib/libpthread.so.2
---Type <return> to continue, or q <return> to quit---
#1  0x2813ab75 in sigaction () from /usr/lib/libpthread.so.2
#2  0x2813ae61 in sigaction () from /usr/lib/libpthread.so.2
#3  0x2813b640 in sigaction () from /usr/lib/libpthread.so.2
#4  0x2813b7ec in sigaction () from /usr/lib/libpthread.so.2
#5  0x28145e3c in pthread_mutexattr_init () from /usr/lib/libpthread.so.2
#6  0x280e2450 in ?? ()

Thread 2 (Thread 0x80d1000 (sleeping)):
#0  0x28145f0f in pthread_mutexattr_init () from /usr/lib/libpthread.so.2
#1  0x2813f9ae in _nanosleep () from /usr/lib/libpthread.so.2
#2  0x2813fb12 in nanosleep () from /usr/lib/libpthread.so.2
#3  0x080840fc in bmicrosleep ()
#4  0x08062975 in wait_for_next_job ()
#5  0x0804d77a in main ()
#0  0x2814d52b in pthread_testcancel () from /usr/lib/libpthread.so.2
(gdb)
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to