2008-03-08 06:37:24     Null Pointer access

Document created by Aaronwu Employee on Aug 5, 2013
Version 1Show Document
  • View in full screen mode

2008-03-08 06:37:24     Null Pointer access

kanal kannan (INDIA)

Message: 52217    Hi all,

 

I'm getting the following error when i'm executing the application code in my target. I'm using BF561 ezkit lite and the distribution is 2007Rc1-Rc3.

 

root:/bin> ./EXE_DCT_A_SRVR_NP

 

 

NULL pointer access (probably)

 

CURRENT PROCESS:

 

COMM=EXE_DCT_A_SRVR_ PID=95

TEXT = 0x02000040-0x020c1f00  DATA = 0x020c1f10-0x020ebe70

BSS = 0x020ebe70-0x0230b590   USER-STACK = 0x023fff6c

 

return address: 0x02097aac; contents of [PC-16...PC+8]:

014b 3200 3219 3212 0e3a 1818 3401 56c1

4ff3 0300 1015 44d1 6ff9 601b 549a 3212 X

9c01 e0a2 1002 c803 1800 9201 9c01 9201

 

RETE:  00000000  RETN: 00650000  RETX: 02097aac  RETS: 02006ba8

IPEND: 0030  SYSCFG: 0036

SEQSTAT: 00060027    SP: 0064ff24

R0: 00000000    R1: 00000000    R2: 00000000    R3: 00000003

R4: 006603c4    R5: 0201ff88    R6: 00000001    R7: 00000000

P0: 00000000    P1: 00000001    P2: 00000000    P3: 00000000

P4: 023fff70    P5: 008e80f4    FP: 023ffef0

A0.w: 00000000    A0.x: 00000000    A1.w: 00000000    A1.x: 00000000

LB0: 02097ab3  LT0: 02097ab2  LC0: 00000000

LB1: 020068a7  LT1: 020068a6  LC1: 00000000

B0: 00000000  L0: 00000000  M0: 00000000  I0: 00000000

B1: 00000000  L1: 00000000  M1: 00000000  I1: 00001000

B2: 00000000  L2: 00000000  M2: 00000000  I2: 00000000

B3: 00000000  L3: 00000000  M3: 00000000  I3: 00000000

 

USP: 023fe2fc   ASTAT: 02000021

DCPLB_FAULT_ADDR=00000000

ICPLB_FAULT_ADDR=02097aac

 

 

Hardware Trace:

0 Target : <0x00004598> { _trap_c + 0x0 }

   Source : <0xffa00c54> { _exception_to_level5 + 0xb4 }

1 Target : <0xffa00ba0> { _exception_to_level5 + 0x0 }

   Source : <0xffa00b9e> { _ex_trap_c + 0x5a }

2 Target : <0xffa00ccc> { _trap + 0x0 }

   Source : <0x02097aaa> [ EXE_DCT_A_SRVR_ + 0x97aaa ]

3 Target : <0x02097a8c> [ EXE_DCT_A_SRVR_ + 0x97a8c ]

   Source : <0x02006ba4> [ EXE_DCT_A_SRVR_ + 0x6ba4 ]

4 Target : <0x02006b7e> [ EXE_DCT_A_SRVR_ + 0x6b7e ]

   Source : <0x02006bbc> [ EXE_DCT_A_SRVR_ + 0x6bbc ]

5 Target : <0x02006bb2> [ EXE_DCT_A_SRVR_ + 0x6bb2 ]

   Source : <0x02006b7c> [ EXE_DCT_A_SRVR_ + 0x6b7c ]

6 Target : <0x02006b72> [ EXE_DCT_A_SRVR_ + 0x6b72 ]

   Source : <0x020bf154> [ EXE_DCT_A_SRVR_ + 0xbf154 ]

7 Target : <0x020bf150> [ EXE_DCT_A_SRVR_ + 0xbf150 ]

   Source : <0x020bf13a> [ EXE_DCT_A_SRVR_ + 0xbf13a ]

8 Target : <0x020bf134> [ EXE_DCT_A_SRVR_ + 0xbf134 ]

   Source : <0x020bf0ea> [ EXE_DCT_A_SRVR_ + 0xbf0ea ]

9 Target : <0x020bf0e8> [ EXE_DCT_A_SRVR_ + 0xbf0e8 ]

   Source : <0x020988ba> [ EXE_DCT_A_SRVR_ + 0x988ba ]

10 Target : <0x020988b6> [ EXE_DCT_A_SRVR_ + 0x988b6 ]

   Source : <0x020988a8> [ EXE_DCT_A_SRVR_ + 0x988a8 ]

11 Target : <0x020988a6> [ EXE_DCT_A_SRVR_ + 0x988a6 ]

   Source : <0x02098888> [ EXE_DCT_A_SRVR_ + 0x98888 ]

12 Target : <0x0209887c> [ EXE_DCT_A_SRVR_ + 0x9887c ]

   Source : <0x020987de> [ EXE_DCT_A_SRVR_ + 0x987de ]

13 Target : <0x020987dc> [ EXE_DCT_A_SRVR_ + 0x987dc ]

   Source : <0x020996b2> [ EXE_DCT_A_SRVR_ + 0x996b2 ]

14 Target : <0x020996a8> [ EXE_DCT_A_SRVR_ + 0x996a8 ]

   Source : <0x020987d8> [ EXE_DCT_A_SRVR_ + 0x987d8 ]

15 Target : <0x020987d4> [ EXE_DCT_A_SRVR_ + 0x987d4 ]

   Source : <0x02098b98> [ EXE_DCT_A_SRVR_ + 0x98b98 ]

Stack from 0064ff04:

        00000000 ffa00c58 0013e71c 0013e71c 0013e710 04000021 00000000 02099858

        02097aac 00000030 00060027 00000000 00650000 02097aac 02097aac 02006ba8

        00000000 02000021 020068a7 02097ab3 020068a6 02097ab2 00000000 00000000

        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        00000000 00000000 00001000 00000000 023fe2fc 023ffef0 008e80f4 023fff70

Call Trace:

 

SIGSEGV

I can't exactly locate the cause of error by obj dumping the execution file.

 

Any help in this regard is highly appreciated.

 

regards

Kannan

QuoteReplyEditDelete

 

 

2008-03-08 06:47:50     Re: Null Pointer access

Mike Frysinger (UNITED STATES)

Message: 52218    please refer to the wiki:

http://docs.blackfin.uclinux.org/doku.php?id=debuging_applications#analyzing_traces

http://docs.blackfin.uclinux.org/doku.php?id=debuggers

Attachments

    Outcomes