Repository navigation
Commit f0e2ce6
Report why a simulation setup library cannot be loaded
This replaces the asserts in execFromPlugin by fatal messages with the reason.
- A failed dlopen of libO2G4Setup and friends stopped at assert(libHandle), without the error from dlerror().
- The message now gives the dlopen error, e.g. a missing static TLS reserve for Geant4 built with the initial-exec TLS model.
- The library is opened once, with the suffix of the platform as in DLLoaderBase.
- A runtime_error follows the fatal message, since LOG(fatal) ends the process only when a fatal handler is installed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent a8a2a45 commit f0e2ce6
1 file changed
Lines changed: 18 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 18 | + | |
| 19 | + | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
| |||
28 | 25 | | |
29 | 26 | | |
30 | 27 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
39 | 34 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
44 | 39 | | |
45 | | - | |
| 40 | + | |
46 | 41 | | |
47 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
0 commit comments