Hi,

OS: Debian buster 10.2
uname: Linux vbxl398 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 
(2019-11-11) x86_64 GNU/Linux
Database: Postgresql 12.1-1.pgdg100+1

I upgraded bareos with 'apt full-upgrade' from 18.2.5-144.1 to 19.2.5-1 
after which bareos-dir no longer starts. I assumed something was amiss in 
the configuration ( which was running find on 18.2 ), but even a -t gives a 
dump :
#/usr/sbin/bareos-dir -t
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
BAREOS interrupted by signal 6: IOT trap
bareos-dir, bareos-dir got signal 6 - IOT trap. Attempting traceback.
exepath=/usr/sbin/
Calling: /usr/sbin/btraceback /usr/sbin/bareos-dir 21882 /tmp/
bsmtp: tools/bsmtp.cc:129-0 Fatal malformed reply from localhost: 501 <root>
: sender address must contain a domain                                     
                                                           
The btraceback call returned 1
Dumping: /tmp//bareos-dir.21882.bactrace

This is the output from gdb :
/tmp#gdb /usr/sbin/bareos-dir bareos-dir.core.21882
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 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".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/bareos-dir...(no debugging symbols found)...
done.
[New LWP 21882]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/bareos-dir'.
#0  0x00007fa1dc03b094 in __waitpid (pid=21883, stat_loc=0x7ffd42aef4ec, 
options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
30      ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
(gdb) where
#0  0x00007fa1dc03b094 in __waitpid (pid=21883, stat_loc=0x7ffd42aef4ec, 
options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007fa1dc43fd15 in SignalHandler () from 
/usr/lib/bareos/libbareos.so.19
#2  <signal handler called>
#3  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#4  0x00007fa1db703535 in __GI_abort () at abort.c:79
#5  0x00007fa1dbacd983 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#6  0x00007fa1dbad38c6 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#7  0x00007fa1dbad3901 in std::terminate() () from 
/lib/x86_64-linux-gnu/libstdc++.so.6
#8  0x00007fa1dbad3b34 in __cxa_throw () from 
/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007fa1dbacf7d3 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007fa1dc4593ac in ConfigurationParser::StoreMsgs(s_lex_context*, 
ResourceItem*, int, int) () from /usr/lib/bareos/libbareos.so.19
#11 0x00007fa1dc45d865 in ConfigurationParser::StoreResource(int, 
s_lex_context*, ResourceItem*, int, int) () from 
/usr/lib/bareos/libbareos.so.19
#12 0x00007fa1dc4607aa in ConfigParserStateMachine::ScanResource(int) () 
from /usr/lib/bareos/libbareos.so.19
#13 0x00007fa1dc460fdb in ConfigParserStateMachine::ParseAllTokens() () 
from /usr/lib/bareos/libbareos.so.19
#14 0x00007fa1dc45df96 in ConfigurationParser::ParseConfigFile(char const*, 
void*, void (*)(char const*, int, s_lex_context*, char const*, ...), void 
(*)(char const*, int, s_lex_context*, char const*, ...)) ()
   from /usr/lib/bareos/libbareos.so.19
#15 0x00007fa1dc45ed35 in ConfigurationParser::ParseConfig() () from 
/usr/lib/bareos/libbareos.so.19
#16 0x00005566f7c3cdc6 in main ()
(gdb)

For what I can see, the problem is in ConfigurationParser::StoreMsgs . 

Can someone shed some light on this ?

Thanks !

Peter.

-- 
 <https://mijn.vaph.be>

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/3b999bc6-baa0-423d-ab4e-2158aa44fef9%40googlegroups.com.

Reply via email to