Wrong / none execution of initalization section within shared libraries under Linux
Original Reporter info from Mantis: werner.bochtler@zkrd.de
-
Reporter name: Werner Bochtler
Original Reporter info from Mantis: werner.bochtler@zkrd.de
- Reporter name: Werner Bochtler
Description:
The execution of initailization sections within shared libraries does not work as expected.
Only tested under LINUX, but other OS may also be affected.
Additional information:
Scenario 1:
FPC-Application calls
function of FPC-SharedLib1 which calls
function of FPC-SharedLib2
The initalization sections units within the two libraries are not executed at all.
Scenario 2:
C-Application calls
function of FPC-SharedLib1 which calls
function of FPC-SharedLib2
The initalization section of a unit within library 2 is executed twice!
The initalization section of a unit within library 1 is not executed at all.
Mantis conversion info:
- Mantis ID: 8730
- Version: 2.3.1
- Fixed in version: 2.2.2
- Fixed in revision: 10664 (#0c047f17)
- Monitored by: » L505 (Lars(L505)), » sethdgrover@gmail.com (Seth Grover)