Article [#6416] [ltp] waitpid03 test fail in ltp-full-20101031(2010)

[#6416] [ltp] waitpid03 test fail in ltp-full-20101031

Submitted By: Vivi Li

Open Date

2010-12-21 05:08:24     Close Date

2011-01-12 23:13:33

Priority:

Medium     Assignee:

Aaron Wu

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-trunk

App binary format:

N/A     

Summary: [ltp] waitpid03 test fail in ltp-full-20101031

Details:

waitpid03 test fail in ltp-full-20101031. It passed in ltp-full-20081130.

--

root:/bin> waitpid03

NULL pointer access

Deferred Exception context

CURRENT PROCESS:

COMM=waitpid03 PID=335  CPU=0

TEXT = 0x024a0040-0x024a9e20        DATA = 0x024a9e40-0x024aca88

BSS = 0x024aca88-0x024b1530  USER-STACK = 0x024b2f5c

return address: [0x024a029e]; contents of:

0x024a0270:  ba31  2007  b830  6408  60c9  ba30  0808  1823

0x024a0280:  e300  1388  b85a  0d00  9210  ba5a  17f4  0c38

0x024a0290:  186a  adba  e141  024a  e101  b48c  b832 [9110]

0x024a02a0:  e300  0780  0c80  17e7  e141  024a  6008  e101

ADSP-BF537-0.2 500(MHz CCLK) 125(MHz SCLK) (mpu off)

Linux version 2.6.36.2-ADI-2011R1-pre-svn9530 (test@uclinux59-kernel-perf) (gcc version 4.3.5 (ADI-trunk/svn-5013) ) #32 Sun Dec0

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00060027  IPEND: 0008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x27

  physical IVG3 asserted : <0xffa007d4> { _trap + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x02e42000> [ waitpid03 + 0x0 ]

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

RETS: <0x024a0284> [ waitpid03 + 0x244 ]

PC  : <0x024a029e> [ waitpid03 + 0x25e ]

DCPLB_FAULT_ADDR: <0x0000014c> /* Maybe null pointer? */

ICPLB_FAULT_ADDR: <0x024a029e> [ waitpid03 + 0x25e ]

PROCESSOR STATE:

R0 : 00000000    R1 : 024ab48c    R2 : 00000011    R3 : 00000003

R4 : 024a01fc    R5 : 024a9df8    R6 : 024b2f60    R7 : 024ab48c

P0 : 000000be    P1 : 0000001f    P2 : 0000014e    P3 : 024ac80c

P4 : 00000001    P5 : 00000000    FP : 024b2efc    SP : 02e41f24

LB0: 024a4277    LT0: 024a4276    LC0: 00000000

LB1: 024a472f    LT1: 024a4724    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000004    I0 : 024b2c90

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 024ac6c0

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 02454d90

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

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

USP : 024b2e68  ASTAT: 02000000

Hardware Trace:

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

     Source : <0xffa00768> { _exception_to_level5 + 0xa4 } CALL pcrel

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

     Source : <0xffa00578> { _bfin_return_from_exception + 0x20 } RTX

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

     Source : <0xffa0061c> { _ex_trap_c + 0x74 } JUMP.S

   3 Target : <0xffa005a8> { _ex_trap_c + 0x0 }

     Source : <0xffa00480> { _ex_workaround_261 + 0x1c } JUMP.S

   4 Target : <0xffa00464> { _ex_workaround_261 + 0x0 }

     Source : <0xffa0083c> { _trap + 0x68 } JUMP (P4)

   5 Target : <0xffa007f2> { _trap + 0x1e }

     Source : <0xffa007ee> { _trap + 0x1a } IF CC JUMP pcrel

   6 Target : <0xffa007d4> { _trap + 0x0 }

      FAULT : <0x024a029e> [ waitpid03 + 0x25e ] R0 = [P2]

     Source : <0x024a029c> [ waitpid03 + 0x25c ] W[P6 + 0] = R2

   7 Target : <0x024a0284> [ waitpid03 + 0x244 ]

     Source : <0x024a2996> [ waitpid03 + 0x2956 ] RTS

   8 Target : <0x024a2996> [ waitpid03 + 0x2956 ]

     Source : <0xffa00070> { _ret_from_fork + 0x70 } RTI

   9 Target : <0xffa00006> { _ret_from_fork + 0x6 }

     Source : <0x0000d6b0> { _schedule_tail + 0x50 } RTS

  10 Target : <0x0000d6aa> { _schedule_tail + 0x4a }

     Source : <0x0000d686> { _schedule_tail + 0x26 } IF CC JUMP pcrel

  11 Target : <0x0000d674> { _schedule_tail + 0x14 }

     Source : <0x0000d502> { _finish_task_switch + 0x4e } RTS

  12 Target : <0x0000d4f4> { _finish_task_switch + 0x40 }

     Source : <0x0000d4d8> { _finish_task_switch + 0x24 } IF CC JUMP pcrel

  13 Target : <0x0000d4b4> { _finish_task_switch + 0x0 }

     Source : <0x0000d670> { _schedule_tail + 0x10 } CALL pcrel

  14 Target : <0x0000d660> { _schedule_tail + 0x0 }

     Source : <0xffa00002> { _ret_from_fork + 0x2 } CALL pcrel

  15 Target : <0xffa00000> { _ret_from_fork + 0x0 }

     Source : <0xffa00a4a> { _resume + 0x2e } JUMP (P0)

Userspace Stack

Stack info:

SP: [0x024b2e68] <0x024b2e68> [ waitpid03 + 0x12e68 ]

Memory from 0x024b2e60 to 024b3000

024b2e60: 024ab48c  024b2f60 [00000000] 024b2f60  00000010  00000000  01000415  024b2e98

024b2e80: 024b2e98  00000000  00000011  024b2e98  024b2f1c  00000001  00000000  0000013f

024b2ea0: 00000000  00000140  00000000  00000141  00000000  00000142  00000000  00000143

024b2ec0: 00000000  00000144  00000000  00000145  00000000  00000146  00000000  00000147

024b2ee0: 00000000  00000148  00000000  00000149  00000000  0000014a  00000000  0000014b

024b2f00: 00000000  0000014c  00000000  0000014d  00000000  0000014e  00000000  00000000

024b2f20: 02412916  024a9e40  0000002f  00000ff5  00000000  02495ff0  023fc6b5  02495ff5

024b2f40: 00000000  00000000  00000000  024a9df8  024a9e0a  00000000  0244d5fc  00000001

024b2f60: 024b2f84  00000000  024b2f8e  024b2f99  024b2fc1  024b2fd5  024b2fdb <024b2fe4>

024b2f80: 00000000  74696177  30646970  45540033  6c3d4d52  78756e69  54415000  622f3d48

024b2fa0: 2f3a6e69  2f727375  3a6e6962  6962732f  752f3a6e  732f7273  3a6e6962  6e69622f

024b2fc0: 53554800  45565f48  4f495352  2e313d4e  342e3731  3fc85c00  54000102  2f3d504d

024b2fe0: 00706d74  3d445750  6e69622f  69622f00  61772f6e  69707469  00333064  00000000

Return addresses in stack:

    address : <0x024b2fe4> [ waitpid03 + 0x12fe4 ]

SEGV

root:/bin>

--

Follow-ups

--- Aaron Wu                                                 2011-01-12 23:13:33

have commit a temporary fix, by adding an exit(0) in a location that will never

be reached during run time can fix this. this bug is likely to be realted with

binary layout during compile/linking time.

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

File Name     File Type     File Size     Posted By

No Files Were Found

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.