Need help with crash
Posted: Fri Sep 16, 2022 8:59 am
I have some code that's crashing with the below info. If posted snippets of the map file that I think shows where the Exception Frame and Faulted PC are. I think the code is in a callback for a web page when it crashes (or maybe it's already returned from the callback). I have a webform that's receiving around 3K of text from a large text box on my form. I've already modified MAX_VALUE_SIZE in httppost.cpp (in the overload directory) to accommodate the large block of text.
How can I troubleshoot this?
How can I troubleshoot this?
Code: Select all
Leading=BA5EBA11
SwapOutA7=00000000
SwapOutTCB=00000000
SwapInA7=00000000
SwapInTCB=00000000
nPrioOfCurTask=0000002D
nPrioOfHighReady =0000002D
Trailing=BA5EBA11
-------------------Trap information-----------------------------
Exception Frame/A7 =40186F70
Trap Vector =
SwapOutA7=00000000
SwapOutTCB=00000000
SwapInA7=00000000
SwapInTCB=00000000
OSISRLevel32 =00002000
Access Error (2)
Format =04
Status register SR =2704
Fault Status =09
Faulted PC =40027D4C
-------------------Register information-------------------------
A0=8000700E A1=00000000 A2=4D435039 A3=00000000
A4=40012954 A5=40012084 A6=40186F7C A7=40186F70
D0=4D435039 D1=000000FB D2=4018161E D3=00000174
D4=40149B80 D5=400120C8 D6=400DF6F4 D7=00000006
SR=2704 PC=40027D4C
-------------------RTOS information-----------------------------
SR indicates trap from within ISR or CRITICAL RTOS section
The OSTCBCur current task control block = 80000520
This looks like a valid TCB
The current running task is:
-------------------Task information-----------------------------
Task | State |Wait| Call Stack
Idle#3F|Ready | |4005221A,40050F14,0
Main#32|Mailbox |0001|40051FCA,40026C54,4000EAB2,40050F14,0
Update LED Task#3C|Timer |000A|40051FCA,40026740,4000CFFA,40050F14,0
Enet#26|Fifo |0004|40051FCA,40026F8E,4004A75A,40050F14,0
Config Server#2C|Semaphore |0115|40051FCA,40026B06,400127BC,4007FFF0,40020944,
HTTP#2D|Running | |40027D4C,40027D8C,40028726,4002D194,40012976,4007C2F6,
User Input#31|Semaphore |3228|40051FCA,40026B06,400127BC,4001281C,4004EF48,
FTPD#30|Semaphore |0014|40051FCA,40026B06,400127BC,4001281C,400148AC,
Run Task#33|Timer |0001|40051FCA,40026740,400101A8,40050F14,0
-------------------End of Trap Diagnostics----------------------▒Waiting 2sec to start 'A' to abort
from MAP file:
*fill* 0x40027d12 0x2
.text._ZN11buffer_list10RemoveHeadEv
0x40027d14 0x62 nblibs\libnetburner.a(buffers.o)
0x40027d14 _ZN11buffer_list10RemoveHeadEv
*fill* 0x40027d76 0x2
.text._Z9GetBufferv
0x40027d78 0x44 nblibs\libnetburner.a(buffers.o)
0x40027d78 _Z9GetBufferv
.
.
.
.bss.HTTP_Socket_FileRec
0x40184170 0x78 nblibs\libnetburner.a(http.o)
0x40184170 HTTP_Socket_FileRec
.bss.HTTPStk 0x401841e8 0x3000 nblibs\libnetburner.a(http.o)
0x401841e8 HTTPStk
.bss._ZZN16discover_servlet19ProcessSelectResultER6fd_setS1_S1_E3ctx
0x401871e8 0x204 nblibs\libnetburner.a(discoveryservlet.o)