[#4003] pthread test case sometimes fails on trunk

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

[#4003] pthread test case sometimes fails on trunk

Submitted By: Mingquan Pan

Open Date

2008-04-02 04:55:39     Close Date

2008-05-05 02:26:07

Priority:

Medium     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

N/A

Uboot version or rev.:

    Toolchain version or rev.:

08r1-8

App binary format:

N/A     

Summary: pthread test case sometimes fails on trunk

Details:

 

pthread sometimes fails on trunk now.

 

when running ./ex2 ,it would sometimes fail like following:

 

---> 5864

5866 --->

---> 5865

5867 --->

---> 5866

5868 --->

---> 5867

5869 --->

---> 5868

5870 --->

---> 5869

5871 --->

---> 5870

5872 --->

---> 5871

5873 --->

---> 5872

5874 --->

---> 5873

5875 --->

5N7U L-L>

s5s7  (-p>roi7n-t-e

1 -        o8b0a-b-l

   D>e

p5t8i o-n> -r-e

x5t        c8o5n-t-e

R5E8N T- >P

9 -        R8O8C-E-S

2- -P I8D4=

875        1-3>3

 

   ---T E8X6T

0-3-1 b8d80   -=> 507x

031-b d8c0e0-0>-507x

           8- > 58 1

D-A-T A8 3=           - > 5 8

--0-x 08361 -0>x5083

           b-c>f518c

-

-=-  08x90

15c9- 0-x>03811b-c-f

0509   -U>S08232-0-0

A5C9K  -=> E8R5--S-T

35f9e d-0  08x70-0-2

5

-99 -

r

5a0d d-r>e

05x00 0-2>4s9s2:- -[

;5 0c o-n>t8944d-a-]

           e-nt s8 0o

58                  f-:

   1

-0-x 08022

:- ->  8342-8>45b90

           1-0> 5895

  2-0 0849  -3-0 49a0  -6-4 6911  -3-2 1902

-->

   59030

        x-0>05204845c00 :-  a

                             19970- ->

                                       09980-2-

350110-  >a                                      19490-3-  329009- -

59110 0- > 09d20- -

x5010 248>4

           d907:- ->

-0-0 0905

-[-a 09d62 9322-9-0

           ] 24 c-0>

-2-   9370

->        09b4 -

05224 8-4>e

           0-:> 5909

                     0926 0-6>5

- -1 79d1e                      0>85013

             26 0-0>0

05 2  b-0>d           - >35219

8502   -e>30- > 5310

           f-f> 5914

59

---

S-E-Q U9E5N

T-A-T U9S6:C9E1R- -S

-t-a i9n7t     9       2N-o-t

--        e9d

S-E-Q S9T8A

5I3P E-N>DT9:4 00-0

0- -  S9Y0S:9 60-0-3

210-0 6    C9F7G-:-

R-C-A U9S2

E: 0x0

  EXCAUSE   : 0x27

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

RETN: <0x0020e000> /* unknown address */

RETX: <0x002484da> [ /lib/libpthread-0.9.29.so + 0x84da ]

RETS: <0x00244a16> [ /lib/libpthread-0.9.29.so + 0x4a16 ]

PC  : <0x002484da> [ /lib/libpthread-0.9.29.so + 0x84da ]

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

ICPLB_FAULT_ADDR: <0x002484da> [ /lib/libpthread-0.9.29.so + 0x84da ]

 

PROCESSOR STATE:

R0 : 00000000    R1 : 00000000    R2 : 00000001    R3 : 00000000

R4 : 002087a8    R5 : 00265448    R6 : 00000030    R7 : 00265448

P0 : 031bcf10    P1 : 031bcf10    P2 : 00000000    P3 : 00265448

P4 : 031bcf10    P5 : 00000420    FP : 037d3cf4    SP : 0020df24

LB0: 0019ef29    LT0: 0019ef26    LC0: 00000000

LB1: 0019cf7b    LT1: 0019cf7a    LC1: 00000000

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

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

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 : 037d3ce8  ASTAT: 02003025

 

Hardware Trace:

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

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

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

     Source : <0xffa0056c> { _ex_trap_c + 0x5c }

   2 Target : <0xffa00510> { _ex_trap_c + 0x0 }

     Source : <0xffa0039a> { _ex_workaround_261 + 0x22 }

   3 Target : <0xffa00378> { _ex_workaround_261 + 0x0 }

     Source : <0xffa00764> { _trap + 0x28 }

   4 Target : <0xffa0073c> { _trap + 0x0 }

     Source : <0xffa004b2> { _bfin_return_from_exception + 0xe }

   5 Target : <0xffa004a4> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa0038a> { _ex_workaround_261 + 0x12 }

   6 Target : <0xffa00378> { _ex_workaround_261 + 0x0 }

     Source : <0xffa00764> { _trap + 0x28 }

   7 Target : <0xffa0073c> { _trap + 0x0 }

     Source : <0x002484d8> [ /lib/libpthread-0.9.29.so + 0x84d8 ]

   8 Target : <0x002484d8> [ /lib/libpthread-0.9.29.so + 0x84d8 ]

     Source : <0x00248514> [ /lib/libpthread-0.9.29.so + 0x8514 ]

   9 Target : <0x00248510> [ /lib/libpthread-0.9.29.so + 0x8510 ]

     Source : <0x002484ae> [ /lib/libpthread-0.9.29.so + 0x84ae ]

  10 Target : <0x00248490> [ /lib/libpthread-0.9.29.so + 0x8490 ]

     Source : <0x00243fb2> [ /lib/libpthread-0.9.29.so + 0x3fb2 ]

  11 Target : <0x00243faa> [ /lib/libpthread-0.9.29.so + 0x3faa ]

     Source : <0x00244a12> [ /lib/libpthread-0.9.29.so + 0x4a12 ]

  12 Target : <0x002449fc> [ /lib/libpthread-0.9.29.so + 0x49fc ]

     Source : <0x002485ca> [ /lib/libpthread-0.9.29.so + 0x85ca ]

  13 Target : <0x002485c4> [ /lib/libpthread-0.9.29.so + 0x85c4 ]

     Source : <0x00248558> [ /lib/libpthread-0.9.29.so + 0x8558 ]

  14 Target : <0x00248556> [ /lib/libpthread-0.9.29.so + 0x8556 ]

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

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

     Source : <0xffa00c58> { __common_int_entry + 0xd8 }

Stack from 0020df04:

        ffa00a7a ffa006c8 0015dc0c 0015dc0c 0015dc08 0a0a0a0a 0000000a 00008400

        002484da 00000030 00002027 00000000 0020e000 002484da 002484da 00244a16

        00000000 02003025 0019cf7b 0019ef29 0019cf7a 0019ef26 00000000 00000000

        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

        00000000 00000000 00000000 00000000 037d3ce8 037d3cf4 00000420 031bcf10

 

Call Trace:

 

5939 --->

---> 5923

5940 --->

---> 5924

5941 --->

---> 5925

5942 --->

---> 5926

5943 --->

---> 5927

root:/bin>

 

Follow-ups

 

--- Mike Frysinger                                           2008-04-02 10:29:12

please post the unmnagled log from `dmesg` rather than the one from the console

 

--- Mingquan Pan                                             2008-04-03 07:22:30

Sometimes, when running ex5, it just stops in middle and exit .And the dmesg of

it is:

 

root:/bin> dmesg

Linux version 2.6.24.4-ADI-2008R2-pre-svn4533 (test@uclinux50-cf-cdrom) (gcc

version 4.1.2 (ADI svn)) #38 Thu Apr 3 01:01:55 CST 2008

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00100ea0

  rodata    = 0x00100fe0-0x0014dd44

  bss       = 0x0014dd60-0x0015b644

  data      = 0x0015b644-0x00170000

    stack   = 0x0016e000-0x00170000

  init      = 0x00170000-0x00557000

  available = 0x00557000-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Reset caused by Software reset

Blackfin support (C) 2004-2008 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

boot memmap: 0000000000557000 - 00000000037ff000 (usable)

On node 0 totalpages: 14335

  DMA zone: 111 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 14224 pages, LIFO batch:3

  Normal zone: 0 pages used for memmap

  Movable zone: 0 pages used for memmap

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14224

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Kernel managed physical pages: 14335

Memory available: 51292k/65536k RAM, (3996k init code, 1023k kernel code, 445k

data, 1024k dma, 7756k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (41 KB free)

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)

Security Framework initialized

Mount-cache hash table entries: 512

net_namespace: 64 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1,

mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Controller Driver, Version 1.0,

regs_base@ffc00500, dma channel@7

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

Setting up Blackfin MMR debugfs

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 00:46:17 UTC (2777)

Freeing unused kernel memory: 3996k freed

dma_alloc_init: dma_page @ 0x00554000 - 256 pages at 0x03f00000

NULL pointer access (probably)

Deferred Exception context

CURRENT PROCESS:

COMM=ex5 PID=144

TEXT = 0x004a0040-0x004ae680        DATA = 0x004ae684-0x004b47f4

BSS = 0x004b47f4-0x004b6ee4  USER-STACK = 0x004b7f8c

 

return address: [0x004a245a]; contents of:

0x004a2430:  3210  3048  3248  6002  2004  304a  6461  3210

0x004a2440:  a190  0902  1403  3209  3010  a0d0  4c00  0c00

0x004a2450:  17f5  0848  1021  0000  3290 [a0d2] 4c02  300b

0x004a2460:  0065  0803  17de  6000  3290  b0d0  3080  e300

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00002027  IPEND: 0030  SYSCFG: 0006

  HWERRCAUSE: 0x0

  EXCAUSE   : 0x27

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

RETN: <0x037a0000> /* unknown address */

RETX: <0x004a245a> [ ex5 + 0x241a ]

RETS: <0x004a148e> [ ex5 + 0x144e ]

PC  : <0x004a245a> [ ex5 + 0x241a ]

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

ICPLB_FAULT_ADDR: <0x004a245a> [ ex5 + 0x241a ]

 

PROCESSOR STATE:

R0 : 00000000    R1 : 7fffffff    R2 : 00000001    R3 : 00000000

R4 : 00000000    R5 : 004a0284    R6 : 00000030    R7 : 004b6d54

P0 : 004b6d54    P1 : 004b6d54    P2 : 00000000    P3 : 0000008d

P4 : 00000000    P5 : 00000420    FP : 0048bc68    SP : 0379ff24

LB0: 004a669d    LT0: 004a669a    LC0: 00000000

LB1: 004a608d    LT1: 004a608c    LC1: 00000000

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

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

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 : 0048bc5c  ASTAT: 02003025

 

Hardware Trace:

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

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

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

     Source : <0xffa0056c> { _ex_trap_c + 0x5c }

   2 Target : <0xffa00510> { _ex_trap_c + 0x0 }

     Source : <0xffa0039a> { _ex_workaround_261 + 0x22 }

   3 Target : <0xffa00378> { _ex_workaround_261 + 0x0 }

     Source : <0xffa00764> { _trap + 0x28 }

   4 Target : <0xffa0073c> { _trap + 0x0 }

     Source : <0xffa004b2> { _bfin_return_from_exception + 0xe }

   5 Target : <0xffa004a4> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa0038a> { _ex_workaround_261 + 0x12 }

   6 Target : <0xffa00378> { _ex_workaround_261 + 0x0 }

     Source : <0xffa00764> { _trap + 0x28 }

   7 Target : <0xffa0073c> { _trap + 0x0 }

     Source : <0x004a2458> [ ex5 + 0x2418 ]

   8 Target : <0x004a2458> [ ex5 + 0x2418 ]

     Source : <0x004a2494> [ ex5 + 0x2454 ]

   9 Target : <0x004a2490> [ ex5 + 0x2450 ]

     Source : <0x004a242e> [ ex5 + 0x23ee ]

  10 Target : <0x004a2410> [ ex5 + 0x23d0 ]

     Source : <0x004a148a> [ ex5 + 0x144a ]

  11 Target : <0x004a1476> [ ex5 + 0x1436 ]

     Source : <0x004a1454> [ ex5 + 0x1414 ]

  12 Target : <0x004a144e> [ ex5 + 0x140e ]

     Source : <0x004a2544> [ ex5 + 0x2504 ]

  13 Target : <0x004a253e> [ ex5 + 0x24fe ]

     Source : <0x004a24d6> [ ex5 + 0x2496 ]

  14 Target : <0x004a24d4> [ ex5 + 0x2494 ]

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

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

     Source : <0xffa00c58> { __common_int_entry + 0xd8 }

Stack from 0379ff04:

        ffa00a7a ffa006c8 0015dc2c 0015dc2c 0015dc28 00000008 00000000

00008400

        004a245a 00000030 00002027 00000000 037a0000 004a245a 004a245a

004a148e

        00000000 02003025 004a608d 004a669d 004a608c 004a669a 00000000

00000000

        00000000 00000000 00000000 00000000 00000000 00000000 00000000

00000000

        00000000 00000000 00000000 00000000 00000000 00000000 00000000

00000000

        00000000 00000000 00000000 00000000 0048bc5c 0048bc68 00000420

00000000

 

Call Trace:

 

root:/bin>

 

--- Mike Frysinger                                           2008-05-04 06:08:01

can you retest with the latest trunk please ?  there has been atomic fixes added

to the kernel which may have been causing these problems

 

--- Mingquan Pan                                             2008-05-05 02:26:05

Yes,this case passes these days on trunk.Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes