Issue 84719

Summary: osl_getModuleURLFromAddress computes wrong path
Product: porting Reporter: Stephan Bergmann <stephan.bergmann.secondary>
Component: codeAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: 680m238   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Stephan Bergmann 2007-12-18 16:42:43 UTC
At least on some Linuxs, osl_getModuleURLFromAddress (sal/osl/unx/module.c:1.38
l. 258), when asked for an address in the executable (e.g.,
osl_bootstrap_getExecutableFile_Impl at sal/osl/unx/process_impl.cxx:1.11 l. 152
asking for "main"), may get a relative dli_fname from dladdr, which it will
erroneously make absolute relative to the cwd.  For example, setting PATH to
point to solver's bin directory and executing testshl2 (without path), while the
cwd is somewhere completely unrelated, leads to this problem.
Comment 1 kay.ramme 2008-03-07 15:39:24 UTC
.