Bug 1766191

Summary: /usr/bin/gedit:11:g_type_check_instance_cast:GEDIT_OPEN_DOCUMENT_SELECTOR:real_populate_liststore:gdk_threads_dispatch:g_main_dispatch
Product: Red Hat Enterprise Linux 7 Reporter: Paulo Andrade <pandrade>
Component: geditAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: high    
Version: 7.7CC: cpippin, dbasant, desktop-qa-list, jkoten, jprajzne, jraising, tpelka
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gedit-3.28.1-2.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1832222 (view as bug list) Environment:
Last Closed: 2020-09-29 20:21:50 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:
Bug Depends On:    
Bug Blocks: 1832222    

Description Paulo Andrade 2019-10-28 14:43:14 UTC
User has a coredump that matches the bug report at
https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1646762
already fixed upstream in
https://gitlab.gnome.org/GNOME/gedit/merge_requests/34/diffs?commit_id=e88b8456cfd4aa969b43594b0748837db4988fed
[open-document-selector: Properly remove idle]

  User coredump backtrace:

#0  g_type_check_instance_cast (type_instance=type_instance@entry=0x129c4f0, iface_type=19704048) at gtype.c:4057
#1  0x00007f54e40812f7 in GEDIT_OPEN_DOCUMENT_SELECTOR (ptr=0x129c4f0) at gedit/gedit-open-document-selector.h:33
#2  real_populate_liststore (data=0x129c4f0) at gedit/gedit-open-document-selector.c:507
#3  0x00007f54e273c4b8 in gdk_threads_dispatch (data=data@entry=0x117bb80) at gdk.c:743
#4  0x00007f54e08fbc77 in g_idle_dispatch (source=0x1bf0120, callback=0x7f54e273c490 <gdk_threads_dispatch>, user_data=0x117bb80) at gmain.c:5533
#5  0x00007f54e08ff049 in g_main_dispatch (context=0xfdb080) at gmain.c:3175
#6  g_main_context_dispatch (context=context@entry=0xfdb080) at gmain.c:3828
#7  0x00007f54e08ff3a8 in g_main_context_iterate (context=context@entry=0xfdb080, block=block@entry=0, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3901
#8  0x00007f54e08ff45c in g_main_context_iteration (context=context@entry=0xfdb080, may_block=may_block@entry=0) at gmain.c:3962
#9  0x00007f54e142e432 in g_application_run (application=0xfd51e0, argc=argc@entry=2, argv=argv@entry=0x7ffc9801d7c8) at gapplication.c:2494
#10 0x0000000000400d4a in main (argc=2, argv=0x7ffc9801d7c8) at gedit/gedit.c:146

and the crash cause was the bad pointer:

Program terminated with signal 11, Segmentation fault.
#0  g_type_check_instance_cast (type_instance=type_instance@entry=0x129c4f0, iface_type=19704048) at gtype.c:4057
4057		  node = lookup_type_node_I (type_instance->g_class->g_type);
(gdb) p* type_instance
$1 = {g_class = 0x3032785c3237785c}

Comment 14 errata-xmlrpc 2020-09-29 20:21:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (GNOME bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3987