Bug 1155810 - [abrt] gedit: g_variant_new_parsed_va(): gedit killed by SIGTRAP
Summary: [abrt] gedit: g_variant_new_parsed_va(): gedit killed by SIGTRAP
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gedit
Version: 21
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Ray Strode [halfline]
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:40e0191d2d965d674dea97ff2f0...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-22 21:59 UTC by Марко М. Костић (Marko M. Kostić)
Modified: 2014-11-14 21:22 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-11-14 21:22:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (47.35 KB, text/plain)
2014-10-22 21:59 UTC, Марко М. Костић (Marko M. Kostić)
no flags Details
File: cgroup (190 bytes, text/plain)
2014-10-22 21:59 UTC, Марко М. Костић (Marko M. Kostić)
no flags Details
File: core_backtrace (14.74 KB, text/plain)
2014-10-22 21:59 UTC, Марко М. Костић (Marko M. Kostić)
no flags Details
File: dso_list (15.50 KB, text/plain)
2014-10-22 21:59 UTC, Марко М. Костић (Marko M. Kostić)
no flags Details
File: environ (956 bytes, text/plain)
2014-10-22 21:59 UTC, Марко М. Костић (Marko M. Kostić)
no flags Details
File: limits (1.29 KB, text/plain)
2014-10-22 21:59 UTC, Марко М. Костић (Marko M. Kostić)
no flags Details
File: maps (68.44 KB, text/plain)
2014-10-22 22:00 UTC, Марко М. Костић (Marko M. Kostić)
no flags Details
File: open_fds (1.32 KB, text/plain)
2014-10-22 22:00 UTC, Марко М. Костић (Marko M. Kostić)
no flags Details
File: proc_pid_status (931 bytes, text/plain)
2014-10-22 22:00 UTC, Марко М. Костић (Marko M. Kostić)
no flags Details
File: var_log_messages (3.01 KB, text/plain)
2014-10-22 22:00 UTC, Марко М. Костић (Marko M. Kostić)
no flags Details

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.


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