Bug 2309666

Summary: Emacs crashes after calling xwidget-webkit-browse-url
Product: [Fedora] Fedora Reporter: Akira TAGOH <tagoh>
Component: emacsAssignee: Peter Oliver <mavit>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: benson_muite, dan.cermak, dueno, gordon.messmer, marcandre.lureau, mavit, msekleta, phracek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: emacs-29.4-34.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-09-26 00:18:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Akira TAGOH 2024-09-04 08:47:47 UTC
Calling xwidget-webkit-browse-url causes a crash.


Reproducible: Always

Steps to Reproduce:
1.run emacs
2.M-: (xwidget-webkit-browse-url "https://github.com/")
3.
Actual Results:  
Emacs crashes

Expected Results:  
No crash

Overriding existing handler for signal 10. Set JSC_SIGNAL_FOR_GC if you want WebKit to use a different signal

** (emacs:411989): ERROR **: 17:00:35.589: readPIDFromPeer: Failed to read pid from PID socket: Interrupted system ca
ll
Fatal error 5: Trace/breakpoint trap
Backtrace:
emacs() [0x552f2a]
emacs() [0x42c788]
emacs() [0x42d460]
emacs() [0x6bdf44]
/lib64/libc.so.6(+0x19dc0) [0x7f89f93f9dc0]
/lib64/libglib-2.0.so.0(g_log_structured_array+0x117) [0x7f8a0314e7e7]
/lib64/libglib-2.0.so.0(g_log_default_handler+0xb7) [0x7f8a03154227]
/lib64/libglib-2.0.so.0(g_logv+0x249) [0x7f8a0314b029]
/lib64/libglib-2.0.so.0(g_log+0x93) [0x7f8a0314b3a3]
/lib64/libwebkit2gtk-4.1.so.0(+0x4306ce) [0x7f89fe4306ce]
/lib64/libwebkit2gtk-4.1.so.0(+0x620180) [0x7f89fe620180]
/lib64/libwebkit2gtk-4.1.so.0(+0x45a80f) [0x7f89fe45a80f]
/lib64/libwebkit2gtk-4.1.so.0(+0x6273b5) [0x7f89fe6273b5]
/lib64/libwebkit2gtk-4.1.so.0(+0x649d4d) [0x7f89fe649d4d]
/lib64/libwebkit2gtk-4.1.so.0(+0x5cfe8b) [0x7f89fe5cfe8b]
/lib64/libwebkit2gtk-4.1.so.0(+0x5c8cf0) [0x7f89fe5c8cf0]
/lib64/libgobject-2.0.so.0(+0x1a41a) [0x7f8a0326e41a]
/lib64/libgobject-2.0.so.0(g_object_new_valist+0x67b) [0x7f8a0327053b]
/lib64/libgobject-2.0.so.0(g_object_new+0x9f) [0x7f8a032708df]
emacs() [0x663d26]
/usr/lib64/emacs/29.4/native-lisp/29.4-95b6efb5/xwidget-9ccb93b3-a1a53602.eln(F787769646765742d696e73657274_xwidget_insert_0+0x4d) [0x7f89d0f5d3dd]
emacs() [0x5cce94]
emacs() [0x5cdc0d]
/usr/lib64/emacs/29.4/native-lisp/29.4-95b6efb5/xwidget-9ccb93b3-a1a53602.eln(F787769646765742d7765626b69742d2d6372656174652d6e65772d73657373696f6e2d627566666572_xwidget_webkit__create_new_session_buffer_0+0x1c8) [0x7f89d0f61188]
emacs() [0x5cdc0d]
/usr/lib64/emacs/29.4/native-lisp/29.4-95b6efb5/xwidget-9ccb93b3-a1a53602.eln(F787769646765742d7765626b69742d6e65772d73657373696f6e_xwidget_webkit_new_session_0+0x44) [0x7f89d0f612e4]
emacs() [0x5cdc0d]
/usr/lib64/emacs/29.4/native-lisp/29.4-95b6efb5/xwidget-9ccb93b3-a1a53602.eln(F787769646765742d7765626b69742d676f746f2d75726c_xwidget_webkit_goto_url_0+0xe2) [0x7f89d0f617c2]
emacs() [0x5cdc0d]
/usr/lib64/emacs/29.4/native-lisp/29.4-95b6efb5/xwidget-9ccb93b3-a1a53602.eln(F787769646765742d7765626b69742d62726f7773652d75726c_xwidget_webkit_browse_url_0+0xe9) [0x7f89d0f5e0e9]
emacs() [0x5cfd92]
emacs() [0x5d184d]
/usr/bin/../lib64/emacs/29.4/native-lisp/29.4-95b6efb5/preloaded/simple-fab5b0cf-7c10fc4e.eln(F6576616c2d65787072657373696f6e_eval_expression_0+0xac) [0x7f89f12e61dc]
emacs() [0x5cdc0d]
emacs() [0x5cdd1b]
emacs() [0x5cdc0d]
emacs() [0x5ceb00]
emacs() [0x5d28f5]
/usr/bin/../lib64/emacs/29.4/native-lisp/29.4-95b6efb5/preloaded/simple-fab5b0cf-7c10fc4e.eln(F636f6d6d616e642d65786563757465_command_execute_0+0x285) [0x7f89f12ea775]
emacs() [0x5cdc0d]
emacs() [0x530ee5]
...
zsh: trace trap (core dumped)  emacs

Comment 1 Peter Oliver 2024-09-22 19:02:31 UTC
The solution for now is to disable this function, since recent versions of WebKitGTK are not compatible with Emacs.

Comment 2 Fedora Update System 2024-09-22 23:09:32 UTC
FEDORA-2024-3ca11884bd (emacs-29.4-33.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-3ca11884bd

Comment 3 Fedora Update System 2024-09-23 02:09:38 UTC
FEDORA-2024-3ca11884bd has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-3ca11884bd`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-3ca11884bd

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2024-09-24 22:55:21 UTC
FEDORA-2024-2bc6e2d233 (emacs-29.4-34.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-2bc6e2d233

Comment 5 Fedora Update System 2024-09-25 01:34:43 UTC
FEDORA-2024-2bc6e2d233 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-2bc6e2d233`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-2bc6e2d233

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2024-09-26 00:18:26 UTC
FEDORA-2024-2bc6e2d233 (emacs-29.4-34.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.