Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - io-pkt-v4/v6-hc core .. "ipflow: unexpected context: cur: 476 from: 662" events on sloginfo: (4 Items)
   
io-pkt-v4/v6-hc core .. "ipflow: unexpected context: cur: 476 from: 662" events on sloginfo  
We have a "virtual driver" mounted on io-pkt as a normal driver but exchanging packets through standard IPC with other 
processes instead of through the wire.
All stuff works fine but when high packet rate is involved (and fast forward with real interface) we have an io-pkt core
.
I see on sloginfo a the following traces:

Apr 30 09:45:20 5 14 0 ient 82fbc9c from 0 to 1
Apr 30 10:28:07 1 14 0 ipflow: unexpected context: cur: 476 from: 662
Apr 30 10:28:07 5 21 0 run fault pid 770547726 tid 2 signal 6 code 0 ip 0xb033e2c1 sbin/io-pkt-v6-hc

What is the meaning of this "unexpected context" and what can I do to avoid that?
Thanks
Alessio Carlini
Re: io-pkt-v4/v6-hc core .. "ipflow: unexpected context: cur: 476 from: 662" events on sloginfo  
It has failed a diagnostic check of the context:

if ((wtp)->intr_sighot != _ISIG_COLD && (wtp)->wt_critical == 0)
		panic("ipflow: unexpected context: cur: %d  from: %d",

The cur and from are line numbers in ip_flow.c and are ipflow_lookup_self() called from ipflow_fastforward()
Re: io-pkt-v4/v6-hc core .. "ipflow: unexpected context: cur: 476 from: 662" events on sloginfo  
Thanks for your reply, but what is the root cause of that fatal condition.
I mean, we have mounted two modules on io-pkt:
- one ip filter
- one virtual driver
I suppose that something there cause this problem, but up to now I dont' know where.

As you see the problem appear with IP traffic involving two interface (a real one and the virtual one) and so the fast 
forward optimization .. but only on high rate, otherwise all stuff works fine.

Note that before this event I see a lot of this other traces on sloginfo
Jun 08 12:28:19    5    14     0 ient 810ac9c from 0 to 1
Jun 08 12:28:20    5    14     0 ient 810ac9c from 1 to 0
Jun 08 12:28:20    5    14     0 ient 8241c9c from 0 to 1

Thanks for any idea or detail about the root cause of this core.

Re: io-pkt-v4/v6-hc core .. "ipflow: unexpected context: cur: 476 from: 662" events on sloginfo  
Those logs are of the interrupt worker entries migrating between threads 0 and 1 based on load to try and even out the 
processing load.

This is a diagnostic panic, the context is not correct for the code at this point. Without decoding the full core and 
examining the source of the drivers its impossible to say what is wrong at this point. I would suggest opening a support
 case.