Recent rtti bugfix causes segfault when importing dolfin-adjoint
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
Undecided
|
Unassigned | ||
dolfin-adjoint |
Fix Released
|
Undecided
|
Unassigned | ||
libadjoint |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Running just:
import dolfin
import dolfin_adjoint
gives
[martinal-
[martinal-
[martinal-
[martinal-
[martinal-
[martinal-
[martinal-
Segmentation fault (core dumped)
as seen on the buildbot for dolfin-adjoint after dolfin revision -r7180 (-r7158.2.22 in current dolfin trunk) with message
"""Add RTLD_GLOBAL to python ld loader. This will make all types available
for all other dynamically loaded modules. This should fix problems with
dynamic_cast encountered with templated dolfin types.
-- Is this also a problem on other platforms than linux?"""
Related branches
Changed in dolfin: | |
status: | Fix Committed → Fix Released |
Changed in dolfin-adjoint: | |
status: | Fix Committed → Fix Released |
Changed in libadjoint: | |
status: | Fix Committed → Fix Released |
Of course, if I revert the RTLD fix, plotting now crashes on my newly installed ubuntu 12.10... Showing stacktrace below, is this the same issue that the buildbots had before the RTLD fix?
(gdb) where sysdeps/ unix/sysv/ linux/raise. c:64 :__verbose_ terminate_ handler( ) () from /usr/lib/ x86_64- linux-gnu/ libstdc+ +.so.6 x86_64- linux-gnu/ libstdc+ +.so.6 x86_64- linux-gnu/ libstdc+ +.so.6 x86_64- linux-gnu/ libstdc+ +.so.6 locator: :DeallocateSlab s(llvm: :MemSlab* ) () from /usr/lib/ x86_64- linux-gnu/ libLLVM- 3.1.so. 1 endenceAnalysis ::~MemoryDepend enceAnalysis( ) () from /usr/lib/ x86_64- linux-gnu/ libLLVM- 3.1.so. 1 endenceAnalysis ::~MemoryDepend enceAnalysis( ) () from /usr/lib/ x86_64- linux-gnu/ libLLVM- 3.1.so. 1 ager::~ PMDataManager( ) () from /usr/lib/ x86_64- linux-gnu/ libLLVM- 3.1.so. 1 x86_64- linux-gnu/ libLLVM- 3.1.so. 1 lManager: :~PMTopLevelMan ager() () from /usr/lib/ x86_64- linux-gnu/ libLLVM- 3.1.so. 1 x86_64- linux-gnu/ libLLVM- 3.1.so. 1 assManager: :~FunctionPassM anager( ) () from /usr/lib/ x86_64- linux-gnu/ libLLVM- 3.1.so. 1 assManager: :~FunctionPassM anager( ) () from /usr/lib/ x86_64- linux-gnu/ libLLVM- 3.1.so. 1 x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ dri/r600_ dri.so x86_64- linux-gnu/ mesa/libGL. so.1 eadSGI () from /usr/lib/ x86_64- linux-gnu/ mesa/libGL. so.1
#0 0x00007ffff6f1a425 in __GI_raise (sig=<optimized out>) at ../nptl/
#1 0x00007ffff6f1db8b in __GI_abort () at abort.c:91
#2 0x00007ffff189ee2d in __gnu_cxx:
#3 0x00007ffff189cf26 in ?? () from /usr/lib/
#4 0x00007ffff189cf53 in std::terminate() () from /usr/lib/
#5 0x00007ffff189da6f in __cxa_pure_virtual () from /usr/lib/
#6 0x00007fffb370a49e in llvm::BumpPtrAl
#7 0x00007fffb2f2a2ea in llvm::MemoryDep
#8 0x00007fffb2f2a4c9 in llvm::MemoryDep
#9 0x00007fffb326b7a6 in llvm::PMDataMan
#10 0x00007fffb3270fc5 in ?? () from /usr/lib/
#11 0x00007fffb32680ce in llvm::PMTopLeve
#12 0x00007fffb3271096 in ?? () from /usr/lib/
#13 0x00007fffb3267e71 in llvm::FunctionP
#14 0x00007fffb3267ec9 in llvm::FunctionP
#15 0x00007fffc13ef035 in ?? () from /usr/lib/
#16 0x00007fffc13ef3b9 in ?? () from /usr/lib/
#17 0x00007fffc13d218f in ?? () from /usr/lib/
#18 0x00007fffc13d25ac in ?? () from /usr/lib/
#19 0x00007fffc1265ef0 in ?? () from /usr/lib/
#20 0x00007fffc1266d7a in ?? () from /usr/lib/
#21 0x00007fffc132bf05 in ?? () from /usr/lib/
#22 0x00007fffc126d73e in ?? () from /usr/lib/
#23 0x00007fffc126e9b1 in ?? () from /usr/lib/
#24 0x00007fffc126ea5b in ?? () from /usr/lib/
#25 0x00007fffc126d8bb in ?? () from /usr/lib/
#26 0x00007fffc11c67da in ?? () from /usr/lib/
#27 0x00007fffc1263e22 in ?? () from /usr/lib/
#28 0x00007fffc11af9ea in ?? () from /usr/lib/
#29 0x00007fffc117d903 in ?? () from /usr/lib/
#30 0x00007fffe013fdbc in ?? () from /usr/lib/
#31 0x00007fffe01190fb in glXMakeCurrentR
#32 0x00007fffe8733a22 in vtkXOpenGLRe...