Ticket #1157 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Linux: Some dynamic casts to types defined in plugin libraries fail on linux

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Iteration 22
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

This seems to be a problem with symbol resolution. On linux, when dlopen loads a library the symbols are not made globally available by default.

This seems to cause problems when trying to perform a dynamic cast to types defined in the loaded library if the library has not been linked in with the calling application.

Change History

comment:1 Changed 11 years ago by Martyn Gigg

(In [4107]) Added RTLD_GLOBAL flag to dlopen on POSIX so that when a library is loaded then all of the symbols defined there are available to the calling application. I was seeing problems with some dynamic casts relating to this. Re #1157

comment:2 Changed 11 years ago by Martyn Gigg

  • Status changed from new to accepted
  • Owner set to Martyn Gigg

comment:3 Changed 11 years ago by Martyn Gigg

  • Status changed from accepted to testing
  • Resolution set to fixed

comment:4 Changed 11 years ago by Anders Markvardsen

  • Status changed from testing to closed

comment:5 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2005

Note: See TracTickets for help on using tickets.