Bug 1392628

Summary: [abrt] gnome-shell: _clutter_input_device_reset_scroll_info(): gnome-shell killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Justin W. Flory (he/him) <foss>
Component: gnome-shellAssignee: Owen Taylor <otaylor>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: chorn, ddssantana89, fmuellner, otaylor, stanislav.moravec
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/aba5bd2047da71d0a3b3c0b0e6b0174aa731fffd
Whiteboard: abrt_hash:94d399d69876521986a5146d3c936296de09549b;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-08 19:10:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: core_backtrace
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Justin W. Flory (he/him) 2016-11-07 22:34:55 UTC
Version-Release number of selected component:
gnome-shell-3.20.4-1.fc24

Additional info:
reporter:       libreport-2.7.2
backtrace_rating: 4
cmdline:        /usr/bin/gnome-shell
crash_function: _clutter_input_device_reset_scroll_info
executable:     /usr/bin/gnome-shell
global_pid:     2040
kernel:         4.7.5-200.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (7 frames)
 #0 _clutter_input_device_reset_scroll_info at clutter-input-device.c:1809
 #1 clutter_device_manager_xi2_translate_event at x11/clutter-device-manager-xi2.c:1416
 #2 clutter_backend_real_translate_event at clutter-backend.c:726
 #3 clutter_x11_handle_event at x11/clutter-event-x11.c:200
 #4 handle_host_xevent at backends/x11/meta-backend-x11.c:325
 #5 x_event_source_dispatch at backends/x11/meta-backend-x11.c:378
 #10 meta_run at core/main.c:537

Potential duplicate: bug 1033729

Comment 1 Justin W. Flory (he/him) 2016-11-07 22:34:59 UTC
Created attachment 1218273 [details]
File: backtrace

Comment 2 Justin W. Flory (he/him) 2016-11-07 22:35:00 UTC
Created attachment 1218274 [details]
File: cgroup

Comment 3 Justin W. Flory (he/him) 2016-11-07 22:35:01 UTC
Created attachment 1218275 [details]
File: core_backtrace

Comment 4 Justin W. Flory (he/him) 2016-11-07 22:35:02 UTC
Created attachment 1218276 [details]
File: dso_list

Comment 5 Justin W. Flory (he/him) 2016-11-07 22:35:03 UTC
Created attachment 1218277 [details]
File: environ

Comment 6 Justin W. Flory (he/him) 2016-11-07 22:35:04 UTC
Created attachment 1218278 [details]
File: exploitable

Comment 7 Justin W. Flory (he/him) 2016-11-07 22:35:05 UTC
Created attachment 1218279 [details]
File: limits

Comment 8 Justin W. Flory (he/him) 2016-11-07 22:35:07 UTC
Created attachment 1218280 [details]
File: maps

Comment 9 Justin W. Flory (he/him) 2016-11-07 22:35:08 UTC
Created attachment 1218281 [details]
File: mountinfo

Comment 10 Justin W. Flory (he/him) 2016-11-07 22:35:09 UTC
Created attachment 1218282 [details]
File: namespaces

Comment 11 Justin W. Flory (he/him) 2016-11-07 22:35:10 UTC
Created attachment 1218283 [details]
File: open_fds

Comment 12 ddssantana89 2017-01-31 00:13:50 UTC
Similar problem has been detected:

The  computer tried to resume from "rest".

reporter:       libreport-2.7.2
backtrace_rating: 4
cmdline:        /usr/bin/gnome-shell
crash_function: _clutter_input_device_reset_scroll_info
executable:     /usr/bin/gnome-shell
global_pid:     2779
kernel:         4.9.5-100.fc24.x86_64
package:        gnome-shell-3.20.4-3.fc24
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
reason:         gnome-shell killed by SIGSEGV
runlevel:       N 5
type:           CCpp
uid:            1000

Comment 13 Stan Moravec 2017-02-14 13:31:22 UTC
Hello.
had the same problem with core file created. Below is the stack trace.

(gdb) bt
#0  _clutter_input_device_reset_scroll_info (device=device@entry=0x0)
    at ./clutter-input-device.c:1742
#1  0x00007fa75973a4eb in clutter_device_manager_xi2_translate_event (
    translator=<optimized out>, native=<optimized out>, event=0x3a543a0)
    at x11/clutter-device-manager-xi2.c:1318
#2  0x00007fa75975c6ac in clutter_backend_real_translate_event (backend=<optimized out>,
    native=0x7ffe89fa8590, event=0x3a543a0) at ./clutter-backend.c:629
#3  0x00007fa7597351e2 in clutter_x11_handle_event (xevent=xevent@entry=0x7ffe89fa8590)
    at x11/clutter-event-x11.c:200
#4  0x00007fa75a3425dd in handle_host_xevent (event=0x7ffe89fa8590, backend=0xae82d0)
    at backends/x11/meta-backend-x11.c:219
#5  x_event_source_dispatch (source=<optimized out>, callback=<optimized out>,
    user_data=<optimized out>) at backends/x11/meta-backend-x11.c:272
#6  0x00007fa755f4f79a in g_main_dispatch (context=0xae0340) at gmain.c:3109
#7  g_main_context_dispatch (context=context@entry=0xae0340) at gmain.c:3708
#8  0x00007fa755f4fae8 in g_main_context_iterate (context=0xae0340, block=block@entry=1,
    dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3779
#9  0x00007fa755f4fdba in g_main_loop_run (loop=0xae96e0) at gmain.c:3973
#10 0x00007fa75a369f38 in meta_run () at core/main.c:473
#11 0x0000000000402455 in main (argc=1, argv=0x7ffe89fa8948) at main.c:471

(gdb) frame 1
#1  0x00007fa75973a4eb in clutter_device_manager_xi2_translate_event (
    translator=<optimized out>, native=<optimized out>, event=0x3a543a0)
    at x11/clutter-device-manager-xi2.c:1318
1318    x11/clutter-device-manager-xi2.c: No such file or directory.
(gdb) p/x device
$1 = 0xc581c0
(gdb) p/x source_device 
$2 = 0x0

(gdb) p/x xi_event
$3 = 0x109b8d0
(gdb) p/x xi_event->evtype
$4 = 0x7 //  == XI_Enter


The code is here:
1270     case XI_Enter:
1271     case XI_Leave:
1272       {
1273         XIEnterEvent *xev = (XIEnterEvent *) xi_event;
1274 
1275         device = g_hash_table_lookup (manager_xi2->devices_by_id,
1276                                       GINT_TO_POINTER (xev->deviceid));
1277 
1278         source_device = g_hash_table_lookup (manager_xi2->devices_by_id,
1279                                              GINT_TO_POINTER (xev->sourceid));
1280 
...
1317 
1318         _clutter_input_device_reset_scroll_info (source_device); // HERE we pass NULL
1319 
1320         clutter_event_set_device (event, device);
1321         clutter_event_set_source_device (event, source_device);
1322 
1323         retval = CLUTTER_TRANSLATE_QUEUE;
1324       }
1325       break;


Clearly source_device was null and the code isn't protected against that.
Why the source dev is not found in the hash table is another question.

Comment 14 Fedora End Of Life 2017-07-25 23:48:13 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 15 Fedora End Of Life 2017-08-08 19:10:25 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.