[LLVMdev] Strange crash with LLVM 3.3

Stéphane Letz letz at grame.fr
Tue Jul 30 10:56:47 PDT 2013


Hi,

We are embedding our DSL language + LLVM in a modified WebKit based Safari on OSX. Starting with LLVM 3.3 (it was working with LLVM 3.1...) we see the following crash:

Any idea?

Thanks.

Stéphane Letz

======================

Process:         SafariForWebKitDevelopment [79228]
Path:            /Applications/Safari.app/Contents/MacOS/SafariForWebKitDevelopment
Identifier:      SafariForWebKitDevelopment
Version:         7536.30.1
Code Type:       X86-64 (Native)
Parent Process:  perl5.12 [79212]
User ID:         501

Date/Time:       2013-07-30 19:16:36.081 +0200
OS Version:      Mac OS X 10.8.4 (12E55)
Report Version:  10
Sleep/Wake UUID: 76D14C5C-4635-4D22-83AD-A997908C17BB

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
/opt/local/libexec/llvm-3.3/lib/libLLVM-3.3.dylib
*** error for object 0x7fff5a075bc0: pointer being freed was not allocated
 

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	0x00007fff98ba8d46 __kill + 10
1   libsystem_c.dylib             	0x00007fff99668df0 abort + 177
2   libsystem_c.dylib             	0x00007fff9963c9b9 free + 392
3   libLLVM-3.3.dylib             	0x000000010c06fb4c _GLOBAL__I_a + 412
4   dyld                          	0x00007fff6579b378 ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) + 236
5   dyld                          	0x00007fff6579b762 ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) + 46
6   dyld                          	0x00007fff6579806e ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 380
7   dyld                          	0x00007fff65797fc4 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 210
8   dyld                          	0x00007fff65797fc4 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 210
9   dyld                          	0x00007fff65797fc4 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 210
10  dyld                          	0x00007fff65797fc4 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 210
11  dyld                          	0x00007fff65797fc4 ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&) + 210
12  dyld                          	0x00007fff65797eba ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) + 54
13  dyld                          	0x00007fff65789fc0 dyld::initializeMainExecutable() + 207
14  dyld                          	0x00007fff6578db04 dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 3060
15  dyld                          	0x00007fff65789397 dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 761
16  dyld                          	0x00007fff6578905e _dyld_start + 54

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x00007fff5a075b00  rcx: 0x00007fff5a075ae8  rdx: 0x0000000000000000
  rdi: 0x000000000001357c  rsi: 0x0000000000000006  rbp: 0x00007fff5a075b10  rsp: 0x00007fff5a075ae8
   r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x00007fff98baa342  r11: 0x0000000000000202
  r12: 0x0000000105b91000  r13: 0x0000000105b8e000  r14: 0x00007fff5a075bc0  r15: 0x0000000000000003
  rip: 0x00007fff98ba8d46  rfl: 0x0000000000000202  cr2: 0x00007fff7e8f8ff0
Logical CPU: 0

Binary Images:
       0x105b88000 -        0x105b88fff +SafariForWebKitDevelopment (7536.30.1) <7E1AB8E9-8D8B-3A43-8E63-7C92529C507F> /Applications/Safari.app/Contents/MacOS/SafariForWebKitDevelopment
       0x105b93000 -        0x105f72ff7  com.apple.JavaScriptCore (538+ - 538.1+) <1AF4B0D6-B929-34DB-8B30-C1F87E220A48> /Documents/*/JavaScriptCore.framework/Versions/A/JavaScriptCore
       0x10616e000 -        0x1062d8ff7  com.apple.WebKit (538+ - 538.1+) <E7111ECC-9BE5-3F80-98A2-CCB4E80F941E> /Documents/*/WebKit.framework/Versions/A/WebKit
       0x106476000 -        0x1066e9ff7  com.apple.WebKit2 (538+ - 538.1+) <83A89E5D-B5D7-3EA7-8A19-94108C65C448> /Documents/*/WebKit2.framework/Versions/A/WebKit2
       0x106af3000 -        0x107bc4ff7  com.apple.WebCore (538+ - 538.1+) <0CAD83F7-1E5C-369F-9DAF-353E72211959> /Documents/*/WebCore.framework/Versions/A/WebCore
       0x108fa2000 -        0x108fbaff7 +libHTTPDFaust.dylib (0) <5AF1DB20-7ACE-3C22-8377-C70FEEC70C9C> /usr/local/lib/faust/libHTTPDFaust.dylib
       0x109013000 -        0x1091edff7 +libfaust.dylib (0) <1342D1BF-DF91-3A51-82B4-8046BB854AA8> /usr/local/lib/faust/libfaust.dylib
       0x10a1a7000 -        0x10b0eef27 +libLLVM-3.1.dylib (0) <E2B98305-0415-3DB8-A45A-B1F30D19348F> /opt/local/libexec/*/libLLVM-3.1.dylib
       0x10b81b000 -        0x10b8f0ff7 +libsqlite3.0.dylib (0) <AF0A01E8-7815-3A28-AFE6-BDF28505EAD8> /opt/local/lib/libsqlite3.0.dylib
       0x10b90a000 -        0x10ba44fff +libxml2.2.dylib (0) <272F9E53-982A-3384-AC78-CAA70AC73803> /opt/local/lib/libxml2.2.dylib
       0x10ba7a000 -        0x10ba8bff7 +libz.1.dylib (0) <CD321706-5DE7-31C3-BD7C-1CDC4A9D458C> /opt/local/lib/libz.1.dylib
       0x10ba91000 -        0x10ba9fff7 +libmicrohttpd.10.dylib (0) <9217AF23-0AFE-39A8-8105-8F12621E60BF> /opt/local/lib/libmicrohttpd.10.dylib
       0x10baa8000 -        0x10bb82fef +libgnutls.28.dylib (0) <A86085B8-3994-3F69-A0B8-2014C16C01A4> /opt/local/lib/libgnutls.28.dylib
       0x10bbb0000 -        0x10bc21fff +libgcrypt.11.dylib (0) <DE1FDEB0-B8C6-3EB2-B64D-0D9738678385> /opt/local/lib/libgcrypt.11.dylib
       0x10bc39000 -        0x10bc3bff7 +libgpg-error.0.dylib (0) <29ABCAE4-FA5B-390F-911D-DDF823866B30> /opt/local/lib/libgpg-error.0.dylib
       0x10bc3e000 -        0x10bc46ff7 +libintl.8.dylib (0) <EE94CE74-488A-39AC-BF31-54ADEF75A33B> /opt/local/lib/libintl.8.dylib
       0x10bc52000 -        0x10bd4aff7 +libiconv.2.dylib (0) <1914316E-52FA-3DC3-9CE7-6D2D71CFD4DB> /opt/local/lib/libiconv.2.dylib
       0x10bd59000 -        0x10bd7ffff +libnettle.4.dylib (0) <ED27D91C-ABEB-381B-8AA4-18004724BD4F> /opt/local/lib/libnettle.4.dylib
  



More information about the llvm-dev mailing list