Hi , unfortunally , i didnt managed to get the debug symbols
I use checkinstall to make the package, and tried :
export CFLAGS="-Wall -g -O0"
export CXXFLAGS="-Wall -g -O0"
export DEB_BUILD_OPTIONS=“debug nostrip noopt”
./ configure whatever
checkinstall --strip=no --stripso=no
still i can t get the debug symbols to get a backtrace
i saw there were the .sh script with with dbg symbols , installed it , i get a crash
Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 2499]
tokens::get_user_groups(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) () at urbackupclient/lin_tokens.cpp:272
272 urbackupclient/lin_tokens.cpp: Aucun fichier ou dossier de ce type.
(gdb)
“Aucun fichier ou dossier de ce type.” means no such file or folder
… i can t get that client to neither crash consistantly or finish a backup
this time it was spamming Client thread stopped
2018-04-27 16:38:51: FileSrv: Client thread stopped
2018-04-27 16:38:52: FileSrv: Client thread stopped
^C
Program received signal SIGINT, Interrupt.
__syscall () at syscall.s:13
13 syscall.s: Aucun fichier ou dossier de ce type.
(gdb) thread apply all bt
Thread 3 (LWP 8708): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007c66de in __timedwait_cp () #3 0x00000000007bf7c3 in pthread_cond_timedwait () #4 0x0000000000438e0c in CCondition::wait(IScopedLock*, int) () at Condition_lin.cpp:50 #5 0x000000000043538b in CThreadPool::waitFor(std::__1::vector<unsigned int, std::__1::allocator >, int) () at ThreadPool.cpp:289 #6 0x00000000004359b3 in CThreadPool::waitFor(unsigned int, int) () at ThreadPool.cpp:362 #7 0x000000000052308a in IndexThread::operator()() () at urbackupclient/client.cpp:1087 #8 0x0000000000412d4d in thread_helper_f(void*) () at Server.cpp:1342 #9 0x00000000007c0417 in start () #10 0x00000000007bf407 in __clone () at clone.s:21 #11 0x0000000000000000 in ?? ()
Thread 2 (LWP 8719): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007b8d49 in poll () #3 0x000000000041d9fc in CServiceWorker::work(ICustomClient*) () at ServiceWorker.cpp:212 #4 0x000000000041ddfb in CServiceWorker::operator()() () at ServiceWorker.cpp:291 #5 0x0000000000412d4d in thread_helper_f(void*) () at Server.cpp:1342 #6 0x00000000007c0417 in start () #7 0x00000000007bf407 in __clone () at clone.s:21 #8 0x0000000000000000 in ?? ()
Thread 1 (LWP 8700): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007c0f6f in nanosleep () #3 0x00000000007c1d7a in usleep () #4 0x0000000000428100 in main_fkt(int, char**) () at main.cpp:594 #5 0x00000000005bb8aa in run_real_main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >) () at urbackupclient/cmdline_preprocessor.cpp:59 #6 0x00000000005bea63 in main () at urbackupclient/cmdline_preprocessor.cpp:335
(gdb)
i restarted it , but i think it deadlocked between the 2 server running a backup and waiting for a snapshot
so i ll wait 10 min more, then report with the backtrace
then try again with the user group fixed (found back the content of the missing entries)
Program received signal SIGINT, Interrupt.
__syscall () at syscall.s:13
13 syscall.s: Aucun fichier ou dossier de ce type.
(gdb) thread apply all bt
Thread 2 (LWP 11214): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007c66de in __timedwait_cp () #3 0x00000000007bf7c3 in pthread_cond_timedwait () #4 0x0000000000438e0c in CCondition::wait(IScopedLock*, int) () at Condition_lin.cpp:50 #5 0x000000000043794d in CMemoryPipe::Read(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, int) () at MemoryPipe.cpp:139 #6 0x0000000000522875 in IndexThread::operator()() () at urbackupclient/client.cpp:450 #7 0x0000000000412d4d in thread_helper_f(void) () at Server.cpp:1342 #8 0x00000000007c0417 in start () #9 0x00000000007bf407 in __clone () at clone.s:21 #10 0x0000000000000000 in ?? ()
Thread 1 (LWP 11206): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007c0f6f in nanosleep () #3 0x00000000007c1d7a in usleep () #4 0x0000000000428100 in main_fkt(int, char**) () at main.cpp:594 #5 0x00000000005bb8aa in run_real_main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >) () at urbackupclient/cmdline_preprocessor.cpp:59 #6 0x00000000005bea63 in main () at urbackupclient/cmdline_preprocessor.cpp:335
(gdb)
server1
7/04/18 16:45
DEBUG
Share “.symlink_resalys” on “clientname” is still in use (meta-data transfer). Waiting before removing snapshot…
27/04/18 16:46
DEBUG
Loading "urbackup/FILE_METADATA
27/04/18 16:48
DEBUG
Loading "urbackup/FILE_METADATA
27/04/18 16:49
DEBUG
Loading "urbackup/FILE_METADATA
27/04/18 16:51
DEBUG
Loading "urbackup/FILE_METADATA
27/04/18 16:52
DEBUG
Loading "urbackup/FILE_METADATA
27/04/18 16:54
DEBUG
Loading "urbackup/FILE_METADATA
27/04/18 16:55
DEBUG
Loading "urbackup/FILE_METADATA
27/04/18 16:57
DEBUG
Loading "urbackup/FILE_METADATA
27/04/18 16:58
DEBUG
Loading "urbackup/FILE_METADATA
27/04/18 17:00
DEBUG
Loading "urbackup/FILE_METADATA
27/04/18 17:01
DEBUG
Loading "urbackup/FILE_METADATA
server2
27/04/18 16:44
DEBUG
Share “.symlink_resalys” on “clientname” is still in use (meta-data transfer). Waiting before removing snapshot…
fixed the group file , still get stuck at the waiting before removing snapshot.
But this time i didnt waited too much.
Also , snapshots are disabled since the beginign on that client ls -l /usr/local/etc/urbackup/no_filesystem_snapshot
-rw------- 1 root root 0 avril 27 15:43 /usr/local/etc/urbackup/no_filesystem_snapshot
^C
Program received signal SIGINT, Interrupt.
__syscall () at syscall.s:13
13 syscall.s: Aucun fichier ou dossier de ce type.
(gdb) thread apply all bt
Thread 3 (LWP 17028): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007c66de in __timedwait_cp () #3 0x00000000007bf7c3 in pthread_cond_timedwait () #4 0x0000000000438e0c in CCondition::wait(IScopedLock*, int) () at Condition_lin.cpp:50 #5 0x000000000043794d in CMemoryPipe::Read(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, int) () at MemoryPipe.cpp:139 #6 0x0000000000522875 in IndexThread::operator()() () at urbackupclient/client.cpp:450 #7 0x0000000000412d4d in thread_helper_f(void) () at Server.cpp:1342 #8 0x00000000007c0417 in start () #9 0x00000000007bf407 in __clone () at clone.s:21 #10 0x0000000000000000 in ?? ()
Thread 2 (LWP 17042): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007b8d49 in poll () #3 0x000000000041d9fc in CServiceWorker::work(ICustomClient*) () at ServiceWorker.cpp:212 #4 0x000000000041ddfb in CServiceWorker::operator()() () at ServiceWorker.cpp:291 #5 0x0000000000412d4d in thread_helper_f(void*) () at Server.cpp:1342 #6 0x00000000007c0417 in start () #7 0x00000000007bf407 in __clone () at clone.s:21 #8 0x0000000000000000 in ?? ()
Thread 1 (LWP 17020): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007c0f6f in nanosleep () #3 0x00000000007c1d7a in usleep () #4 0x0000000000428100 in main_fkt(int, char**) () at main.cpp:594 #5 0x00000000005bb8aa in run_real_main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >) () at urbackupclient/cmdline_preprocessor.cpp:59 #6 0x00000000005bea63 in main () at urbackupclient/cmdline_preprocessor.cpp:335
it stll get stuck on the same point with a single backup at a time.
(last bt, then i am away fromt he office during one week)
2018-04-27 17:26:01: rc=0 hasError=true state=0
^C
Program received signal SIGINT, Interrupt.
__syscall () at syscall.s:13
13 syscall.s: Aucun fichier ou dossier de ce type.
(gdb) thread apply all bt
Thread 3 (LWP 19291): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007c66de in __timedwait_cp () #3 0x00000000007bf7c3 in pthread_cond_timedwait () #4 0x0000000000438e0c in CCondition::wait(IScopedLock*, int) () at Condition_lin.cpp:50 #5 0x000000000043794d in CMemoryPipe::Read(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, int) () at MemoryPipe.cpp:139 #6 0x0000000000522875 in IndexThread::operator()() () at urbackupclient/client.cpp:450 #7 0x0000000000412d4d in thread_helper_f(void) () at Server.cpp:1342 #8 0x00000000007c0417 in start () #9 0x00000000007bf407 in __clone () at clone.s:21 #10 0x0000000000000000 in ?? ()
Thread 2 (LWP 19303): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007b8d49 in poll () #3 0x000000000041d9fc in CServiceWorker::work(ICustomClient*) () at ServiceWorker.cpp:212 #4 0x000000000041ddfb in CServiceWorker::operator()() () at ServiceWorker.cpp:291 #5 0x0000000000412d4d in thread_helper_f(void*) () at Server.cpp:1342 #6 0x00000000007c0417 in start () #7 0x00000000007bf407 in __clone () at clone.s:21 #8 0x0000000000000000 in ?? ()
Thread 1 (LWP 19283): #0 __syscall () at syscall.s:13 #1 0x00000000007bf351 in sccp () #2 0x00000000007c0f6f in nanosleep () #3 0x00000000007c1d7a in usleep () #4 0x0000000000428100 in main_fkt(int, char**) () at main.cpp:594 #5 0x00000000005bb8aa in run_real_main(std::__1::vector<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > > >) () at urbackupclient/cmdline_preprocessor.cpp:59 #6 0x00000000005bea63 in main () at urbackupclient/cmdline_preprocessor.cpp:335
(gdb) ^CQuit
(gdb) ^CQuit
(gdb) quit
A debugging session is active.