Anyway, I compiled bacula-sd with --enable-smartalloc and ran in the
correct way. Is the attached traceback more usable?
--
Silver
On Sat, January 24, 2009 21:19, Silver Salonen wrote:
> OK, I'll try.. but what does "built with debug information turned on and
> not stripped of debugging symbols" mean? The only thing I found about
> debugging in configure script was --enable-smartalloc - that's it?
>
> --
> Silver
>
>
> On Sat, January 24, 2009 19:29, Kern Sibbald wrote:
>
>> Hello,
>>
>>
>>
>> Sorry, but the backtrace is not usable. Please make sure you have
>> build the SD with the debug symbols left in (i.e. do not strip it). I
>> suggest you read the Kaboom chapter of the manual that explains how to
>> get a backtrace.
>>
>> Kern
>>
>>
>>
>> On Saturday 24 January 2009 17:54:05 Silver Salonen wrote:
>>
>>
>>> Hi.
>>>
>>>
>>>
>>> It seems I'm experiencing the same problem on FreeBSD 6.3. I ran
>>> bacula-sd in gdb and when the backups started running, a few of them
>>> ran and completed successfully, but stayed in "terminated" status
>>> afterwards. Other jobs just didn't start running. When I sent just
>>> ordinary kill to the process, gdb said the program terminated. The
>>> output of gdb:
>>>
>>> (gdb) run -f -c /usr/local/etc/bacula-sd.conf
>>> Starting program: /usr/local/sbin/bacula-sd -f -c
>>> /usr/local/etc/bacula-
>>> sd.conf (no debugging symbols found)...(no debugging symbols
>>> found)...warning:
>>> Unable to get location for thread creation breakpoint: generic error
>>> [New LWP 100405]
>>> (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)...[New Thread 0x80c0200 (LWP 100057)]
>>>
>>>
>>> Program received signal SIGTERM, Terminated.
>>> [Switching to Thread 0x80c0200 (LWP 100057)]
>>> 0x281075db in pthread_testcancel () from /lib/libpthread.so.2
>>> (gdb) backtrace
>>> #0 0x281075db in pthread_testcancel () from /lib/libpthread.so.2
>>> #1 0x280f4c25 in sigaction () from /lib/libpthread.so.2
>>> #2 0x280f4f11 in sigaction () from /lib/libpthread.so.2
>>> #3 0x280f56f0 in sigaction () from /lib/libpthread.so.2
>>> #4 0x280f589c in sigaction () from /lib/libpthread.so.2
>>> #5 0x280ffeec in pthread_mutexattr_init () from /lib/libpthread.so.2
>>> #6 0x280d8450 in ?? ()
>>> (gdb) quit
>>> The program is running. Exit anyway? (y or n) y
>>>
>>>
>>>
>>> PS. Sorry if I used gdb incorrectly, I'm not very experienced with
>>> it.. let me know what to do better next time ;)
(gdb) run -s -f -c ../etc/bacula-sd.conf
Starting program: /usr/local/sbin/bacula-sd -s -f -c ../etc/bacula-sd.conf
(no debugging symbols found)...(no debugging symbols found)...warning: Unable
to get location for thread creation breakpoint: generic error
[New LWP 100042]
(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)...x
[New Thread 0x80be200 (LWP 100067)]
Program received signal SIGTERM, Terminated.
[Switching to Thread 0x80be200 (LWP 100067)]
0x281055db in pthread_testcancel () from /lib/libpthread.so.2
(gdb) thread apply all bt
[New Thread 0x8184400 (sleeping)]
[New Thread 0x8122e00 (sleeping)]
[New Thread 0x8144200 (sleeping)]
[New Thread 0x813ae00 (sleeping)]
[New Thread 0x80d8e00 (sleeping)]
[New Thread 0x8184200 (sleeping)]
[New Thread 0x8169200 (sleeping)]
[New Thread 0x8144e00 (sleeping)]
[New Thread 0x8144a00 (sleeping)]
[New Thread 0x8122a00 (sleeping)]
[New Thread 0x8122600 (sleeping)]
[New Thread 0x80d8800 (sleeping)]
[New Thread 0x80be000 (runnable)]
Thread 15 (Thread 0x80be000 (runnable)):
#0 0x283de9e3 in select () from /lib/libc.so.6
#1 0x280ee091 in select () from /lib/libpthread.so.2
#2 0x080782cc in bnet_thread_server ()
#3 0x0804d490 in main ()
Thread 14 (Thread 0x80d8800 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28103091 in _pthread_cond_timedwait () from /lib/libpthread.so.2
#3 0x281035e6 in pthread_cond_timedwait () from /lib/libpthread.so.2
#4 0x0808eb0b in watchdog_thread ()
#5 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#6 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 13 (Thread 0x8122600 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28102761 in _pthread_cond_wait () from /lib/libpthread.so.2
#3 0x28102caa in pthread_cond_wait () from /lib/libpthread.so.2
#4 0x0808a656 in rwl_writelock ()
#5 0x0806cf28 in _lock_volumes ()
#6 0x08050544 in release_device ()
#7 0x08051d29 in do_append_data ()
#8 0x08061ec5 in append_data_cmd ()
#9 0x08061cfb in do_fd_commands ()
#10 0x08061ded in run_job ()
#11 0x08063029 in run_cmd ()
#12 0x0805db35 in handle_connection_request ()
#13 0x0808f511 in workq_server ()
#14 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#15 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 12 (Thread 0x8122a00 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28102761 in _pthread_cond_wait () from /lib/libpthread.so.2
#3 0x28102caa in pthread_cond_wait () from /lib/libpthread.so.2
#4 0x0808a656 in rwl_writelock ()
#5 0x0806cdc8 in _lock_reservations ()
#6 0x08070705 in use_cmd ()
#7 0x0805db35 in handle_connection_request ()
#8 0x0808f511 in workq_server ()
#9 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#10 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 11 (Thread 0x8144a00 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28102761 in _pthread_cond_wait () from /lib/libpthread.so.2
#3 0x28102caa in pthread_cond_wait () from /lib/libpthread.so.2
#4 0x0808a656 in rwl_writelock ()
#5 0x0806cf28 in _lock_volumes ()
#6 0x08068d41 in DCR::mount_next_write_volume ()
#7 0x0804ffb4 in acquire_device_for_append ()
#8 0x08051801 in do_append_data ()
#9 0x08061ec5 in append_data_cmd ()
#10 0x08061cfb in do_fd_commands ()
#11 0x08061ded in run_job ()
#12 0x08063029 in run_cmd ()
#13 0x0805db35 in handle_connection_request ()
#14 0x0808f511 in workq_server ()
#15 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#16 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 10 (Thread 0x8144e00 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28102761 in _pthread_cond_wait () from /lib/libpthread.so.2
#3 0x28102caa in pthread_cond_wait () from /lib/libpthread.so.2
#4 0x0808a656 in rwl_writelock ()
#5 0x0806cf28 in _lock_volumes ()
#6 0x08050544 in release_device ()
#7 0x08051d29 in do_append_data ()
#8 0x08061ec5 in append_data_cmd ()
#9 0x08061cfb in do_fd_commands ()
#10 0x08061ded in run_job ()
#11 0x08063029 in run_cmd ()
#12 0x0805db35 in handle_connection_request ()
#13 0x0808f511 in workq_server ()
#14 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#15 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 9 (Thread 0x8169200 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28102761 in _pthread_cond_wait () from /lib/libpthread.so.2
#3 0x28102caa in pthread_cond_wait () from /lib/libpthread.so.2
#4 0x0808a656 in rwl_writelock ()
#5 0x0806cdc8 in _lock_reservations ()
#6 0x08070705 in use_cmd ()
#7 0x0805db35 in handle_connection_request ()
#8 0x0808f511 in workq_server ()
#9 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#10 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 8 (Thread 0x8184200 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28102761 in _pthread_cond_wait () from /lib/libpthread.so.2
#3 0x28102caa in pthread_cond_wait () from /lib/libpthread.so.2
#4 0x0808a656 in rwl_writelock ()
#5 0x0806cdc8 in _lock_reservations ()
#6 0x08070705 in use_cmd ()
#7 0x0805db35 in handle_connection_request ()
#8 0x0808f511 in workq_server ()
#9 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#10 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 7 (Thread 0x80d8e00 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28102761 in _pthread_cond_wait () from /lib/libpthread.so.2
#3 0x28102caa in pthread_cond_wait () from /lib/libpthread.so.2
#4 0x0808a656 in rwl_writelock ()
#5 0x0806cf28 in _lock_volumes ()
#6 0x08050544 in release_device ()
#7 0x08051d29 in do_append_data ()
#8 0x08061ec5 in append_data_cmd ()
#9 0x08061cfb in do_fd_commands ()
#10 0x08061ded in run_job ()
#11 0x08063029 in run_cmd ()
#12 0x0805db35 in handle_connection_request ()
#13 0x0808f511 in workq_server ()
#14 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#15 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 6 (Thread 0x813ae00 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x280fa4a5 in _pthread_mutex_trylock () from /lib/libpthread.so.2
#3 0x280fb7a0 in pthread_mutex_lock () from /lib/libpthread.so.2
#4 0x08075bfc in _p ()
#5 0x0806d72c in DCR::unreserve_device ()
#6 0x08050249 in detach_dcr_from_dev ()
#7 0x08050479 in new_dcr ()
#8 0x0806e2ed in reserve_device ()
#9 0x0806f426 in search_res_for_device ()
#10 0x0806f60a in find_suitable_device_for_job ()
#11 0x080706a1 in use_cmd ()
#12 0x0805db35 in handle_connection_request ()
#13 0x0808f511 in workq_server ()
#14 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#15 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 5 (Thread 0x8144200 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28102761 in _pthread_cond_wait () from /lib/libpthread.so.2
#3 0x28102caa in pthread_cond_wait () from /lib/libpthread.so.2
#4 0x0808a656 in rwl_writelock ()
#5 0x0806cdc8 in _lock_reservations ()
#6 0x0807054c in use_cmd ()
#7 0x0805db35 in handle_connection_request ()
#8 0x0808f511 in workq_server ()
#9 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#10 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 4 (Thread 0x8122e00 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28102761 in _pthread_cond_wait () from /lib/libpthread.so.2
#3 0x28102caa in pthread_cond_wait () from /lib/libpthread.so.2
#4 0x0808a656 in rwl_writelock ()
#5 0x0806cdc8 in _lock_reservations ()
#6 0x0807054c in use_cmd ()
#7 0x0805db35 in handle_connection_request ()
#8 0x0808f511 in workq_server ()
#9 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#10 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 3 (Thread 0x8184400 (sleeping)):
#0 0x280fdfbf in pthread_mutexattr_init () from /lib/libpthread.so.2
#1 0x280fe153 in pthread_mutexattr_init () from /lib/libpthread.so.2
#2 0x28102761 in _pthread_cond_wait () from /lib/libpthread.so.2
#3 0x28102caa in pthread_cond_wait () from /lib/libpthread.so.2
#4 0x0808a656 in rwl_writelock ()
#5 0x0806cdc8 in _lock_reservations ()
#6 0x0807054c in use_cmd ()
#7 0x0805db35 in handle_connection_request ()
#8 0x0808f511 in workq_server ()
#9 0x280f63c9 in pthread_create () from /lib/libpthread.so.2
#10 0x283c6837 in _ctx_start () from /lib/libc.so.6
Thread 2 (Thread 0x80be200 (LWP 100067)):
#0 0x281055db in pthread_testcancel () from /lib/libpthread.so.2
#1 0x280f2c25 in sigaction () from /lib/libpthread.so.2
#2 0x280f2f11 in sigaction () from /lib/libpthread.so.2
#3 0x280f36f0 in sigaction () from /lib/libpthread.so.2
#4 0x280f389c in sigaction () from /lib/libpthread.so.2
#5 0x280fdeec in pthread_mutexattr_init () from /lib/libpthread.so.2
#6 0x280d6450 in ?? ()
(gdb) quit
The program is running. Exit anyway? (y or n) y
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users