Bugzilla – Full Text Bug Listing |
Summary: | Elf-loader falls into deadlock during relocation (Ubuntu1204-64bits/Fedora16-64bits) | ||
---|---|---|---|
Product: | dce | Reporter: | Hajime Tazaki <tazaki> |
Component: | other | Assignee: | Hajime Tazaki <tazaki> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | ns-bugs, tazaki |
Priority: | P5 | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All |
Description
Hajime Tazaki
2012-10-16 02:56:38 EDT
fixed (by Mathieu). changeset 646 f160f9a83aee when dce-runner use RTLD_LAZY with dlopen/dlmopen, elf-loader again deadlocks. the reason is almost the same: when the symbol 'floor' in libm.so is going to be resoved during the lazy path (via machine_lazy_reloc()), the loader reenter the relocation, resulting double futex aquition. the path for RTLD_NOW is no problem (as the original fix intended to). changeset 1dbf1c14ee16 of ns-3-dce is a workaround, to avoid to use RTLD_LAZY. http://code.nsnam.org/ns-3-dce/rev/1dbf1c14ee16 |