Bacula-users

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

2012-08-08 14:07:14
Subject: Re: [Bacula-users] segmentation fault after server crash
From: Martin Simmons <martin AT lispworks DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Wed, 8 Aug 2012 19:04:48 +0100
>>>>> On Tue, 07 Aug 2012 21:31:42 +0200, J Echter said:
> 
> 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 ??
> ()                                                                    

The crash is the WINS name lookup library, so is probably not related directly
to bacula.

Maybe something else changed, like installation/update of the system software
or change to a config file?

__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