You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in loading dynamic library a: Error: ENOENT: no such file or directory, open '/home/rchatham/Documents/programming/emscripten/a'
res: 0
Aborted(Assertion failed: Attempt to load 'a' twice before the first load completed)
Error in loading dynamic library a: RuntimeError: Aborted(Assertion failed: Attempt to load 'a' twice before the first load completed)
res: 0
Even here I am concerned that if I later created a file called "a" which was a valid shared library, it would not succeed in opening it. Whereas native dlopen would work. But this isn't causing trouble.
The problem is if we compile with -O1, then it does not fail on the second call:
hoodmane
changed the title
Attempting to load missing shared library twice returns a nonzero result in non-debug buildsdlopen missing shared library twice returns nonzero result in non-debug builds
Nov 8, 2024
hoodmane
changed the title
dlopen missing shared library twice returns nonzero result in non-debug buildsdlopen missing shared lib twice returns nonzero result in non-debug builds
Nov 8, 2024
Source file:
Compile and run:
behaves sort of as expected:
Even here I am concerned that if I later created a file called
"a"
which was a valid shared library, it would not succeed in opening it. Whereas native dlopen would work. But this isn't causing trouble.The problem is if we compile with
-O1
, then it does not fail on the second call:This is troublesome.
Version of emscripten/emsdk:
The text was updated successfully, but these errors were encountered: