[sheepdog] [PATCH v2 08/11] work: don't call get_node_info in the worker thread

Liu Yuan namei.unix at gmail.com
Fri Apr 19 11:00:19 CEST 2013


On 04/19/2013 04:55 PM, Liu Yuan wrote:
> Ah, What I meant is bt of core should be
> 
> vinfo->nr_nodes <--- gdb can us where exactly the segfault happens at
> 
> #1  bs_thread_request_done (fd=<optimized out>, events=<optimized out>,
> data=<optimized out>) at work.c:160
> #2  0x0000000000421899 in do_event_loop (sort_with_prio=false,
> timeout=<optimized out>) at event.c:211
> #3  0x0000000000404ebf in main (argc=<optimized out>, argv=<optimized
> out>) at sheep.c:691
> 
> Seems this is hard to achieve.

So
(gdb) bt
#0  0x00007ffada064b7b in raise (sig=<optimized out>) at
../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42
#1  0x000000000042530f in reraise_crash_signal (signo=11, status=1) at
util.c:414
#2  <signal handler called>
...

#0, #1 and #2 is introduced by our crash_handler, which changes the
GDB's backtrace. Anyway, we can analyze the output to get the site of
NULL dereference.

Thanks,
Yuan



More information about the sheepdog mailing list