AnsweredAssumed Answered

how to locate userspace error accurately

Question asked by kenny on Dec 4, 2012
Latest reply on Dec 14, 2012 by Aaronwu

hello all,

        we're using bf533 on our devices. During test blf, find the following error:

        

COMM=asterisk PID=164
TEXT = 0x00500000-0x005ac2bc        DATA = 0x006402bc-0x0066efdc
BSS = 0x0066efdc-0x00620000  USER-STACK = 0x0063feb0

return address: [0x00e12bb8]; contents of:
0x00e12b90:  01d0  e422  001f  e588  01d0  0c00  5a91  07d3
0x00e12ba0:  bcf2  e428  0016  b130  2013  0c41  1c04  9948
0x00e12bb0:  0c00  1403  e539  f6e2 [e52a] 0016  0c42  1c04
0x00e12bc0:  9950  0c00  067a  e422  001f  bcf1  b137  e12a

SEQUENCER STATUS:               Not tainted
SEQSTAT: 00002027  IPEND: 0030  SYSCFG: 0006
  HWERRCAUSE: 0x0
  EXCAUSE   : 0x27
RETE: <0x00000000> /* Maybe null pointer? */
RETN: <0x02422000> /* unknown address */
RETX: <0x00e12bb8> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12bb8 ]
RETS: <0x00e12b80> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12b80 ]
PC  : <0x00e12bb8> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12bb8 ]
DCPLB_FAULT_ADDR: <0x00000058> /* Maybe null pointer? */
ICPLB_FAULT_ADDR: <0x00e12bb8> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12bb8 ]

PROCESSOR STATE:
R0 : 00000036    R1 : 00000009    R2 : 00000076    R3 : c0000000
R4 : 0241bc54    R5 : 00e35070    R6 : 00451d44    R7 : 00447647
P0 : 00e3507c    P1 : 003ac4f0    P2 : 02c34bea    P3 : 02c34b18
P4 : 00d8b7d8    P5 : 00000000    FP : 0241bc60    SP : 02421f24
LB0: 02c1ef29    LT0: 02c1ef26    LC0: 00000000
LB1: 02c1cf7b    LT1: 02c1cf7a    LC1: 00000000
B0 : ffffffff    L0 : 00000000    M0 : 00000000    I0 : 0241b9b1
B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 02c35918
B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00000000
B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 0063f6fc
A0.w: 00000001   A0.x: 00000000   A1.w: 00000001   A1.x: 00000000
USP : 024197a8  ASTAT: 02001004

Hardware Trace:
   0 Target : <0x0000464c> { _trap_c + 0x0 }
     Source : <0xffa00764> { _exception_to_level5 + 0xb4 }
   1 Target : <0xffa006b0> { _exception_to_level5 + 0x0 }
     Source : <0xffa00608> { _ex_trap_c + 0x5c }
   2 Target : <0xffa005ac> { _ex_trap_c + 0x0 }
     Source : <0xffa00804> { _trap + 0x28 }
   3 Target : <0xffa007dc> { _trap + 0x0 }
     Source : <0x00e12bb2> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12bb2 ]
   4 Target : <0x00e12baa> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12baa ]
     Source : <0x00e12b86> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12b86 ]
   5 Target : <0x00e12b80> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12b80 ]
     Source : <0x02c1fe94> [ /lib/libuClibc-0.9.29.so + 0x1fe94 ]
   6 Target : <0x02c1fe8c> [ /lib/libuClibc-0.9.29.so + 0x1fe8c ]
     Source : <0x02c1fe80> [ /lib/libuClibc-0.9.29.so + 0x1fe80 ]
   7 Target : <0x02c1fe64> [ /lib/libuClibc-0.9.29.so + 0x1fe64 ]
     Source : <0x02c1fe5e> [ /lib/libuClibc-0.9.29.so + 0x1fe5e ]
   8 Target : <0x02c1fe4c> [ /lib/libuClibc-0.9.29.so + 0x1fe4c ]
     Source : <0x00e0a022> [ /usr/lib/asterisk/modules/chan_sip.so + 0xa022 ]
   9 Target : <0x00e0a01a> [ /usr/lib/asterisk/modules/chan_sip.so + 0xa01a ]
     Source : <0x00e12b7c> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12b7c ]
  10 Target : <0x00e12b64> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12b64 ]
     Source : <0x00e12b5e> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12b5e ]
  11 Target : <0x00e12b54> [ /usr/lib/asterisk/modules/chan_sip.so + 0x12b54 ]
     Source : <0x0056add4> [ /bin/asterisk + 0x6add4 ]
  12 Target : <0x0056add0> [ /bin/asterisk + 0x6add0 ]
     Source : <0x0056adbe> [ /bin/asterisk + 0x6adbe ]
  13 Target : <0x0056adb8> [ /bin/asterisk + 0x6adb8 ]
     Source : <0x0056adb4> [ /bin/asterisk + 0x6adb4 ]
  14 Target : <0x0056ad9c> [ /bin/asterisk + 0x6ad9c ]
     Source : <0x02c1b2d2> [ /lib/libuClibc-0.9.29.so + 0x1b2d2 ]
  15 Target : <0x02c1b2b8> [ /lib/libuClibc-0.9.29.so + 0x1b2b8 ]
     Source : <0x02c1cd04> [ /lib/libuClibc-0.9.29.so + 0x1cd04 ]
Stack from 02421f04:
        00010e1c ffa00768 001ca628 001ca628 001ca624 00000003 024196fc 02c0e542
        00e12bb8 00000030 00002027 00000000 02422000 00e12bb8 00e12bb8 00e12b80
        00000036 02001004 02c1cf7b 02c1ef29 02c1cf7a 02c1ef26 00000000 00000000
        00000001 00000000 00000001 00000000 00000000 00000000 00000000 ffffffff
        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        0063f6fc 00000000 02c35918 0241b9b1 024197a8 0241bc60 00000000 00d8b7d8

Call Trace:

 

I don't know how to locate userspace function accurately which causes error.

By running the command "readelf -s chan_sip.so | grep 12b*, nothing output!

Attachments

Outcomes