Hello Jean-Louis,

the debug file is really short:

amanda@dl380-54:~$ cat /tmp/amanda/server/daily/amvault.20120515134859.debug
Tue May 15 13:48:59 2012: thd-0x2230400: amvault: pid 10772 ruid 1001 euid 1001 version 3.3.1.svn.4721: start at Tue May 15 13:48:59 2012 Tue May 15 13:48:59 2012: thd-0x2230400: amvault: Arguments: -olabelstr=^D1[0-9]*$ --src-timestamp latest --dst-changer l700-robot-MRO --label-template D1%%%% daily Tue May 15 13:48:59 2012: thd-0x2230400: amvault: config_overrides: labelstr ^D1[0-9]*$ Tue May 15 13:48:59 2012: thd-0x2230400: amvault: pid 10772 ruid 1001 euid 1001 version 3.3.1.svn.4721: rename at Tue May 15 13:48:59 2012 Tue May 15 13:48:59 2012: thd-0x2230400: amvault: chg-robot: using statefile '/usr/local/var/amanda/chg-robot-dev-L700-MRU-CHANGER'


Here is what gdb tells us:

amanda@dl380-54:~$ gdb perl
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu1) 7.4-2012.04
Copyright (C) 2012 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://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/bin/perl...(no debugging symbols found)...done.
(gdb) run /usr/local/sbin/amvault -olabelstr='^D1[0-9]*$' --src-timestamp latest --dst-changer l700-robot-MRO --label-template D1%%%% daily Starting program: /usr/bin/perl /usr/local/sbin/amvault -olabelstr='^D1[0-9]*$' --src-timestamp latest --dst-changer l700-robot-MRO --label-template D1%%%% daily
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Warning: no log files found for tape D00076 written 2012-05-05 18:04:58
Warning: no log files found for tape D00113 written 2012-05-05 18:04:58
Warning: no log files found for tape D00015 written 2012-05-05 18:04:58
Warning: no log files found for tape D00016 written 2012-05-05 18:04:58
Warning: no log files found for tape D00017 written 2012-05-05 18:04:58
Warning: no log files found for tape D00073 written 2012-05-05 18:04:58
Warning: no log files found for tape D00299 written 2012-05-05 18:04:58
Warning: no log files found for tape D00071 written 2012-05-05 18:04:58
Warning: no log files found for tape D00298 written 2012-05-05 18:04:58
Warning: no log files found for tape D00175 written 2012-02-19 18:03:46
Warning: no log files found for tape D00176 written 2012-02-19 18:03:46
Using latest timestamp: 20120514180302
Warning: no log files found for tape D00076 written 2012-05-05 18:04:58
Warning: no log files found for tape D00113 written 2012-05-05 18:04:58
Warning: no log files found for tape D00015 written 2012-05-05 18:04:58
Warning: no log files found for tape D00016 written 2012-05-05 18:04:58
Warning: no log files found for tape D00017 written 2012-05-05 18:04:58
Warning: no log files found for tape D00073 written 2012-05-05 18:04:58
Warning: no log files found for tape D00299 written 2012-05-05 18:04:58
Warning: no log files found for tape D00071 written 2012-05-05 18:04:58
Warning: no log files found for tape D00298 written 2012-05-05 18:04:58
Warning: no log files found for tape D00175 written 2012-02-19 18:03:46
Warning: no log files found for tape D00176 written 2012-02-19 18:03:46
Log file /usr/local/etc/amanda/daily/catalog/log.20120506180002.0 stamped 20120506180002, expecting 20120505180458!

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5dcd7b0 in g_str_hash () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) info threads
  Id   Target Id         Frame
* 1 Thread 0x7ffff7fec700 (LWP 11663) "perl" 0x00007ffff5dcd7b0 in g_str_hash () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) thread 1
[Switching to thread 1 (Thread 0x7ffff7fec700 (LWP 11663))]
#0 0x00007ffff5dcd7b0 in g_str_hash () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) where
#0 0x00007ffff5dcd7b0 in g_str_hash () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #1 0x00007ffff5dcce33 in g_hash_table_lookup () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #2 0x00007ffff5dfaee9 in g_string_chunk_insert_const () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #3 0x00007ffff3dc594c in search_logfile (output_find=0x7fffffffdff8, label=0x0, passed_datestamp=<optimized out>, logfile=0x15d3720 "/usr/local/etc/amanda/daily/catalog/log.20120505180458.0",
    dynamic_disklist=0x7ffff3997890) at find.c:1030
#4 0x00007ffff379160a in search_logfile_wrap (add_missing_disks=<optimized out>, logfile=<optimized out>, datestamp=0x0, label=<optimized out>) at Amanda/Logfile.c:1842 #5 _wrap_search_logfile (my_perl=<optimized out>, cv=<optimized out>) at Amanda/Logfile.c:2737
#6  0x00007ffff7b137ff in Perl_pp_entersub () from /usr/lib/libperl.so.5.14
#7 0x00007ffff7b0ac96 in Perl_runops_standard () from /usr/lib/libperl.so.5.14
#8  0x00007ffff7aa659e in Perl_call_sv () from /usr/lib/libperl.so.5.14
#9 0x00007ffff65264bc in amglue_source_callback_simple (data=0x13709d0) at Amanda/MainLoop.c:1672
#10 0x00007ffff5ddd8db in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff5ddcc9a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007ffff5ddd060 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#13 0x00007ffff5ddd45a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #14 0x00007ffff6527531 in _wrap_run_c (my_perl=<optimized out>, cv=<optimized out>) at Amanda/MainLoop.c:1983
#15 0x00007ffff7b137ff in Perl_pp_entersub () from /usr/lib/libperl.so.5.14
#16 0x00007ffff7b0ac96 in Perl_runops_standard () from /usr/lib/libperl.so.5.14
#17 0x00007ffff7aac33a in perl_run () from /usr/lib/libperl.so.5.14
#18 0x0000000000400db9 in main ()



Regards,
Dennis





Am 15.05.2012 13:44, schrieb Jean-Louis Martineau:
Dennis,

Post the amvault.<datastamp>.debug file.

Can you run amvault inside gdb?

$gdb perl
(gdb) run /path/to/amvault [amvault arg]

And get a backtrace of all threads?

(gdb) info threads

Then for each threads:
(gdb) thread <thread id>
(gdb) where


Jean-Louis

On 05/15/2012 03:21 AM, Dennis Benndorf wrote:
Hello Jean-Louis,

got annother segmentation fault this morning now running amanda 3.3.1.svn.4721.

Regards,
Dennis

Am 14.05.2012 16:14, schrieb Jean-Louis Martineau:
On 05/14/2012 08:26 AM, Dennis Benndorf wrote:
after updating our backup server to Ubuntu Server 12.04 and recompiling amanda 3.3.1 amvault fails with segmentation fault everytime it is started. Might this have something to do with the removal of g_queue_free_full, which was needed to compile it? Which logfiles do you need?

no, it is related to the new version of glib

Use the HEAD of the svn 3-3 branch or the latest 3.3 snapshot from http://www.zmanda.com/community-builds.php

Jean-Louis



Reply via email to