#15830 closed bug (fixed)
Regression - crash on exit with OpenSSL
Reported by: | smallstepforman | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta2 |
Component: | System | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
hrev54008 introduced regression where when I exit my Video Editor which uses MediaKit/ffmpeg, it crashes on exit / OPENSSL_cleanup/.../openssl_lh_strcasehash(). Previous revisions (up to and including hrev53966) did not crash. Booting into older revision and the application exits successfully. So this is an introduced regression between hrev53966 and hrev54008.
I dont directly link to OpenSSL, it is included via ffmpeg -> MediaKit
Attachments (1)
Change History (18)
by , 5 years ago
Attachment: | Medo-3966-debug-25-03-2020-05-16-50.report added |
---|
comment:1 by , 5 years ago
Are you sure that hrev54008 introduced this? This revision only touched PPMTranslator and Bluetooth.
comment:2 by , 5 years ago
comment:3 by , 5 years ago
Looks almost identical to this: http://freebsd.1045724.x6.nabble.com/PHP-7-2-SIGSEGV-in-OpenSSL-td6309302.html
Seems to imply the issue is somehow related to unload order. Does this not occur in MediaPlayer for instance?
comment:4 by , 5 years ago
comment:5 by , 5 years ago
I also just noticed that libcrypto and libssl are still in the "Loaded Images" section of the debug report, so then I'm not sure how this is occurring. Maybe the destructor is being registered twice, somehow?
comment:6 by , 5 years ago
Is this reproducible with any other Media Kit app, or only your editor?
If only your editor, could you try to write a minimal reproduction case?
comment:7 by , 5 years ago
can this be related to #15837?
the workaround there : "go to /system/packages/administrative and install older openssl hpkg from previous state"
does that help?
comment:8 by , 5 years ago
No, that is unrelated. That issue is about libssl failing to be found; here it is loaded and there is a crash on exit. They are only related in the sense that we recently switched OpenSSL versions.
comment:9 by , 5 years ago
The easiest reproduction case for this is just to run "curl" from the command line without arguments; when it tries to clean up libssl, it'll trigger this crash.
comment:10 by , 5 years ago
Are you on beta1 or nightly? At least on nightlies, curl seems to work still, so that is a separate issue I think.
comment:11 by , 5 years ago
I installed beta1 from the anyboot .iso on the website, launched HaikuDepot and selected “check for updates,” once updates were done, rebooted, then problem will present itself.
comment:12 by , 5 years ago
Yes, that's a separate issue: #15837. curl and most other tools work on nightlies, this problem appears to be confined to a single application (smallstepforman's.) Something is different in the beta for some reason, it seems.
comment:13 by , 5 years ago
Yes, you're right, issue #15837's fix did remedy the curl issue I mentioned; sorry for the confusion!
comment:14 by , 5 years ago
With a fresh update (hrev54069), the problem no longer occurs. Most likely the issue was due to mismatch in OpenSSL versions when creating ffmpeg tools. This appears to have been resolved with the latest upadte to SSL.
Safe to close.
comment:15 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:17 by , 5 years ago
Milestone: | Unscheduled → R1/beta2 |
---|
Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone
Debugger crash report