Bug 274784 - valgrind ls -l or any other valgrind call(even without parameters) results in Segmentation Fault
Summary: valgrind ls -l or any other valgrind call(even without parameters) results in...
Status: RESOLVED DUPLICATE of bug 267997
Alias: None
Product: valgrind
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries macOS
: NOR crash
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-02 22:05 UTC by Herbert Grasberger
Modified: 2011-06-08 01:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
./configure and make log (439.21 KB, text/plain)
2011-06-06 16:05 UTC, pbholmen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Herbert Grasberger 2011-06-02 22:05:17 UTC
Version:           unspecified
OS:                OS X

I downloaded the current 3.6.1 Release (the list only had 3.6.0, thus I left it unspecified) and followed the compiling and installation instructions as stated in the readme. I did not pass additional parameters to ./configure.
After the make install phase I tested valgrind with "ls -l" and it resulted in a segmentation fault. So does any other call to valgrind.
uname -a on my machine produces: Darwin douglasfir.cs.uvic.ca 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386
g++ --version produces:
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
valgrind -v only produces the Segmentation Fault message, nothing else.


Reproducible: Always

Steps to Reproduce:
call valgrind

Actual Results:  
Segmentation Fault


I recently upgraded to the newest Xcode Tools version (4.0.2) which might have modified the compiler or glibc. I don't know if valgrind would have run before that, since I haven't used it yet, but I thought it might be valuable information.
Comment 1 pbholmen 2011-06-06 16:05:34 UTC
Created attachment 60699 [details]
./configure and make log
Comment 2 pbholmen 2011-06-06 16:08:17 UTC
I can confirm this bug. XCode version 4.0.2 build 4A2002a, Mac OS X version 10.6.7, Intel Core i5 2.4 GHz. All calls to valgrind immediately quits with the following message "Segmentation fault".
Comment 3 Julian Seward 2011-06-06 17:31:53 UTC
This was fixed in the trunk about a month ago.

*** This bug has been marked as a duplicate of bug 267997 ***
Comment 4 pbholmen 2011-06-06 18:55:53 UTC
Thanks. Should I run the patch you proposed in bug 267997, or wait for it to 
enter a stable release?
Comment 5 Julian Seward 2011-06-08 01:01:32 UTC
Neither.  Instead just check out and build the trunk, as described at
http://www.valgrind.org/downloads/repository.html