Issue 84719 - osl_getModuleURLFromAddress computes wrong path
Summary: osl_getModuleURLFromAddress computes wrong path
Status: ACCEPTED
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: 680m238
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-18 16:42 UTC by Stephan Bergmann
Modified: 2013-02-07 21:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
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
.