Bacula-users

Re: [Bacula-users] segmentation fault after server crash

2012-08-07 15:34:53
Subject: Re: [Bacula-users] segmentation fault after server crash
From: "J. Echter" <j.echter AT echter-kuechen-elektro DOT de>
To: bacula-users AT lists.sourceforge DOT net
Date: Tue, 07 Aug 2012 21:31:42 +0200
Am 07.08.2012 20:09, schrieb Martin Simmons:
>>>>>> On Tue, 07 Aug 2012 14:56:38 +0200, JÜrgen Echter said:
>> Am 07.08.2012 14:24, schrieb Jürgen Echter:
>>> and i get the following via email:
>>>
>>> ptrace: operation not allowed.
>>> /var/lib/bacula/30330: file or directory not found.
>>> $1 = 0
>>> /etc/bacula/scripts/btraceback.gdb:2: Error in sourced command file:
>>> No symbol table is loaded.  Use the "file" command.
>>>
>>> thanks.
>>>
>>> juergen
>>>
>>> ------------------------------------------------------------------------------
>>> Live Security Virtual Conference
>>> Exclusive live event will cover all the ways today's security and
>>> threat landscape has changed and how IT managers can respond. Discussions
>>> will include endpoint security, mobile security and the latest in malware
>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>>> _______________________________________________
>>> Bacula-users mailing list
>>> Bacula-users AT lists.sourceforge DOT net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>> some more information this time with debug 100 ;)
>>
>> i started fd,sd and director on server with debug 30 and also fd on client
> Try attaching gdb to bacula-dir before it crashes (or run it under gdb with
> the -f option).
>
> Then use 
>
> thread apply all bt
>
> when it crashes to get a backtrace.
>
> __Martin
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
Hi,

i hope i did this right.

root@bacula:/usr/sbin# gdb ./bacula-dir
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/bacula-dir...(no debugging symbols
found)...done.
(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 0x7ffff48d1700 (LWP 28294)]
[Thread 0x7ffff48d1700 (LWP 28294) exited]
[New Thread 0x7ffff48d1700 (LWP 28295)]
[New Thread 0x7ffff40d0700 (LWP 28296)]
[New Thread 0x7ffff38cf700 (LWP 28400)]
[New Thread 0x7ffff30ce700 (LWP 28545)]
[New Thread 0x7ffff28cd700 (LWP 28684)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff30ce700 (LWP 28545)]
0x00007ffff1a85e4c in _nss_wins_gethostbyname_r () from
/lib/libnss_wins.so.2
(gdb) thread apply all bt

Thread 7 (Thread 0x7ffff28cd700 (LWP 28684)):
#0  0x00007ffff5e0393d in read () from /lib/libpthread.so.0
#1  0x00007ffff7360696 in read_nbytes(BSOCK*, char*, int) ()
   from /usr/lib/bacula/libbac-5.0.3.so
#2  0x00007ffff7363637 in BSOCK::recv() () from
/usr/lib/bacula/libbac-5.0.3.so
#3  0x000000000041e79e in ?? ()
#4  0x000000000042a7a0 in ?? ()
#5  0x00007ffff5dfb9ca in start_thread () from /lib/libpthread.so.0
#6  0x00007ffff49b8cdd in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7ffff30ce700 (LWP 28545)):
#0  0x00007ffff1a85e4c in _nss_wins_gethostbyname_r ()
   from /lib/libnss_wins.so.2
#1  0x00007ffff49d4039 in gethostbyname2_r () from /lib/libc.so.6
#2  0x00007ffff49d3d77 in gethostbyname2 () from /lib/libc.so.6
#3  0x00007ffff73609b8 in ?? () from /usr/lib/bacula/libbac-5.0.3.so
#4  0x00007ffff7360da5 in bnet_host2ipaddrs(char const*, int, char
const**) ()
   from /usr/lib/bacula/libbac-5.0.3.so
#5  0x00007ffff7364a50 in BSOCK::open(JCR*, char const*, char*, char*,
int, long, int*) () from /usr/lib/bacula/libbac-5.0.3.so
#6  0x00007ffff7365088 in BSOCK::connect(JCR*, int, long, long, char
const*, char*, char*, int, int) () from /usr/lib/bacula/libbac-5.0.3.so
#7  0x000000000041da84 in ?? ()
#8  0x0000000000412d3c in ?? ()
#9  0x0000000000422d84 in ?? ()
#10 0x0000000000425621 in ?? ()
#11 0x00007ffff5dfb9ca in start_thread () from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#12 0x00007ffff49b8cdd in clone () from
/lib/libc.so.6                                             
#13 0x0000000000000000 in ??
()                                                                    
                                                                                
                   

Thread 5 (Thread 0x7ffff38cf700 (LWP
28400)):                                                      
#0  0x00007ffff5e0393d in read () from
/lib/libpthread.so.0                                        
#1  0x00007ffff7360696 in read_nbytes(BSOCK*, char*, int)
()                                       
   from
/usr/lib/bacula/libbac-5.0.3.so                                                 
                               

#2  0x00007ffff7363637 in BSOCK::recv() () from
/usr/lib/bacula/libbac-5.0.3.so                                        
#3  0x000000000044b664 in ??
()                                                                              
          

#4  0x00007ffff7389129 in workq_server () from
/usr/lib/bacula/libbac-5.0.3.so                                         
#5  0x00007ffff5dfb9ca in start_thread () from
/lib/libpthread.so.0                                                    
#6  0x00007ffff49b8cdd in clone () from
/lib/libc.so.6                                                                 

#7  0x0000000000000000 in ??
()                                                                              
                                    

                                                                                
                                                                 

Thread 4 (Thread 0x7ffff40d0700 (LWP
28296)):                                                                        
                            

#0  0x00007ffff5e00bc9 in pthread_cond_timedwait@@GLIBC_2.3.2
()                                                                              
   

   from
/lib/libpthread.so.0                                                            
                                                         

#1  0x00007ffff7388c9c in watchdog_thread
()                                                                              
                       

   from
/usr/lib/bacula/libbac-5.0.3.so                                                 
                                                         

#2  0x00007ffff5dfb9ca in start_thread () from
/lib/libpthread.so.0                                                            
                  

#3  0x00007ffff49b8cdd in clone () from
/lib/libc.so.6                                                                  
                                         

#4  0x0000000000000000 in ??
()                                                                              
                                                    

                                                                                
                                                                                
 

Thread 3 (Thread 0x7ffff48d1700 (LWP
28295)):                                                                        
                                            

#0  0x00007ffff49b15a3 in select () from
/lib/libc.so.6                                                                  
                                        

#1  0x00007ffff73613a1 in bnet_thread_server(dlist*, int, workq_tag*,
void* (*)(void*)) () from
/usr/lib/bacula/libbac-5.0.3.so                                  
#2  0x000000000044b5dc in ??
()                                                                              
                                                    

#3  0x00007ffff5dfb9ca in start_thread () from
/lib/libpthread.so.0                                                            
                                        

---Type <return> to continue, or q <return> to
quit---                                                                         
                                         

#4  0x00007ffff49b8cdd in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ffff7fe7720 (LWP 28291)):
#0  0x00007ffff5e0411d in nanosleep () from /lib/libpthread.so.0
#1  0x00007ffff735ea77 in bmicrosleep(int, int) ()
   from /usr/lib/bacula/libbac-5.0.3.so
#2  0x0000000000431e85 in ?? ()
#3  0x000000000040f145 in ?? ()
#4  0x00007ffff48f0c4d in __libc_start_main () from /lib/libc.so.6
#5  0x000000000040ccf9 in ?? ()
#6  0x00007fffffffe738 in ?? ()
#7  0x000000000000001c in ?? ()
#8  0x0000000000000005 in ?? ()
#9  0x00007fffffffe97f in ?? ()
#10 0x00007fffffffe994 in ?? ()
#11 0x00007fffffffe997 in ?? ()
#12 0x00007fffffffe99a in ?? ()
#13 0x00007fffffffe99d in ?? ()
#14 0x0000000000000000 in ?? ()

thanks again :)

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users