Bug 1761325

Summary: Segmentation fault when LANG=C.utf8
Product: [Fedora] Fedora Reporter: Giovanni <dacav>
Component: dmenuAssignee: Frantisek Sumsal <frantisek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 29CC: fedora, frantisek, i, lupinix.fedora, psabata
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: dmenu-4.9-2.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-25 18:06:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.