Summary: | SIGSEV when the tested application execl() applications with LD_PRELOAD | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | kimelto |
Component: | general | Assignee: | Julian Seward <jseward> |
Status: | REPORTED --- | ||
Severity: | crash | CC: | stas |
Priority: | NOR | ||
Version: | 3.6 SVN | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
kimelto
2011-04-23 21:27:23 UTC
The same problem happens on FreeBSD as well, and it seems it is cause by valgring trying to write to the data, referenced by envp, which appears to be write-protected. It happens in the mash_colon_env function when it tries to get rid of unwanted env variables. One of the solutions might be to create a copy of the env string before passing it to the mash_colon_env function, and reset the env value to a new string if the function modified it. |