-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TW#23300] Guru Meditation Error: Core 1 panic'ed (IllegalInstruction) . Why this Exception is happening ? (IDFGH-11023) #2035
Comments
An Illegal Instruction Exception occurs when the CPU runs across an invalid assembly instruction.
If your application does not utilize SPI Flash, I suspect the illegal instruction exception was due to the first reason, and probably caused by returning from a FreeRTOS task. |
Also please use idf monitor, it will decode the backtrace, telling where the crash is happening. |
@Dazza0 |
@Dazza0 Is there any possibility these exceptions are due to free RTOS Internals ? . When we do some very basic testing this Exception never happens , But when we have multiple task getting this issue , Not so often once in a while , So we are scared to release the code to customer. we cannot accept abrupt reset of system. |
@igrr we will see the back trace and analyse it Thank you very much for your response. |
@jegajith I think it's unlikely to be due to FreeRTOS. But the only way to really tell is to look at the back trace to see what code/function is running at address |
@Dazza0 The bad part is that its not coming every time , So I am waiting for next guru meditation exception to do a back trace .. Thanks for your reply 👍 |
@jegajith fyi, if you still have the
and then use the command |
Hi All , |
Could you please post a couple of examples of stack traces? |
@igrr I will collect back trace log and share you . Waiting for the next exception :-) |
Please find the Log and Back Trace I (10546402) APP_DEBUG: JSON - MQTT TOPIC PUBLISHED SUCCESSFULLY Backtrace: 0x4011049e:0x3ffdbca0 0x401197af:0x3ffdbd10 0x40112bed:0x3ffdbd30 Rebooting... |
There's some sort of memory corruption going on. The error this time around is a "LoadProhibited" error which occurs when the CPU attempts to write/read from in invalid address which in this case is Also might be a good idea to enable stack overflow canary to check if the memory corruption is indeed due to a stack overflow. |
@Dazza0 Thanks a lot I will check and update you |
I am closing this issue . If any one one has any idea to Write a general handler to take care this exception it will be great. |
One possibility could be missing return in function body. In my case I had function returning struct but I forgot to return it and it crashed with this exact log. :)) |
Is there any way we can TRAP all exception and decide to Not to reset the ESP
We have some use case , which cannot reset in between.
I (35132) APP_DEBUG: Time left for entire regen (Recharge.Time_Left)= 6823
I (35142) APP_DEBUG: Valve.Error_Timer = 3258
I (35152) APP_DEBUG: Valve.Longest = 3840 Valve.Next_Longest = 3840 Valve.Long_Position = 0
I (35162) APP_DEBUG: END*
I (36122) APP_DEBUG: System Power Up, Days: 0 and Time: 12:00:34
I (36122) APP_DEBUG: START(In Regen)*
I (36122) APP_DEBUG: Valve.Position is (SERVICE ) Valve.Req_Position (SERVICE )
I (36132) APP_DEBUG: Time left in current regen positon (Recharge.Position_Timer) = 0
I (36132) APP_DEBUG: Time left for entire regen (Recharge.Time_Left)= 6823
I (36142) APP_DEBUG: Valve.Error_Timer = 3241
I (36152) APP_DEBUG: Valve.Longest = 3840 Valve.Next_Longest = 3840 Valve.Long_Position = 0
I (36162) APP_DEBUG: END*
Guru Meditation Error: Core 1 panic'ed (IllegalInstruction)
. Exception was unhandled.
Core 1 register dump:
PC : 0x401434e1 PS : 0x00060e30 A0 : 0x800d71af A1 : 0x3ffdcf20
A2 : 0x00000000 A3 : 0x00000000 A4 : 0x00060e20 A5 : 0x00000001
A6 : 0x00060e20 A7 : 0x00060023 A8 : 0x800d956c A9 : 0x3ffdcf10
A10 : 0x00000001 A11 : 0x000000e8 A12 : 0x3ffddcd4 A13 : 0x3ffdcf20
A14 : 0x00000000 A15 : 0x3ffddcd4 SAR : 0x00000003 EXCCAUSE: 0x00000000
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Backtrace: 0x401434e1:0x3ffdcf20 0x400d71ac:0x3ffdcf50 0x400d7285:0x3ffdcf70 0x400df56f:0x3ffdcf90 0x400d9559:0x3ffdcfb0
Rebooting...
I (30) boot: ESP-IDF v3.1-dev-1171-g358c822d-dirty 2nd stage bootloader
I (30) boot: compile time 12:23:40
I (31) boot: Enabling RNG early entropy source...
I (36) boot: SPI Speed : 40MHz
I (40) boot: SPI Mode : DIO
I (44) boot: SPI Flash Size : 16MB
I (48) boot: Partition Table:
The text was updated successfully, but these errors were encountered: