Need help with crash

Discussion to talk about software related topics only.
Post Reply
jaypdx
Posts: 29
Joined: Wed Oct 15, 2014 6:06 pm

Need help with crash

Post by jaypdx »

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?



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)
                
User avatar
TomNB
Posts: 569
Joined: Tue May 10, 2016 8:22 am

Re: Need help with crash

Post by TomNB »

Product and tools version?
jaypdx
Posts: 29
Joined: Wed Oct 15, 2014 6:06 pm

Re: Need help with crash

Post by jaypdx »

MOD54415
tools ver 3.3.0
jaypdx
Posts: 29
Joined: Wed Oct 15, 2014 6:06 pm

Re: Need help with crash

Post by jaypdx »

Learned some more about this. Seems like I'm running into trouble when the text I'm sending exceeds ~1500bytes. Isn't that about a standard ethernet pack size?

I've simplified my code so all I do in the callback is print the pName and pValue coming from the browse. Under 1500 bytes things seem to be ok, but above that I'm getting some garbage in the buffer and it often crashes.

Code: Select all

configFormPostCallBack:eVariable: pName=[configtext] len(pValue=1474)  pValue=[
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# AAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
# ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ@▒▒ZZZZZZZZZZZZZZZZ]
jaypdx
Posts: 29
Joined: Wed Oct 15, 2014 6:06 pm

Re: Need help with crash

Post by jaypdx »

Looks like I may be having the same problem as in this post:

viewtopic.php?f=5&t=3237&sid=6cc17b065c ... 2e8008caa2

The comment 'present system does not really support large individual variables.....' doesn't sound encouraging.
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: Need help with crash

Post by pbreed »

This has been fixed in our internal releases... *Latest public release June 22, this was fixed in internal GIT in early Aug.
submit a support ticket and get a patch... (You may have already done so as this was discussed as a support ticket in internal dev meeting today.)
User avatar
TomNB
Posts: 569
Joined: Tue May 10, 2016 8:22 am

Re: Need help with crash

Post by TomNB »

You should also consider an update to 3.3.8 before applying the patch.
jaypdx
Posts: 29
Joined: Wed Oct 15, 2014 6:06 pm

Re: Need help with crash

Post by jaypdx »

Mike worked with me to get this sorted out. It did require upgrading to 3.3.8 and applying the new httppost.cpp via the overload directory. For anyone needing to do this, make sure you leave MAX_HTTP_POST_VAR_VALUE_SIZE (in constants.h) set to the default value of 256.
Post Reply