consolekit: ck-get-x11-display-device segmentation fault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
consolekit (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Precise |
Fix Released
|
High
|
Brian Murray | ||
Quantal |
Fix Released
|
High
|
Brian Murray |
Bug Description
Just updated to 12.04. Everytime I logged into GNOME 3 I got a segmentation fault from consolekit, specifically ck-get-
$ cat /proc/drivers
/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
rfcomm /dev/rfcomm 216 0-255 serial
blackmagic_serial /dev/blackmagic
ttyprintk /dev/ttyprintk 5 3 console
serial /dev/ttyS 4 64-111 serial
pty_slave /dev/pts 136 0-1048575 pty:slave
pty_master /dev/ptm 128 0-1048575 pty:master
unknown /dev/tty 4 1-63 console
However in src/ck-
typedef struct tty_map_node {
struct tty_map_node *next;
guint major_number;
guint minor_first;
guint minor_last;
char name[16];
char devfs_type;
} tty_map_node;
The following patch solves this issue (simply increasing the array size):
--- ck-sysdeps-
+++ ck-sysdeps-linux.c 2013-02-20 13:18:04.491182079 -0800
@@ -93,7 +93,7 @@
guint major_number;
guint minor_first;
guint minor_last;
- char name[16];
+ char name[32];
char devfs_type;
} tty_map_node;
=======
*** buffer overflow detected ***: /usr/lib/
======= Backtrace: =========
/lib/x86_
/lib/x86_
/lib/x86_
/usr/lib/
/usr/lib/
/usr/lib/
/lib/x86_
/usr/lib/
======= Memory map: ========
00400000-00404000 r-xp 00000000 08:21 4722213 /usr/lib/
00603000-00604000 r--p 00003000 08:21 4722213 /usr/lib/
00604000-00605000 rw-p 00004000 08:21 4722213 /usr/lib/
01628000-01649000 rw-p 00000000 00:00 0 [heap]
7f530fd9b000-
7f530fdb0000-
7f530ffaf000-
7f530ffb0000-
7f530ffb1000-
7f530ffb6000-
7f53101b5000-
7f53101b6000-
7f53101b7000-
7f53101b9000-
7f53103b8000-
7f53103b9000-
7f53103ba000-
7f53103c1000-
7f53105c0000-
7f53105c1000-
7f53105c2000-
7f53105da000-
7f53107d9000-
7f53107da000-
7f53107db000-
7f53107df000-
7f531081b000-
7f5310a1a000-
7f5310a1b000-
7f5310a1c000-
7f5310a1e000-
7f5310c1e000-
7f5310c1f000-
7f5310c20000-
7f5310c3d000-
7f5310e3c000-
7f5310e3d000-
7f5310e3e000-
7f5310ff3000-
7f53111f2000-
7f53111f6000-
7f53111f8000-
7f53111fd000-
7f53112ef000-
7f53114ef000-
7f53114f0000-
7f53114f1000-
7f53114f2000-
7f5311621000-
7f5311821000-
7f5311822000-
7f5311826000-
7f5311a22000-
7f5311a3e000-
7f5311a3f000-
7f5311a46000-
7f5311a48000-
7f5311a49000-
7fff9f81e000-
7fff9f8b2000-
ffffffffff60000
Changed in consolekit (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in consolekit (Ubuntu Precise): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in consolekit (Ubuntu Quantal): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in consolekit (Ubuntu): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in consolekit (Ubuntu Quantal): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in consolekit (Ubuntu Precise): | |
assignee: | nobody → Brian Murray (brian-murray) |
tags: | added: verification-done-quantal |
The attachment "ck-sysdeps- linux.c. patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.
[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]