[LLVMbugs] [Bug 10834] New: shared library linkage regressions under dragonegg svn
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Sep 2 06:04:00 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10834
Summary: shared library linkage regressions under dragonegg svn
Product: dragonegg
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: New Bugs
AssignedTo: baldrick at free.fr
ReportedBy: howarth at nitro.med.uc.edu
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=7194)
--> (http://llvm.org/bugs/attachment.cgi?id=7194)
linkage failure example
The dragonegg plugin on x86_64-apple-darwin11 now triggers linkage error
failures (segfaults in ld) that weren't present before a yesterday. These
appear as...
[MacPro:~/linkage_failure] howarth% /usr/bin/ld -dynamic -dylib -arch x86_64
-flat_namespace -macosx_version_min 10.7.2 -single_module -undefined suppress
-weak_reference_mismatches non-weak -undefined suppress -o libvmd.dylib
-ldylib1.10.5.o dpApi.o vmd.o vmdInter.o tclStream.o dpStream.o ssStream.o
publicVMDInter.o thread.o -lcrypto -lstdc++ -no_compact_unwind -lSystem -L.
-lgcc_ext.10.5 -lgcc -lSystem crtfastmath.o
Segmentation fault
This back traces in gdb as...
[MacPro:~/linkage_failure] howarth% gdb /usr/bin/ld
GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:50:06 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin"...Reading symbols for shared
libraries ... done
(gdb) r -dynamic -dylib -arch x86_64 -flat_namespace -macosx_version_min 10.7.2
-single_module -undefined suppress -weak_reference_mismatches non-weak
-undefined suppress -o libvmd.dylib -ldylib1.10.5.o dpApi.o vmd.o vmdInter.o
tclStream.o dpStream.o ssStream.o publicVMDInter.o thread.o -lcrypto -lstdc++
-no_compact_unwind -lSystem -L. -lgcc_ext.10.5 -lgcc -lSystem crtfastmath.o
Starting program: /usr/bin/ld -dynamic -dylib -arch x86_64 -flat_namespace
-macosx_version_min 10.7.2 -single_module -undefined suppress
-weak_reference_mismatches non-weak -undefined suppress -o libvmd.dylib
-ldylib1.10.5.o dpApi.o vmd.o vmdInter.o tclStream.o dpStream.o ssStream.o
publicVMDInter.o thread.o -lcrypto -lstdc++ -no_compact_unwind -lSystem -L.
-lgcc_ext.10.5 -lgcc -lSystem crtfastmath.o
Reading symbols for shared libraries ++......................... done
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000028
0x00000001000159b9 in mach_o::relocatable::Section<x86_64>::addRelocFixup ()
(gdb) bt
#0 0x00000001000159b9 in mach_o::relocatable::Section<x86_64>::addRelocFixup
()
#1 0x0000000100047a4c in mach_o::relocatable::Section<x86_64>::makeFixups ()
#2 0x00000001000437a3 in mach_o::relocatable::Parser<x86_64>::parse ()
#3 0x000000010001ec17 in mach_o::relocatable::Parser<x86_64>::parse ()
#4 0x000000010001809f in mach_o::relocatable::parse ()
#5 0x0000000100070ffc in ld::tool::InputFiles::makeFile ()
#6 0x00000001000726f9 in ld::tool::InputFiles::InputFiles ()
#7 0x0000000100012947 in main ()
(gdb)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list