05-02-2015 10:31 AM
Sure way to crash router with a simpl script that contain a bug, with any IOS version. Maybe someone at Cisco wants to give it a look.
Code below. Example application can be started with "call application session start <anything> <service> name.
When callTimer is reached (because the application fails to stop timer), HTTP token Gtok has been cleaned up already and router crashes.
A variant is not to use a timer and do reset after cleanup. That produces only a "Potential memory corruption" print on termina monitor.
package require httpios 1.0
proc sessInd {} {
global Gtok
set Gtok [::httpios::geturl http://54.175.219.8/ip -command callBack]
timer start call_timer0 4
}
proc callBack {token} {
puts -nonewline callBack
::httpios::cleanup $token
}
proc callTimer {} {
global Gtok
::httpios::reset $Gtok
}
set fsm(INIT,ev_session_indication) "sessInd same_state"
set fsm(INIT,ev_call_timer0) "callTimer same_state"
fsm define fsm INIT
05-04-2015 03:10 AM
so if you use call_timer only you see router crash, if you use named_timer you wont see router crash?
Thanks,
Raghavendra
05-04-2015 02:30 PM
Replacing call_timer0 with named_timer does not crash the router but produces a message "Potential memory corruption" on terminal monitor.
05-04-2015 11:09 PM
Could you please share crashinfo file and also let us know which IOS version you are using.
Thanks,
Raghavendra
05-05-2015 01:23 AM
Could you please share crashinfo file and also let us know which IOS version you are using.
No crashinfo file is produced. As mentioned I've tried multiple IOS versions including later 15.4M, and it crashes them all.
05-05-2015 08:31 AM
If start timer called globally,It created spurious memory access issues and affects performance of the Voice GW.
Are you trying to kicked off script immediately after configuring it on the Voice GW and every time the timer expires it issues a HTTP request to a server ?
05-05-2015 08:54 AM
If start timer called globally,It created spurious memory access issues and affects performance of the Voice GW.
Are you trying to kicked off script immediately after configuring it on the Voice GW and every time the timer expires it issues a HTTP request to a server ?
No. As you can see in the example above, all commands are executed from within valid event procedures.
05-05-2015 11:53 PM
I have raised bug for this issue.
Thanks,
Raghavendra
05-06-2015 12:33 AM
I have raised bug for this issue.
Thanks. Would be possible to post the bug id here?
05-06-2015 01:54 AM
ok, here is the bug id CSCuu19831 .
Thanks,
Raghavendra
05-06-2015 06:47 AM
ok, here is the bug id CSCuu19831 .
Thank you very much Raghavendra.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide