Re: [Cppcms-users] Segmentaion fault occurs to booster::aio::io_service running in booster::thread
Brought to you by:
artyom-beilis
From: Artyom B. <art...@gm...> - 2016-05-09 10:37:39
|
1st why are you using your own signal handler instead of one used by CppCMS it looks like doing the same stuff. On segfault - can you show the backtrace of the stack from gdb when it happens. Artyom > May 8 21:36:13 host t: ==1==: (t.cpp:51) > May 8 21:36:36 host t: begin handler: (t.cpp:12) > May 8 21:36:36 host t: end handler: (t.cpp:15) > May 8 21:36:36 host t: ==2==: (t.cpp:53) > May 8 21:36:36 host kernel: a.out[5146]: segfault at b5b5dba8 ip > b715205e sp bfad0620 error 4 in libpthread-2.19.so[b714a000+18000] > > > With this simple code, I get segfault at "mc.stop(); mc_thread.join();" > after issuing command "kill -TERM <pid>". Would someone please enlighten > me why? > |