Hello Volker,

It looks like the segfault was in Bacula. This occurs if you reload the config 
file -- there is a problem if there are jobs scheduled. It shows up when the 
jobs run, and produces the seg fault.  I'll fix this after version 1.38 is 
released.

I don't think this seg fault is related to your hang problem which is surely a 
mutex bug in Bacula.  I am 99% this hang condition will be fixed in 1.37 
where I have rewritten the locking code in the Director to use what I call 
micro-locking rather than global chain locking.  This incurs a bit more 
overhead (more lock/unlocks), but avoids race conditions between multiple 
threads when multiple mutexes is involved.

On Sunday 21 August 2005 12:09, Volker Sauer wrote:
> On Di, 16 Aug 2005, Volker Sauer <[EMAIL PROTECTED]> wrote:
> > does it make sense to move /lib/tls ?
>
> Hi Kern,
>
> I tried to move /lib/tls and ran bacula-dir again under the debugger:
>
> (gdb)  run -s -f -c /etc/bacula/bacula-dir.conf
>
> Starting program: /usr/sbin/bacula-dir -s -f -c
> /etc/bacula/bacula-dir.conf
>
> [Thread debugging using libthread_db enabled]
> [New Thread 16384 (LWP 29849)]
> [New Thread 32769 (LWP 29853)]
> [New Thread 16386 (LWP 29854)]
> [New Thread 32771 (LWP 29855)]
> [New Thread 49156 (LWP 30441)]
> [New Thread 65541 (LWP 30453)]
> [Thread 65541 (LWP 30453) exited]
> Cannot find thread 65541: invalid thread handle
> (gdb)
> (gdb)
> (gdb) thread apply all bt
>
> Thread 5 (Thread 49156 (LWP 30441)):
> #0  0x401a429b in __pthread_fork () from /lib/libpthread.so.0
> #1  0x40384e48 in fork () from /lib/libc.so.6
> #2  0x401a4354 in fork () from /lib/libpthread.so.0
> #3  0x08088087 in open_bpipe (prog=0x2 <Address 0x2 out of bounds>,
> wait=0, mode=0x80a31dc "r") at bpipe.c:90
> #4  0x080589fb in job_thread (arg=0x80dd2e0) at job.c:262
> #5  0x0805c08a in jobq_server (arg=0x80c57a0) at jobq.c:444
> #6  0x401a2e51 in pthread_start_thread () from /lib/libpthread.so.0
> #7  0x401a2ecf in pthread_start_thread_event () from
> /lib/libpthread.so.0
> #8  0x403b492a in clone () from /lib/libc.so.6
>
> Thread 4 (Thread 32771 (LWP 29855)):
> #0  0x401a9456 in nanosleep () from /lib/libpthread.so.0
> #1  0x00000001 in ?? ()
> #2  0x401a552a in __pthread_timedsuspend_new () from
> /lib/libpthread.so.0
> #3  0x401a2122 in pthread_cond_timedwait_relative () from
> /lib/libpthread.so.0
> #4  0x0809dbd8 in watchdog_thread (arg=0x0) at watchdog.c:289
> #5  0x401a2e51 in pthread_start_thread () from /lib/libpthread.so.0
> #6  0x401a2ecf in pthread_start_thread_event () from
> /lib/libpthread.so.0
> #7  0x403b492a in clone () from /lib/libc.so.6
>
> Thread 3 (Thread 16386 (LWP 29854)):
> #0  0x403ae081 in select () from /lib/libc.so.6
> #1  0x00000009 in ?? ()
> #2  0x00000000 in ?? ()
> #3  0xbf7ffd9c in ?? ()
> #4  0x00000000 in ?? ()
> #5  0x080877e0 in bnet_thread_server (addrs=0x0, max_clients=-514,
> client_wq=0x80c5920, handle_client_request=0xfffffdfe)
>     at bnet_server.c:154
> #6  0x08074569 in connect_thread (arg=0xfffffdfe) at ua_server.c:79
> #7  0x401a2e51 in pthread_start_thread () from /lib/libpthread.so.0
> #8  0x401a2ecf in pthread_start_thread_event () from
> /lib/libpthread.so.0
> #9  0x403b492a in clone () from /lib/libc.so.6
>
> Thread 2 (Thread 32769 (LWP 29853)):
> #0  0x403abada in poll () from /lib/libc.so.6
> #1  0x401a2b50 in __pthread_manager () from /lib/libpthread.so.0
> #2  0x401a2d57 in __pthread_manager_event () from /lib/libpthread.so.0
> #3  0x403b492a in clone () from /lib/libc.so.6
>
> Thread 1 (Thread 16384 (LWP 29849)):
> #0  0x401a9456 in nanosleep () from /lib/libpthread.so.0
> #1  0x00000000 in ?? ()
> #2  0x08083c64 in bmicrosleep (sec=60, usec=0) at bsys.c:59
> #3  0x08061d8d in wait_for_next_job (one_shot_job_to_run=0x0) at
> scheduler.c:101
> #4  0x0804b368 in main (argc=135123680, argv=0x80a0a58) at dird.c:244
> Segmentation fault
> dakar: ~ 3# backup-dir: dird.c:438 Director's configuration file reread.
>
> The gdb segfaultet???

-- 
Best regards,

Kern

  (">
  /\
  V_V


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to