Bug 2862

Summary: POSIX: pthread_detach/4-3 fails on routerstation
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Kai Kang <kai.kang>
Component: meta-yoctoAssignee: Kai Kang <kai.kang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Low CC: dvhart, poky.bs.watcher, poky.watcher, zhenfeng.zhao
Version: 1.2.1   
Target Milestone: 1.2.2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 2332    
Attachments:
Description Flags
More information of curruption from glibc none

Description Kai Kang 2012-07-31 06:59:12 UTC
pthread_detach/4-3 fails on routerstation. But check other platform, it also occurs.

output:
  [17:50:59]System abilities:
  [17:50:59] TSA: 200809
  [17:50:59] TSS: 200809
  [17:50:59] TPS: 200809
  [17:50:59] pagesize: 4096
  [17:50:59] min stack size: 131072
  [17:50:59]WARNING: The TPS option is claimed to be supported but setscope fails
  [17:50:59]WARNING: The TPS option is claimed to be supported but setscope fails
  [17:50:59]WARNING: The TPS option is claimed to be supported but setscope fails
  [17:50:59]WARNING: The TPS option is claimed to be supported but setscope fails
  [17:50:59]WARNING: The TPS option is claimed to be supported but setscope fails
  [17:50:59]WARNING: The TPS option is claimed to be supported but setscope fails
  [17:50:59]WARNING: The TPS option is claimed to be supported but setscope fails
  [17:50:59]WARNING: The TPS option is claimed to be supported but setscope fails
  [17:50:59]WARNING: The TPS option is claimed to be supported but setscope fails
  [17:50:59]All 33 thread attribute objects were initialized

  Segmentation fault

This occurs after main thread call second sleep(1)
Comment 1 Kai Kang 2012-07-31 11:07:10 UTC
This case fails randomly. It is a multi-threads issue and hard to debug. I am not confident to fix it in time.
Comment 2 Kai Kang 2012-08-13 07:51:13 UTC
Created attachment 685 [details]
More information of curruption from glibc
Comment 3 Kai Kang 2012-08-14 09:05:42 UTC
Patch sent to ltp list.
Comment 4 Kai Kang 2012-09-03 02:09:54 UTC
This work is taken over by Jan Stancek <jstancek@redhat.com> on LTP mailist, he is developping a new patch for this case.
Comment 5 Kai Kang 2012-09-19 09:02:27 UTC
ltp commit 6a66e53788c76197a1e7bbff40c330f112ce31ca on Sep 19, 2012