(CCing the list)

Sorry, perhaps I should have been more clear -- I think we need an example of 
code to add to NOX to make this happen.  

To add a couple more notes:

* A more "NOX-ish" way to do this would be to write a component with a handler 
for Shutdown_event and do your finalization there, rather than hacking up the 
core code which is what it sounds like you're doing.

* If you're doing normal-ish logging, you might think about using NOX's logging 
infrastructure.


-- Murphy

On Aug 7, 2012, at 1:14 PM, Kelvin Zou wrote:

> Hi, Murphy:
>  I am using NOX 0.9.0(zaku), and I am using mininet with virtual 10 hosts 10 
> switches, call pingall functions, and then press control+c quit NOX, suddenly 
> I will get error like that. 
> Thank you! 
> 
> On Tue, Aug 7, 2012 at 3:12 PM, Murphy McCauley <[email protected]> 
> wrote:
> I'd suggest you post which version of NOX you're using and a minimal example 
> which reproduces the issue.
> 
> -- Murphy
> 
> On Aug 7, 2012, at 1:00 PM, Kelvin Zou wrote:
> 
>> 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
>> 
> 
> 
> 
> 
> -- 
> Thanks!
> Kelvin Zou
> 

Reply via email to