|
From: Sean M. <se...@ro...> - 2009-09-16 16:29:41
|
Hi all, I'm not seeing source file names and line numbers running memcheck on Mac OS X 10.5.8. After some investigation I determined valgrind does not deal well with spaces in path names. :( If I do: valgrind /Users/sean/Desktop/Valgrind\ Test/build/Debug/Valgrind\ Test.app It complains: --7764-- run: /usr/bin/dsymutil /Users/sean/Desktop/Valgrind Test/build/ Debug/Valgrind Test.app/Contents/MacOS/Valgrind Test error: unable to open executable '/Users/sean/Desktop/Valgrind' and then I get backtraces like: ... ==7655== by 0xD451D7: NSApplicationMain (in /System/Library/ Frameworks/AppKit.framework/Versions/C/AppKit) ==7655== by 0x1FFB: main (in /Users/sean/Desktop/ValgrindTest/build/ Debug/ValgrindTest.app/Contents/MacOS/ValgrindTest) Using --dsymutil=yes does not help. Is this a known bug? Is there a workaround (other than 'don't use spaces')? Thanks, -- ____________________________________________________________ Sean McBride, B. Eng se...@ro... Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada |
|
From: Julian S. <js...@ac...> - 2009-09-16 17:06:38
|
On Wednesday 16 September 2009, Sean McBride wrote: > Hi all, > > I'm not seeing source file names and line numbers running memcheck on > Mac OS X 10.5.8. After some investigation I determined valgrind does > not deal well with spaces in path names. :( Ah, darn .. (sinking feeling ..) Duh. Yes, please do file a bug report. > Is there a workaround (other than 'don't use spaces')? Find the place in readmacho.c, I think it is, where it cooks up the command line for dsymutil, and wrap "s around the filename it's passing. See if that helps. If yes, put the patch on the bug report too. J |
|
From: Sean M. <se...@ro...> - 2009-09-16 18:54:36
|
On 9/16/09 7:16 PM, Julian Seward said: >> I'm not seeing source file names and line numbers running memcheck on >> Mac OS X 10.5.8. After some investigation I determined valgrind does >> not deal well with spaces in path names. :( > >Ah, darn .. (sinking feeling ..) > >Duh. > >Yes, please do file a bug report. Thanks for your reply. Here ya go: <https://bugs.kde.org/show_bug.cgi?id=207613> -- ____________________________________________________________ Sean McBride, B. Eng se...@ro... Rogue Research www.rogue-research.com Mac Software Developer Montréal, Québec, Canada |