2009-04-06 07:53:50     ICPLB_FAULT_ADDR-kernel dynamic memory

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

2009-04-06 07:53:50     ICPLB_FAULT_ADDR-kernel dynamic memory

Parimala Baggiri (INDIA)

Message: 72212   

 

Hello,

 

            I need some help in locating this problem. when will ICPLB_FAULT_ADDR be returned with "kernel dynamic memory"? Following is the log of the error.

 

Instruction fetch CPLB miss

- CPLB miss on an instruction fetch.

Deferred Exception context

CURRENT PROCESS:

COMM=tlmdmip PID=70

CPU = 0

TEXT = 0x00800040-0x008d37a0        DATA = 0x008d37c0-0x009d2004

BSS = 0x009d2004-0x00a40690  USER-STACK = 0x00b40f10

 

return address: [0x61705c0a]; contents of:

0x61705be0:  ????  ????  ????  ????  ????  ????  ????  ????

0x61705bf0:  ????  ????  ????  ????  ????  ????  ????  ????

0x61705c00:  ????  ????  ????  ????  ???? [????] ????  ????

0x61705c10:  ????  ????  ????  ????  ????  ????  ????  ????

 

SEQUENCER STATUS:        Tainted: P        

SEQSTAT: 0006002c  IPEND: 0030  SYSCFG: 0006

  EXCAUSE   : 0x2c

  interrupts disabled

  physical IVG5 asserted : <0xffa00c0c> { _evt_ivhw + 0x0 }

RETE: <0x00000000> { __stext + 0xfffff000 }

RETN: <0x0033e000> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x00827cda> [ tlmdmip + 0x27c9a ]

PC  : <0x61705c0a> /* kernel dynamic memory */

DCPLB_FAULT_ADDR: <0x0034a5e8> [ tlmdmip + 0x25e8 ]

ICPLB_FAULT_ADDR: <0x61705c0a> /* kernel dynamic memory */

 

PROCESSOR STATE:

R0 : 009d56cc    R1 : 0000000c    R2 : 00000000    R3 : 00000001

R4 : 001f19ac    R5 : 00817434    R6 : 00000030    R7 : 001f1df8

P0 : 009d1d44    P1 : 00000001    P2 : 61705c0a    P3 : 00000043

P4 : 00000030    P5 : 0034be24    FP : 0034be04    SP : 0033df24

LB0: 008c81dd    LT0: 008c81da    LC0: 00000000

LB1: 008cf069    LT1: 008cf022    LC1: 00000000

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

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 009d1c34

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

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

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

USP : 0034a5c8  ASTAT: 02001025

 

Hardware Trace:

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

     Source : <0xffa00692> { _exception_to_level5 + 0x9e } CALL pcrel

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

     Source : <0xffa004b6> { _bfin_return_from_exception + 0xe } RTX

   2 Target : <0xffa004a8> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa0054a> { _ex_trap_c + 0x66 } JUMP.S

   3 Target : <0xffa003f4> { _ex_dcplb_miss + 0x0 }

     Source : <0xffa0072c> { _trap + 0x38 } JUMP (P4)

   4 Target : <0xffa00712> { _trap + 0x1e }

     Source : <0xffa0070e> { _trap + 0x1a } IF !CC JUMP

   5 Target : <0xffa006f4> { _trap + 0x0 }

     Source : <0x00827cd8> [ tlmdmip + 0x27c98 ] CALL (P2)

   6 Target : <0x00827cca> [ tlmdmip + 0x27c8a ]

     Source : <0x008c6202> [ tlmdmip + 0xc61c2 ] RTS

   7 Target : <0x008c61fe> [ tlmdmip + 0xc61be ]

     Source : <0x008c6b2e> [ tlmdmip + 0xc6aee ] RTS

   8 Target : <0x008c6b26> [ tlmdmip + 0xc6ae6 ]

     Source : <0x008bbe66> [ tlmdmip + 0xbbe26 ] RTS

   9 Target : <0x008bbe60> [ tlmdmip + 0xbbe20 ]

     Source : <0x008bbe4e> [ tlmdmip + 0xbbe0e ] IF !CC JUMP

  10 Target : <0x008bbe3a> [ tlmdmip + 0xbbdfa ]

     Source : <0x008bbe0c> [ tlmdmip + 0xbbdcc ] JUMP.S

  11 Target : <0x008bbe0c> [ tlmdmip + 0xbbdcc ]

     Source : <0x008bd292> [ tlmdmip + 0xbd252 ] RTS

  12 Target : <0x008bd28c> [ tlmdmip + 0xbd24c ]

     Source : <0x008bd38e> [ tlmdmip + 0xbd34e ] JUMP.S

  13 Target : <0x008bd38c> [ tlmdmip + 0xbd34c ]

     Source : <0x008bed4e> [ tlmdmip + 0xbed0e ] RTS

  14 Target : <0x008bed42> [ tlmdmip + 0xbed02 ]

     Source : <0x00000428> /* Maybe fixed code section */ RTS

  15 Target : <0x00000420> /* Maybe fixed code section */

     Source : <0x008bed40> [ tlmdmip + 0xbed00 ] CALL (P5)

Userspace Stack

Stack info:

SP: [0x0034a5c8] <0x0034a5c8> [ tlmdmip + 0x25c8 ]

FP: (0x0034ab04)

Memory from 0x0034a5c0 to 0034b000

0034a5c0: 0034be04 <00827cca>[008e07f8] 61705c0a  0000000c  00000019  009d2470 <00847f76>

0034a5e0: 00000000  009d56cc  0000000c  009d56d4  00000008 <0084a32a> 00a22edc  0000000a

0034a600: ff62db06  00a16d58  00000004  00000001  00a16d52  00a16d5c <0084763e> 00a22edc

0034a620: 00000009  00000006  00a16d58  00000004  00000009  00a16d58  0609a648  00000004

0034a640:<0084a22e> 00a22edc  00a16d54  00000008  00a22edc <0082304a> 00000000  00a16d54

0034a660: 00000008  00000008  00000000  00a16d54  008dc021  009d0b94  0034a684 <00822190>

0034a680: 008dee84  00000009  fefefeff  0034a698 <00815a28> 008dbab8  0000001e  fefefeff

0034a6a0: 00000261  00000000  00000004  0034a6b8 <00817ea2> 0034aaf8  0000001e  fefefeff

0034a6c0: 00000000  ffffffff  00000010  00000010  00000010  00000000  00000000  ffffffff

0034a6e0: 00000010  00000010  00000010  00000000  00000000  ffffffff  00000010  00000010

0034a700: 00000010  00000000  00000000  ffffffff  00000010  00000010  00000010  00000000

0034a720: 00000000  ffffffff  00000010  00000010  00000010  00000000  00000000  ffffffff

0034a740: 00000010  00000010  00000010  00000000  00000000  ffffffff  00000010  00000010

0034a760: 00000010  00000000  00000000  ffffffff  00000010  00000010  00000010  00000000

0034a780: 00000000  ffffffff  00000010  00000010  00000010  00000000  00000000  ffffffff

0034a7a0: 00000010  00000010  00000010  00000000  00000000  ffffffff  00000010  00000010

0034a7c0: 00000010  00000000  00000000  ffffffff  00000010  00000010  00000010  00000000

0034a7e0: 00000000  ffffffff  00000010  00000010  00000010  00000000  00000000  ffffffff

0034a800: 00000010  00000010  00000010  00000000  00000000  ffffffff  00000010  00000010

0034a820: 00000010  00000000  00000000  ffffffff  00000010  00000010  00000010  00000000

0034a840: 00000000  00000005  0034b054  0000001b  000034c9  00000000  00000000  00000012

0034a860: 0000000b  00000010  00000001  00000010  00000000  00000000  0000000c  00000000

0034a880: 00000010  00000010  00000001  00000000  00000014  00000002  00000010  00000010

0034a8a0: 00000001  00000000  00000019  00000003  00000010  00000010  00000000  00000000

0034a8c0: 0000001a  00000004  00000010  00000010  00000001  00000000  ffffffff  00000010

0034a8e0: 00000010  00000010  00000000  00000000  ffffffff  00000010  00000010  00000010

0034a900: 00000000  00000000  ffffffff  00000010  00000010  00000010  00000000  00000000

0034a920: ffffffff  00000010  00000010  00000010  00000000  00000000  ffffffff  00000010

0034a940: 00000010  00000010  00000000  00000000  ffffffff  00000010  00000010  00000010

0034a960: 00000000  00000000  ffffffff  00000010  00000010  00000010  00000000  00000000

0034a980: ffffffff  00000010  00000010  00000010  00000000  00000000  ffffffff  00000010

0034a9a0: 00000010  00000010  00000000  00000000  ffffffff  00000010  00000010  00000010

0034a9c0: 00000000  00000000  ffffffff  00000010  00000010  00000010  00000000  00000000

0034a9e0: 00000005  0034b054  0000001b  00815774  3a0e0300  490b3b0b  07000013  0b0b000f

0034aa00: 00001349  03001608  3b0b3a08  0013490b  01010900  13491301  210a0000  2f134900

0034aa20: 0b00000b  13010113  0b0b0e03  0b3b0b3a  0d0c0000  3a080300  490b3b0b  000a3813

0034aa40: 000d0d00  0b3a0e03  13490b3b  00000a38  0b000f0e  0f00000b  13010113  0b3a0b0b

0034aa60: 00000b3b  49000d10  000a3813  01131100  00000004  0b3a050b  00000001  00000000

0034aa80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034aaa0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034aac0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034aae0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  008dc2f0

0034ab00: 0034aaf8 (00000000)<008dc2ae> 0034ab50  00040006  00000000  00000000  00000000

0034ab20: 008dc2c4  008dc2c4  008dc2c4  008dc2c4  008dc2b2  008dc2c4  008dc2c4  008dc2c4

0034ab40:<008dc2ae> 008dc2c4  008dc2c4  008dc2c4  ffffffff  008159c0  06000000  00000000

0034ab60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ab80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034aba0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034abc0: 00000000  00000000  00000000  00000000  00000000  00000000  06000000  00000000

0034abe0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ac00: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ac20: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ac40: 00000000  00000000  00000000  00000000  00000000  00000000  00000002  00017ed0

0034ac60: 00000000  0034b048  008dc500  008dc508  008dc524  008dc52c <008dc534> 008dc53c

0034ac80: 008dc544  008dc554 <008dc568> 008dc570  0034af18  008dc578  008dc5dc  008dc5e4

0034aca0: 0034ad18  008dc5ec  0034ae18  00000000  00000000  00000000  00000000  00000000

0034acc0: 00000000  00000000  00000000  00000000  0034a854  0034a890  00000014  00000001

0034ace0: 00000002  0000001b  0034a854  0034a8a8  00000019  00000001  00000003  0000001b

0034ad00: 0034a854  0034a8c0  0000001a  00000001  00000004  0000001b  76696873  6d756b61

0034ad20: 00007261  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ad40: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ad60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ad80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ada0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034adc0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ade0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ae00: 00000000  00000000  00000000  00000000  00000000  00000000  76696873  6d756b61

0034ae20: 00007261  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ae40: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ae60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034ae80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034aea0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034aec0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034aee0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034af00: 00000000  00000000  00000000  00000000  00000000  00000000  69626564  00006e61

0034af20: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034af40: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034af60: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034af80: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034afa0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034afc0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034afe0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

0034b000: 00000000

Return addresses in stack:

    address : <0x00827cca> [ tlmdmip + 0x27c8a ]

    address : <0x00847f76> [ tlmdmip + 0x47f36 ]

    address : <0x0084a32a> [ tlmdmip + 0x4a2ea ]

    address : <0x0084763e> [ tlmdmip + 0x475fe ]

    address : <0x0084a22e> [ tlmdmip + 0x4a1ee ]

    address : <0x0082304a> [ tlmdmip + 0x2300a ]

    address : <0x00822190> [ tlmdmip + 0x22150 ]

    address : <0x00815a28> [ tlmdmip + 0x159e8 ]

    address : <0x00817ea2> [ tlmdmip + 0x17e62 ]

   frame  1 : <0x008dc2ae> [ tlmdmip + 0xdc2ae ]

    address : <0x008dc2ae> [ tlmdmip + 0xdc2ae ]

    address : <0x008dc534> [ tlmdmip + 0xdc534 ]

    address : <0x008dc568> [ tlmdmip + 0xdc568 ]

Trying to free already-free IRQ 9

 

could you please give some information on this?

 

uClinux-dist: svn7900 version

 

Processor: BF537-STAMP

 

Regards

 

Parimala.

QuoteReplyEditDelete

 

 

2009-04-06 08:04:38     Re: ICPLB_FAULT_ADDR-kernel dynamic memory

Mike Frysinger (UNITED STATES)

Message: 72213   

 

it happens when the address is unknown.  0x61705c0a is invalid anyways as that address doesnt exist in the memory map.  looks to me like your code is doing something wrong.

 

P2 = 0x61705c0a

     Source : <0x00827cd8> [ tlmdmip + 0x27c98 ] CALL (P2)

QuoteReplyEditDelete

 

 

2009-04-06 08:17:20     Re: ICPLB_FAULT_ADDR-kernel dynamic memory

Parimala Baggiri (INDIA)

Message: 72214   

 

Hello Mike,

 

                     Source : <0x00827cd8> [ tlmdmip + 0x27c98 ] CALL (P2) is in if conditon.

 

void (*snoop_send_hook) __P((unsigned char *p, int len)) = NULL;

 

if (snoop_send_hook)

 

{

 

snoop_send_hook(p, len);

 

}

 

No where else snoop_send_hook is used(for some reasons). I am seeing this problem after some repetitions of my test. One more thing my code has lot of malloc/frees, will it be a problem?

 

Thank you.

 

Regards

 

Parimala

 

 

 

 

QuoteReplyEditDelete

 

 

2009-04-06 08:43:06     Re: ICPLB_FAULT_ADDR-kernel dynamic memory

Mike Frysinger (UNITED STATES)

Message: 72215   

 

doing malloc/free is never a problem.  writing to memory you shouldnt will be though (buffer over/under flow, writing/reading uninitialized or freed memory, blowing the stack, etc...)

 

you might want to try building with stack checking support:

https://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:debugging_applications

 

if it still fails, try turning on the MPU in the kernel ... that'll enable memory protection on a page boundary

QuoteReplyEditDelete

 

 

2009-04-06 09:41:21     Re: ICPLB_FAULT_ADDR-kernel dynamic memory

Parimala Baggiri (INDIA)

Message: 72251   

 

Hello Mike,

 

                      When I enable the MPU option in kernel configuration, I am getting the compilation error as "arch/blackfin/kernel/cplb-mpu/cplbinit.c:31:3: error: #error the MPU will not function safely while Anomaly 05000263 applies"

 

 

 

Thank you

 

Regards

 

Parimala

QuoteReplyEditDelete

 

 

2009-04-06 09:46:57     Re: ICPLB_FAULT_ADDR-kernel dynamic memory

Mike Frysinger (UNITED STATES)

Message: 72252   

 

either you have old hardware or you didnt properly select your processor revision in the kernel menu

Attachments

    Outcomes