Bug 75505

Summary: KLUDGED call to: pthread_getattr_np
Product: [Developer tools] valgrind Reporter: Johan Walles <johan.walles>
Component: generalAssignee: Julian Seward <jseward>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Johan Walles 2004-02-18 11:39:53 UTC
When running JRockit inside valgrind I get warnings about pthread_getattr_np():

==32480== valgrind's libpthread.so: KLUDGED call to: pthread_getattr_np

The stack address is used for setting up guard pagess, so if at least the stack
address was correctly filled in that would be good enough.

Thanks!
Comment 1 Johan Walles 2004-02-18 12:42:28 UTC
Probably for the same reason, pthread_attr_getstackaddr() always returns NULL.

If pthread_getattr_np() gets implemented correctly, fixing getstackaddr() is trivial as well.
Comment 2 Tom Hughes 2004-02-18 16:48:51 UTC
The patch attached to bug 69508 already implements pthread_getattr_np and a number of other calls related to thread stack attributes.

Note that if JRockit is some Java based system then you are still quite likely to have problems due to the horrible things the JVM likes to do...
Comment 3 Johan Walles 2004-02-19 08:23:21 UTC
Since bug 69508 already covers this, I'd close this as a duplicate of bug 69508 if I could.  Somebody authorized, do it for me?
Comment 4 Nicholas Nethercote 2004-02-19 10:43:30 UTC

*** This bug has been marked as a duplicate of 69508 ***