Hi, everyone: Currently I am trying to plug in some other functionality into nox, and I am trying to using fprintf(logfile, " blah blah ...") to get some information. To finishing writing, I get the function Singal_handler:run() in src/buildin/nox.cc as signal handler function, and do everything here. But for some reason I got sigfault from it, what is even worse, the sigfault comes from some functions I never modified before. Since nox disable valgrind, I even cannot get where exactly the sig fault from. Could anyone give any hint? Thank you so much! Attached is the information from terminal:
Caught signal 11. 0x002f15b1 80 (vigil::fault_handler(int)+0x51) 0x00833400 3063604712 (__kernel_sigreturn+0x0) 0x00a74935 0x00a77a9d 24 (cfree+0x6d) 0x008ef741 32 (operator delete(void*)+0x21) 0x0035e637 64 (vigil::co_group::~co_group()+0x37) 0x00a37588 52 (__cxa_finalize+0xb8) 0x002ddb44 0x0037a6e0 0x009f9266 0x00a371bf 0x00a3722f 0x08073372 0x002e887f 2912 (vigil::Event_dispatcher::dispatch(vigil::Event const&)+0x38f) 0x002e996c 96 (vigil::Event_dispatcher::poll()+0x9c) 0x00338c40 0x0033956b 0x0033a102 80 (vigil::Poll_loop_impl::run()+0xb2) 0x0033a22f 32 (vigil::Poll_loop::run()+0x1f) 0x08064223 32 (vigil::nox::run()+0x13) 0x0806aed2 7264 (main+0x24f2) 0x00a1ebd6 144 (__libc_start_main+0xe6) Segmentation fault -- Thanks! Kelvin Zou
