Bug 1155810

Summary: [abrt] gedit: g_variant_new_parsed_va(): gedit killed by SIGTRAP
Product: [Fedora] Fedora Reporter: Марко М. Костић (Marko M. Kostić) <marko.m.kostic>
Component: geditAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: rstrode, swilmet
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/e32824af0670619ca9be4f58598cac48bba18eda
Whiteboard: abrt_hash:40e0191d2d965d674dea97ff2f0aca829d1e56a3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-14 21:22:16 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:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: limits
none
File: maps
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Марко М. Костић (Marko M. Kostić) 2014-10-22 21:59:47 UTC
Description of problem:
I tried to open a file in gedit from command line.

Steps to reproduce:

Input "gedit /path/to/file.txt" in Terminal or open gedit and try to
open a file via the menu.

Using a fresh installed Fedora 21 alpha fully updated.

Version-Release number of selected component:
gedit-3.14.0-2.fc21

Additional info:
reporter:       libreport-2.3.0
backtrace_rating: 4
cmdline:        /usr/bin/gedit --gapplication-service
crash_function: g_variant_new_parsed_va
executable:     /usr/bin/gedit
kernel:         3.17.1-302.fc21.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (10 frames)
 #2 g_variant_new_parsed_va at gvariant-parser.c:2469
 #3 g_variant_new_parsed at gvariant-parser.c:2525
 #4 _gtk_source_encoding_get_default_candidates at gtksourceencoding.c:649
 #5 set_default_candidate_encodings at gtksourcefileloader.c:276
 #6 gtk_source_file_loader_constructed at gtksourcefileloader.c:320
 #7 g_object_new_internal at gobject.c:1814
 #8 g_object_new_valist at gobject.c:2034
 #10 gtk_source_file_loader_new at gtksourcefileloader.c:843
 #11 _gedit_tab_load at gedit/gedit-tab.c:2044
 #12 _gedit_tab_new_from_location at gedit/gedit-tab.c:1351

Comment 1 Марко М. Костић (Marko M. Kostić) 2014-10-22 21:59:51 UTC
Created attachment 949586 [details]
File: backtrace

Comment 2 Марко М. Костић (Marko M. Kostić) 2014-10-22 21:59:52 UTC
Created attachment 949587 [details]
File: cgroup

Comment 3 Марко М. Костић (Marko M. Kostić) 2014-10-22 21:59:54 UTC
Created attachment 949588 [details]
File: core_backtrace

Comment 4 Марко М. Костић (Marko M. Kostić) 2014-10-22 21:59:55 UTC
Created attachment 949589 [details]
File: dso_list

Comment 5 Марко М. Костић (Marko M. Kostić) 2014-10-22 21:59:57 UTC
Created attachment 949590 [details]
File: environ

Comment 6 Марко М. Костић (Marko M. Kostić) 2014-10-22 21:59:58 UTC
Created attachment 949591 [details]
File: limits

Comment 7 Марко М. Костић (Marko M. Kostić) 2014-10-22 22:00:00 UTC
Created attachment 949592 [details]
File: maps

Comment 8 Марко М. Костић (Marko M. Kostić) 2014-10-22 22:00:02 UTC
Created attachment 949593 [details]
File: open_fds

Comment 9 Марко М. Костић (Marko M. Kostić) 2014-10-22 22:00:03 UTC
Created attachment 949594 [details]
File: proc_pid_status

Comment 10 Марко М. Костић (Marko M. Kostić) 2014-10-22 22:00:04 UTC
Created attachment 949595 [details]
File: var_log_messages

Comment 11 Sébastien Wilmet 2014-10-24 09:45:14 UTC
Thanks for the bug report. The bug comes from:
https://git.gnome.org/browse/gtksourceview/tree/po/sr.po#n3343

> msgid "['UTF-8', 'CURRENT', 'ISO-8859-15', 'UTF-16']"
> msgstr ""
> "[„UTF-8“, „CURRENT“, „ISO-8859-2“, „ISO-8859-5“, „WINDOWS-1250“, "
> "„WINDOWS-1251“, „ISO-8859-15“]"

Since translations cannot be trusted, I'll make the code more robust (use g_variant_parse() instead of g_variant_new_parsed()), and fix the translation.

Comment 12 Sébastien Wilmet 2014-10-24 11:06:55 UTC
Fixed:
https://git.gnome.org/browse/gtksourceview/commit/?id=098f30f56b1a48cfcc59c0a286eb965012fbf34d

https://git.gnome.org/browse/gtksourceview/commit/?id=b973645046b6dd16f691c5318856071278d97730

The commits are backported to the gnome-3-14 branch, so it'll be available for GtkSourceView 3.14.2.

Comment 13 Марко М. Костић (Marko M. Kostić) 2014-11-14 21:20:47 UTC
An update to gedit in Fedora 21 has landed today and this bug has been fixed. Thanks Sébastien.