I'm trying to use valgrind on os x to find memory leaks in a Qt 4.6.2 gui application. And i can't seem to get passed this: vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xA I used this set of instructions to patch valgrind in order to run it on 10.6 http://stackoverflow.com/questions/2285964/how-can-i-compile-valgrind-on-snow-leopard ==== from my qt project file(if this has any relevance) QT += network \ sql QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5 QMAKE_MAC_SDK = /Developer/SDKs/MacOSX10.5.sdk CONFIG += x86 \ PPC LIBS += -lcrypto LIBS += /System/Library/Frameworks/Carbon.framework/Carbon ==== bin:: uname -a Darwin kimbs.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386 ==== bin:: ./valgrind --version valgrind-3.6.0.SVN ==== test.sup... { First Memcheck:Cond fun:GetVariationInfoFromName fun:_ZL22FindBestFamilyInstanceP23privateFontObjectRecordPsS1_Pt fun:FOGetFontFamilyInstanceFromFont fun:FMGetFontFamilyInstanceFromFont fun:_Z12initializeDbv fun:_ZN13QFontDatabase4loadEPK12QFontPrivatei fun:_ZNK12QFontPrivate15engineForScriptEi fun:_ZNK11QTextEngine10fontEngineERK11QScriptItemP6QFixedS4_S4_ fun:_ZNK11QTextEngine12shapeTextMacEi fun:_ZNK11QTextEngine9shapeTextEi fun:_ZNK11QTextEngine5shapeEi fun:_ZN11QTextEngine9shapeLineERK11QScriptLine } { Second Memcheck:Cond fun:GetVariationInfoFromName fun:_ZL22FindBestFamilyInstanceP23privateFontObjectRecordPsS1_Pt fun:FOGetFontFamilyInstanceFromFont fun:FMGetFontFamilyInstanceFromFont fun:_Z12initializeDbv fun:_ZN13QFontDatabase4loadEPK12QFontPrivatei fun:_ZNK12QFontPrivate15engineForScriptEi fun:_ZNK11QTextEngine10fontEngineERK11QScriptItemP6QFixedS4_S4_ fun:_ZNK11QTextEngine12shapeTextMacEi fun:_ZNK11QTextEngine9shapeTextEi fun:_ZNK11QTextEngine5shapeEi fun:_ZN11QTextEngine9shapeLineERK11QScriptLine } ==== bin:: ./valgrind -v --suppressions=/Users/kimmeh/Documents/workspace/valgrind/suppresses/test.supp --tool=memcheck --dsymutil=yes /Users/kimmeh/Documents/workspace/whichever/trunk/target/dist/WhatEver.app/Contents/MacOS/WhatEver ==76511== Memcheck, a memory error detector ==76511== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==76511== Using Valgrind-3.6.0.SVN and LibVEX; rerun with -h for copyright info ==76511== Command: /Users/kimmeh/Documents/workspace/whichever/trunk/target/dist/WhatEver.app/Contents/MacOS/WhatEver ==76511== --76511-- Valgrind options: --76511-- -v --76511-- --suppressions=/Users/kimmeh/Documents/workspace/valgrind/suppresses/test.supp --76511-- --tool=memcheck --76511-- --dsymutil=yes --76511-- Contents of /proc/version: --76511-- can't open /proc/version --76511-- Arch and hwcaps: X86, x86-sse1-sse2 --76511-- Page sizes: currently 4096, max supported 4096 --76511-- Valgrind library directory: /Users/kimmeh/Documents/workspace/valgrind/bin//lib/valgrind --76511-- /Users/kimmeh/Documents/workspace/whichever/trunk/target/dist/WhatEver.app/Contents/MacOS/WhatEver (0x1000) --76511-- reading syms from primary file (4224 17259) --76511-- dSYM= /Users/kimmeh/Documents/workspace/whichever/trunk/target/dist/WhatEver.app/Contents/MacOS/WhatEver.dSYM/Contents/Resources/DWARF/WhatEver --76511-- reading dwarf3 from dsyms file --76511-- /usr/lib/dyld (0x8fe00000) --76511-- reading syms from primary file (6 1259) --76511-- Reading suppressions file: /Users/kimmeh/Documents/workspace/valgrind/suppresses/test.supp --76511-- Reading suppressions file: /Users/kimmeh/Documents/workspace/valgrind/bin//lib/valgrind/default.supp --76511-- REDIR: 0x8fe2dac0 (strlen) redirected to 0xf00c206c (???) --76511-- REDIR: 0x8fe2db10 (strcpy) redirected to 0xf00c20bf (???) --76511-- REDIR: 0x8fe2dbd0 (strcmp) redirected to 0xf00c209f (???) --76511-- REDIR: 0x8fe2dc89 (strcat) redirected to 0xf00c207d (???) --76511-- /Users/kimmeh/Documents/workspace/valgrind/bin/lib/valgrind/vgpreload_core-x86-darwin.so (0x3c7000) --76511-- reading syms from primary file (3 634) --76511-- dSYM= /Users/kimmeh/Documents/workspace/valgrind/bin/lib/valgrind/vgpreload_core-x86-darwin.so.dSYM/Contents/Resources/DWARF/vgpreload_core-x86-darwin.so --76511-- reading dwarf3 from dsyms file --76511-- /Users/kimmeh/Documents/workspace/valgrind/bin/lib/valgrind/vgpreload_memcheck-x86-darwin.so (0x3d0000) --76511-- reading syms from primary file (111 1095) --76511-- dSYM= /Users/kimmeh/Documents/workspace/valgrind/bin/lib/valgrind/vgpreload_memcheck-x86-darwin.so.dSYM/Contents/Resources/DWARF/vgpreload_memcheck-x86-darwin.so --76511-- reading dwarf3 from dsyms file ==76511== WARNING: new redirection conflicts with existing -- ignoring it --76511-- new: 0x8fe286c0 (strlcat ) R-> 0x003d5000 strlcat ==76511== WARNING: new redirection conflicts with existing -- ignoring it --76511-- new: 0x8fe2db10 (strcpy ) R-> 0x003d4e60 strcpy --76511-- REDIR: 0x8fe2dfd4 (memset) redirected to 0x3d3db0 (memset) --76511-- /usr/lib/libcrypto.0.9.7.dylib (0x3e3000) --76511-- reading syms from primary file (2711 1502) --76511-- REDIR: 0x8fe2d9d0 (strncpy) redirected to 0x3d4c20 (strncpy) --76511-- REDIR: 0x8fe2c757 (strrchr) redirected to 0x3d3790 (strrchr) --76511-- /Library/Frameworks/QtSql.framework/Versions/4/QtSql (0x4e1000) --76511-- reading syms from primary file (462 306) --76511-- /Library/Frameworks/QtGui.framework/Versions/4/QtGui (0x525000) --76511-- reading syms from primary file (12996 14016) --76511-- /Library/Frameworks/QtNetwork.framework/Versions/4/QtNetwork (0x10e7000) --76511-- reading syms from primary file (1016 2218) --76511-- /Library/Frameworks/QtCore.framework/Versions/4/QtCore (0x1231000) --76511-- reading syms from primary file (3852 3333) --76511-- /usr/lib/libstdc++.6.0.9.dylib (0x14e4000) --76511-- reading syms from primary file (3306 371) --76511-- /usr/lib/libSystem.B.dylib (0x15a9000) --76511-- reading syms from primary file (4698 3824) --76511-- /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (0x17d6000) --76511-- reading syms from primary file (2034 3535) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound (0x1a4d000) --76511-- reading syms from primary file (115 116) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels (0x1a5f000) --76511-- reading syms from primary file (68 62) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help (0x1a6d000) --76511-- reading syms from primary file (28 4) --76511-- REDIR: 0x8fe2e130 (memcpy) redirected to 0x3d4740 (memcpy) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox (0x1a75000) --76511-- reading syms from primary file (2860 14392) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering (0x1ed9000) --76511-- reading syms from primary file (77 1910) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture (0x1f5f000) --76511-- reading syms from primary file (438 486) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink (0x1f8a000) --76511-- reading syms from primary file (353 1734) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices (0x2062000) --76511-- reading syms from primary file (56 1481) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting (0x20ce000) --76511-- reading syms from primary file (124 311) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print (0x64b00000) --76511-- reading syms from primary file (68 69) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI (0x20fa000) --76511-- reading syms from primary file (45 37) --76511-- /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition (0x2101000) --76511-- reading syms from primary file (113 106) --76511-- /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio (0x211c000) --76511-- reading syms from primary file (56 2190) --76511-- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore (0x21c8000) --76511-- reading syms from primary file (2519 4061) --76511-- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork (0x255c000) --76511-- reading syms from primary file (617 3997) --76511-- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata (0x2669000) --76511-- reading syms from primary file (467 851) --76511-- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices (0x26d4000) --76511-- reading syms from primary file (830 4020) --76511-- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit (0x27fd000) --76511-- reading syms from primary file (316 3025) --76511-- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE (0x28b1000) --76511-- reading syms from primary file (182 866) --76511-- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices (0x28fc000) --76511-- reading syms from primary file (704 1837) --76511-- /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices (0x29d8000) --76511-- reading syms from primary file (93 727) --76511-- /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (0x2a15000) --76511-- reading syms from primary file (968 386) --76511-- /usr/lib/libicucore.A.dylib (0x2a8f000) --76511-- reading syms from primary file (3643 1) --76511-- /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (0x2c73000) --76511-- reading syms from primary file (135 159) --76511-- /usr/lib/libbsm.0.dylib (0x2c86000) --76511-- reading syms from primary file (151 181) --76511-- /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS (0x2ca3000) --76511-- reading syms from primary file (97 105) --76511-- /usr/lib/libobjc.A.dylib (0x2cb9000) --76511-- reading syms from primary file (262 662) --76511-- /usr/lib/libz.1.2.3.dylib (0x2d7a000) --76511-- reading syms from primary file (58 1) --76511-- /usr/lib/system/libkxld.dylib (0x2d8d000) --76511-- reading syms from primary file (4 1) --76511-- /usr/lib/libauto.dylib (0x2d9d000) --76511-- reading syms from primary file (58 407) --76511-- /System/Library/Frameworks/Security.framework/Versions/A/Security (0x2df0000) --76511-- reading syms from primary file (1524 10284) --76511-- /usr/lib/libsqlite3.dylib (0x312d000) --76511-- reading syms from primary file (169 585) --76511-- /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration (0x31f4000) --76511-- reading syms from primary file (673 457) --76511-- /usr/lib/libxslt.1.dylib (0x324e000) --76511-- reading syms from primary file (240 1) --76511-- /usr/lib/libxml2.2.dylib (0x3281000) --76511-- reading syms from primary file (1715 1) --76511-- /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (0x33a6000) --76511-- reading syms from primary file (1391 9877) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (0x3725000) --76511-- reading syms from primary file (3406 10492) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO (0x3fdc000) --76511-- reading syms from primary file (393 4609) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText (0x41f2000) --76511-- reading syms from primary file (344 2197) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS (0x428b000) --76511-- reading syms from primary file (459 1438) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync (0x434d000) --76511-- reading syms from primary file (357 2452) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices (0x4434000) --76511-- reading syms from primary file (489 1127) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis (0x44af000) --76511-- reading syms from primary file (99 306) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore (0xfa100000) --76511-- reading syms from primary file (800 1331) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD (0x44cd000) --76511-- reading syms from primary file (1048 1403) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis (0x45a2000) --76511-- reading syms from primary file (138 150) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib (0x45c7000) --76511-- reading syms from primary file (25 620) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib (0x461b000) --76511-- reading syms from primary file (36 28) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib (0x4624000) --76511-- reading syms from primary file (35 345) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib (0x4646000) --76511-- reading syms from primary file (4 16) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib (0x464c000) --76511-- reading syms from primary file (105 228) --76511-- /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage (0x4677000) --76511-- reading syms from primary file (210 633) --76511-- /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib (0x4765000) --76511-- reading syms from primary file (520 1) --76511-- /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib (0x47b0000) --76511-- reading syms from primary file (497 1) --76511-- /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib (0x4828000) --76511-- reading syms from primary file (913 6218) --76511-- /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib (0x4c80000) --76511-- reading syms from primary file (5348 759) --76511-- /usr/lib/libcrypto.0.9.8.dylib (0x523b000) --76511-- reading syms from primary file (3327 1328) --76511-- /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent (0x537f000) --76511-- reading syms from primary file (17 3) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib (0x5384000) --76511-- reading syms from primary file (504 2138) --76511-- /usr/lib/libcups.2.dylib (0x54ca000) --76511-- reading syms from primary file (356 1) --76511-- /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos (0x20000000) --76511-- reading syms from primary file (923 1) --76511-- /usr/lib/libresolv.9.dylib (0x550c000) --76511-- reading syms from primary file (198 94) --76511-- /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI (0x5536000) --76511-- reading syms from primary file (732 456) --76511-- /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (0x5599000) --76511-- reading syms from primary file (1246 9089) --76511-- /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv (0x59cf000) --76511-- reading syms from primary file (410 3045) --76511-- /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (0x5af5000) --76511-- reading syms from primary file (315 5324) --76511-- /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls (0x5c87000) --76511-- reading syms from primary file (173 710) --76511-- /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport (0x5cee000) --76511-- reading syms from primary file (404 31) --76511-- /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (0x5d0d000) --76511-- reading syms from primary file (265 592) --76511-- /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (0x5d42000) --76511-- reading syms from primary file (76 1) --76511-- /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib (0x5d58000) --76511-- reading syms from primary file (17 177) --76511-- /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL (0x5d91000) --76511-- reading syms from primary file (79 187) --76511-- /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface (0x5dbb000) --76511-- reading syms from primary file (215 41) --76511-- /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib (0x5dc7000) --76511-- reading syms from primary file (74 733) --76511-- /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib (0x5e18000) --76511-- reading syms from primary file (1003 2) --76511-- /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib (0x5e32000) --76511-- reading syms from primary file (157 1382) --76511-- /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib (0x5f5d000) --76511-- reading syms from primary file (27 24) --76511-- /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib (0x5f65000) --76511-- reading syms from primary file (51 18) --76511-- /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit (0x5f6e000) --76511-- reading syms from primary file (45 3) --76511-- /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation (0x5f77000) --76511-- reading syms from primary file (60 2104) --76511-- /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory (0x6030000) --76511-- reading syms from primary file (10 135) --76511-- /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory (0x603d000) --76511-- reading syms from primary file (387 143) --76511-- /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordServer (0x6066000) --76511-- reading syms from primary file (652 301) --76511-- /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService (0x60cf000) --76511-- reading syms from primary file (107 199) --76511-- /usr/lib/libsasl2.2.dylib (0x60fb000) --76511-- reading syms from primary file (109 93) --76511-- /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (0x6112000) --76511-- reading syms from primary file (4258 34315) --76511-- /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData (0x6e8a000) --76511-- reading syms from primary file (92 3684) --76511-- /usr/lib/liblangid.dylib (0x701c000) --76511-- reading syms from primary file (20 6) --76511-- REDIR: 0x8fe2b360 (strlcpy) redirected to 0x3d49e0 (strlcpy) --76511-- REDIR: 0x15aba0c (memcpy) redirected to 0x3d4890 (memcpy) --76511-- REDIR: 0x15aa440 (memset) redirected to 0x3d3d50 (memset) --76511-- REDIR: 0x15abeca (__memcpy_chk) redirected to 0x3d4250 (__memcpy_chk) --76511-- REDIR: 0x15ac446 (malloc) redirected to 0x3d25e3 (malloc) --76511-- REDIR: 0x15b01e1 (calloc) redirected to 0x3d1541 (calloc) --76511-- REDIR: 0x15ad4a0 (strlen) redirected to 0x3d3a00 (strlen) --76511-- REDIR: 0x15acaf0 (strncmp) redirected to 0x3d3a20 (strncmp) --76511-- REDIR: 0x15b0807 (malloc_default_zone) redirected to 0x3d0fd8 (malloc_default_zone) --76511-- REDIR: 0x15ae357 (malloc_zone_malloc) redirected to 0x3d252c (malloc_zone_malloc) --76511-- REDIR: 0x8fe2e128 (memmove) redirected to 0x3d3e70 (memmove) --76511-- REDIR: 0x15b0233 (malloc_zone_calloc) redirected to 0x3d1477 (malloc_zone_calloc) --76511-- REDIR: 0x8fe2dc6b (strchr) redirected to 0x3d3850 (strchr) --76511-- REDIR: 0x15b0bf0 (bcmp) redirected to 0x3d3c30 (bcmp) --76511-- REDIR: 0x15ad6d0 (strcmp) redirected to 0x3d3b00 (strcmp) --76511-- REDIR: 0x15b0cb4 (free) redirected to 0x3d1ea6 (free) --76511-- REDIR: 0x15b2078 (bcopy) redirected to 0x3d3ed0 (bcopy) --76511-- REDIR: 0x15b207f (malloc_zone_from_ptr) redirected to 0x3d0fc7 (malloc_zone_from_ptr) --76511-- REDIR: 0x15b30c2 (realloc) redirected to 0x3d279a (realloc) --76511-- REDIR: 0x15b431f (malloc_zone_free) redirected to 0x3d1e10 (malloc_zone_free) --76511-- REDIR: 0x15b26f0 (malloc_zone_realloc) redirected to 0x3d2693 (malloc_zone_realloc) --76511-- REDIR: 0x15b4664 (memmove) redirected to 0x3d3e10 (memmove) --76511-- REDIR: 0x15ad6a6 (strrchr) redirected to 0x3d3730 (strrchr) --76511-- REDIR: 0x15ad76b (arc4random) redirected to 0x3c76c8 (arc4random) --76511-- REDIR: 0x15af820 (strcpy) redirected to 0x3d4f30 (strcpy) --76511-- REDIR: 0x15b5886 (__memmove_chk) redirected to 0x3d40f0 (__memmove_chk) --76511-- REDIR: 0x152e5f3 (operator new(unsigned long)) redirected to 0x3d306b (operator new(unsigned long)) --76511-- REDIR: 0x15c1e80 (strlcpy) redirected to 0x3d4b00 (strlcpy) --76511-- REDIR: 0x152e6f2 (operator new[](unsigned long)) redirected to 0x3d2b07 (operator new[](unsigned long)) --76511-- REDIR: 0x15d3f3f (strcat) redirected to 0x3d4170 (strcat) --76511-- REDIR: 0x15b629b (strchr) redirected to 0x3d37f0 (strchr) --76511-- REDIR: 0x152d2b7 (operator delete(void*)) redirected to 0x3d1b45 (operator delete(void*)) --76511-- /usr/lib/libiconv.2.dylib (0x7435000) --76511-- reading syms from primary file (22 1061) --76511-- REDIR: 0x152d2db (operator delete[](void*)) redirected to 0x3d17eb (operator delete[](void*)) --76511-- REDIR: 0x15db9e0 (__strcpy_chk) redirected to 0x3d4090 (__strcpy_chk) --76511-- REDIR: 0x15bc000 (strncpy) redirected to 0x3d4d40 (strncpy) --76511-- REDIR: 0x15d5145 (memchr) redirected to 0x3d3b50 (memchr) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib (0x18307000) --76511-- reading syms from primary file (3 298) --76511-- REDIR: 0x16061f8 (malloc_zone_memalign) redirected to 0x3d1284 (malloc_zone_memalign) --76511-- REDIR: 0x15d8ed0 (strlcat) redirected to 0x3d5140 (strlcat) --76511-- REDIR: 0x16033ab (valloc) redirected to 0x3d36f1 (valloc) --76511-- REDIR: 0x15d8d8b (malloc_size) redirected to 0x3d1114 (malloc_size) --76511-- REDIR: 0x152e683 (operator new(unsigned long, std::nothrow_t const&)) redirected to 0x3d2325 (operator new(unsigned long, std::nothrow_t const&)) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/Resources/ColorSyncDeprecated.dylib (0x1831c000) --76511-- reading syms from primary file (196 2655) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib (0x1842c000) --76511-- reading syms from primary file (4 342) --76511-- memcheck GC: 1024 nodes, 1024 survivors (100.0%) --76511-- memcheck GC: increase table size to 2048 --76511-- /System/Library/CoreServices/Encodings/libJapaneseConverter.dylib (0xba900000) --76511-- reading syms from primary file (1 47) --76511-- /System/Library/CoreServices/Encodings/libTraditionalChineseConverter.dylib (0x1aadc000) --76511-- reading syms from primary file (1 19) --76511-- /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib (0x1aaf2000) --76511-- reading syms from primary file (1 25) --76511-- memcheck GC: 2048 nodes, 2048 survivors (100.0%) --76511-- memcheck GC: increase table size to 4096 --76511-- /System/Library/CoreServices/Encodings/libKoreanConverter.dylib (0xbab00000) --76511-- reading syms from primary file (1 39) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib (0x1ab04000) --76511-- reading syms from primary file (1 104) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib (0x1ac15000) --76511-- reading syms from primary file (108 789) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib (0x1afc7000) --76511-- reading syms from primary file (11 474) --76511-- /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libType1Scaler.dylib (0x1f458000) --76511-- reading syms from primary file (4 2768) vex x86->IR: unhandled instruction bytes: 0x66 0xF 0x3A 0xA ==76511== valgrind: Unrecognised instruction at address 0x1602452. ==76511== Your program just tried to execute an instruction that Valgrind ==76511== did not recognise. There are two possible reasons for this. ==76511== 1. Your program has a bug and erroneously jumped to a non-code ==76511== location. If you are running Memcheck and you just saw a ==76511== warning about a bad jump, it's probably your program's fault. ==76511== 2. The instruction is legitimate but Valgrind doesn't handle it, ==76511== i.e. it's Valgrind's fault. If you think this is the case or ==76511== you are not sure, please let us know and we'll try to fix it. ==76511== Either way, Valgrind will now raise a SIGILL signal which will ==76511== probably kill your program. ==76511== ==76511== Process terminating with default action of signal 4 (SIGILL) ==76511== Illegal opcode at address 0x1602452 ==76511== at 0x1602452: floorf$fenv_access_off (in /usr/lib/libSystem.B.dylib) ==76511== by 0x1AB05B8E: get_font_info (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib) ==76511== by 0x373E497: get_font_info (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics) ==76511== by 0x373E44F: CGFontGetUnitsPerEm (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics) ==76511== by 0x38C558E: CGFontCreateGlyphBitmap32 (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics) ==76511== by 0x379EE58: create_missing_bitmaps (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics) ==76511== by 0x3757BB6: CGGlyphLockLockGlyphBitmaps (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics) ==76511== by 0x1843551A: ripc_RenderGlyphs (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib) ==76511== by 0x18434F5E: ripc_DrawGlyphs (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib) ==76511== by 0x3755D61: draw_glyphs (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics) ==76511== by 0x37556B6: CGContextShowGlyphsWithAdvances (in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics) ==76511== by 0x55E294: QFontEngineMac::imageForGlyph(unsigned int, int, bool) (in /Library/Frameworks/QtGui.framework/Versions/4/QtGui) ==76511== ==76511== HEAP SUMMARY: ==76511== in use at exit: 918,738 bytes in 6,979 blocks ==76511== total heap usage: 17,307 allocs, 10,328 frees, 3,069,200 bytes allocated ==76511== ==76511== Searching for pointers to 6,979 not-freed blocks ==76511== Checked 317,808,944 bytes ==76511== ==76511== LEAK SUMMARY: ==76511== definitely lost: 0 bytes in 0 blocks ==76511== indirectly lost: 0 bytes in 0 blocks ==76511== possibly lost: 234,802 bytes in 3,980 blocks ==76511== still reachable: 683,936 bytes in 2,999 blocks ==76511== suppressed: 0 bytes in 0 blocks ==76511== Rerun with --leak-check=full to see details of leaked memory ==76511== ==76511== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 3 from 2) --76511-- --76511-- used_suppression: 3 Second ==76511== ==76511== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 3 from 2) Killed
Created attachment 43307 [details] somehow the dump included seemed to be cut off, so here is the file
It's an SSE 4.1 instruction that unfortunately we haven't implemented yet. ROUNDSS - Round Scalar Single Precision Floating-Point Values 66 0F 3A 0A /r ib For the moment, can you restrict yourself to the SSSE3 instruction set (older Core 2s) or before? Maybe not, since this appears to have happened in a system library: ==76511== Process terminating with default action of signal 4 (SIGILL) ==76511== Illegal opcode at address 0x1602452 ==76511== at 0x1602452: floorf$fenv_access_off (in /usr/lib/libSystem.B.dylib) but then wouldn't that imply a bug in the system library? Valgrind identifies itself via the CPUID instruction as not supporting SSE4.1/SSE4.2 (yet) and correct library code should check that rather than merely assume the CPU can handle SSE4. Or maybe such niceties don't apply on MacOS ? Anyway, for sure you can avoid this problem in the meantime by using an old Mac which doesn't support SSE4.
Will fix first for 64-bit applications (yours was a 32-bit app) since the initial SSE4 support in Valgrind is being done for 64-bit apps. btw, MacOSX 10.6 support has improved; see http://bugs.kde.org/show_bug.cgi?id=205241#c64 for details.
Fixed, but only for 64-bit code right now. vex r1986.
Fixed also for 32-bit code now. (vex r1987). *** This bug has been marked as a duplicate of bug 241377 ***
This fix works for me, running 10.6 on a 64-bit processor, with a 32-bit program.