View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015617VTK(No Category)public2015-08-05 03:562015-08-13 07:28
ReporterMathieu Westphal 
Assigned ToMathieu Westphal 
PrioritylowSeverityminorReproducibilityhave not tried
StatusclosedResolutionunable to reproduce 
PlatformOSLinuxOS Version
Product Version6.3.0 
Target VersionFixed in Version 
Summary0015617: dlclose assert error with lib that have DF_1_NODELETE flag
Descriptionin Utilities/KWSys/vtksys/DynamicLoader.cxx:503 there is a call to dlclose, this is used to unload lib when quitting any application using plugins ( aka pvpython, paraview... )

But, if the lib as the DF_1_NODELETE flag set, the dlclose call will fail with the following assert error :
Inconsistency detected by ld.so: dl-close.c: 764: _dl_close: Assertion `map->l_init_called' failed!

This flag can be set for three reasons :
  - RTLD_NODELETE have bess used as a flag when calling dlopen, not the case here.
  - -z nodelete have been used when linking the library, unlikely when using ADD_PARAVIEW_PLUGIN macro, but who knows...
  - The lib contains unique symbols : absolutely possible ( this is how i've pinpointed this bug )

More info here:
http://stackoverflow.com/questions/31826309/glibc-test-if-lib-as-df-1-nodelete-flag-or-if-lib-has-unique-symbol [^]
https://sourceware.org/ml/libc-alpha/2015-05/msg00810.html [^]
https://www.redhat.com/archives/posix-c++-wg/2009-August/msg00002.html [^]
TagsNo tags attached.
ProjectTBD
Typecrash
Attached Files

 Relationships

  Notes
(0034885)
Mathieu Westphal (developer)
2015-08-05 03:58

When encountering this issue, the culprint can been easilly identified and corrected on the loaded lib using nm :
 nm -gC yourLib.so | grep " u "
(0034886)
Mathieu Westphal (developer)
2015-08-05 05:28

not a VTK bug, the assert should not provoke any error with a Release version of glibc.

 Issue History
Date Modified Username Field Change
2015-08-05 03:56 Mathieu Westphal New Issue
2015-08-05 03:56 Mathieu Westphal Assigned To => Mathieu Westphal
2015-08-05 03:58 Mathieu Westphal Note Added: 0034885
2015-08-05 05:01 Joachim Pouderoux OS => Linux
2015-08-05 05:28 Mathieu Westphal Note Added: 0034886
2015-08-13 07:27 Mathieu Westphal Status backlog => closed
2015-08-13 07:27 Mathieu Westphal Resolution open => fixed
2015-08-13 07:27 Mathieu Westphal Status closed => backlog
2015-08-13 07:27 Mathieu Westphal Resolution fixed => reopened
2015-08-13 07:28 Mathieu Westphal Status backlog => closed
2015-08-13 07:28 Mathieu Westphal Resolution reopened => unable to reproduce


Copyright © 2000 - 2018 MantisBT Team