Summary: | Valgrind dumps core on unimplemented functionality before threads are created | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Ivo Raisr <ivosh> |
Component: | general | Assignee: | Ivo Raisr <ivosh> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | ivosh, philippe.waroquiers |
Priority: | NOR | ||
Version: | 3.12 SVN | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | 15867 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
proposed patch
proposed patch v2 |
Description
Ivo Raisr
2016-04-20 18:05:24 UTC
Created attachment 98481 [details]
proposed patch
The patch consists mainly of whitespace changes due to different indentation.
If show sched status is called before the threads are implemented, then nothing will be visible. Maybe it would be better to do something like: if (VG_(threads) == NULL) { VG_(printf) ("cannot show sched status : scheduler not yet initialised\"); return; } ... here the old code ... rather than report nothing ? Created attachment 98489 [details]
proposed patch v2
Addresses Philippe's comment.
You are right, Philippe, that's very good remark. I have attached new patch. Fixed in SVN r15867. |