Bug 1761325 - Segmentation fault when LANG=C.utf8
Summary: Segmentation fault when LANG=C.utf8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dmenu
Version: 29
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Frantisek Sumsal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-14 06:51 UTC by Giovanni
Modified: 2019-10-25 18:06 UTC (History)
5 users (show)

Fixed In Version: dmenu-4.9-2.fc29
Clone Of:
Environment:
Last Closed: 2019-10-25 18:06:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Giovanni 2019-10-14 06:51:18 UTC
Description of problem:

I'm using the "surf" browser (provded by the "surf" package in Fedora 29).  Surf relies on dmenu for user input (e.g. when opening a new page), but dmenu crashes.

After a little debugging, I found out the cause to be 

Version-Release number of selected component (if applicable):


How reproducible:

Easy to reproduce



Steps to Reproduce:
1. LANG=C.utf8 dmenu
2. insert some text, e.g. "about:blank" (which is what surf does)
3. When the graphical input text bar is shown, type some words and it should crash.

Stack trace of thread 10673:
#0  0x00007fc3a208c514 XmbLookupString (libX11.so.6)
#1  0x00005613aab5a3a3 keypress (dmenu.real)
#2  0x00007fc3a1e31413 __libc_start_main (libc.so.6)
#3  0x00005613aab5b34e _start (dmenu.real)

The crash does not happen with LANG=en_US.utf8 (which is what I have if I run dmenu myself, while surf is probably changing the values of the environment variables.


Actual results:


Expected results:


Additional info:

Comment 1 Fedora Update System 2019-10-14 08:38:38 UTC
FEDORA-2019-5a1eb36b76 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-5a1eb36b76

Comment 2 Frantisek Sumsal 2019-10-14 08:40:54 UTC
Hey! Thanks for the report. I backported the necessary patches to F30+ (see BZ#1748043, BZ#1737739, BZ#1729601, BZ#1696199) but forgot about F29. Should be fixed by the bodhi update mentioned in the previous comment.

Comment 3 Fedora Update System 2019-10-14 18:02:37 UTC
dmenu-4.9-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-5a1eb36b76

Comment 4 Fedora Update System 2019-10-25 18:06:40 UTC
dmenu-4.9-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.