Re: [Cppcms-users] Segmentaion fault occurs to booster::aio::io_service running in booster::thread
Brought to you by:
artyom-beilis
From: CN <cn...@fa...> - 2016-05-09 15:35:52
|
On Mon, May 9, 2016, at 09:01 PM, CN wrote: > > Regarding the log of gdb backtrace, I seem to have encountered some > trouble - upon the arrival of signal HUP, the process straightly > disappears from gdb's control without trace leaving command > "backtrace" useless. > I am still trying to figure out how. I will post it as soon as I > have it. > I am unable to get useful result from gdb: (gdb) run [Here the program stops at cppcms::service::run()] [Find the running process id in another terminal.] (gdb) attach 5343 [A lot messages appear here] [Type command "kill -HUP 5343" in another terminal] (gdb) c Continuing. Program received signal SIGHUP. Hangup. 0xb7fdfce2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 (gdb) Continuing. Cannot get thread event message: debugger service failed (gdb) Continuing. Cannot execute this command while the selected thread is running. ---- This is the related ouput from valgrind: ==6206== Invalid read of size 4 ==6206== at 0x462105E: pthread_join (pthread_join.c:47) ==6206== by 0x4121897: booster::thread::join() (pthread.cpp:85) ==6206== by 0x8049799: main (t.cpp:54) ==6206== Address 0x6821ba8 is not stack'd, malloc'd or ==(recently) free'd ==6206== ==6206== ==6206== Process terminating with default action of signal 11 (SIGSEGV) ==6206== Access not within mapped region at address 0x6821BA8 ==6206== at 0x462105E: pthread_join (pthread_join.c:47) ==6206== by 0x4121897: booster::thread::join() (pthread.cpp:85) ==6206== by 0x8049799: main (t.cpp:54) I seem to have encountered big trouble! How can it be pthread_join that is buggy? Any thought? Meanwhile, I am going to run this program in different machine to find more... Regards, CN -- http://www.fastmail.com - IMAP accessible web-mail |