xorg-app-xconsole-1.0.5-1.x86_64 segfault on start

Bug #1145326 reported by Elan Ruusamäe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PLD Linux
New
Undecided
Unassigned

Bug Description

# xconsole
Warning: Unable to load any usable ISO8859 font
Segmentation fault

# gdb xconsole
GNU gdb (GDB) 7.5.0-0.20120926.2 (PLD Linux)
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pld-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/xconsole...Reading symbols from /usr/lib/debug/usr/bin/xconsole.debug...done.
done.
(gdb) r
Starting program: /usr/bin/xconsole
Warning: Unable to load any usable ISO8859 font

Program received signal SIGSEGV, Segmentation fault.
GetGC (sink=0x637b20) at AsciiSink.c:1658
1658 values.font = sink->ascii_sink.font->fid;
(gdb) bt
#0 GetGC (sink=0x637b20) at AsciiSink.c:1658
#1 XawAsciiSinkInitialize (request=<optimized out>, cnew=0x637b20, args=<optimized out>, num_args=<optimized out>) at AsciiSink.c:1707
#2 0x00007ffff7705070 in CallInitialize (class=0x7ffff7dd2140 <asciiSinkClassRec>, req_widget=0x7fffffffd420, new_widget=0x637b20, args=0x0,
    num_args=0) at Create.c:226
#3 0x00007ffff7705a6d in xtCreate (name=<optimized out>, class=0x0, widget_class=<optimized out>, parent=0x634270, default_screen=0x0, args=0x0,
    num_args=0, typed_args=0x0, num_typed_args=0, parent_constraint_class=0x0, post_proc=0x7ffff77051c0 <widgetPostProc>) at Create.c:416
#4 0x00007ffff7705e8b in _XtCreateWidget (name=0x7ffff7bc1208 "textSink", widget_class=0x7ffff7dd2140 <asciiSinkClassRec>, parent=0x634270,
    args=0x0, num_args=0, typed_args=0x0, num_typed_args=0) at Create.c:570
#5 0x00007ffff770619e in XtCreateWidget (name=name@entry=0x7ffff7bc1208 "textSink", widget_class=0x7ffff7dd2140 <asciiSinkClassRec>,
    parent=parent@entry=0x634270, args=args@entry=0x0, num_args=0) at Create.c:589
#6 0x00007ffff7b888b7 in XawAsciiInitialize (request=<optimized out>, cnew=0x634270, args=0x0, num_args=0x7fffffffda1c) at AsciiText.c:296
#7 0x00007ffff7705070 in CallInitialize (class=0x7ffff7dd25c0 <asciiTextClassRec>, req_widget=0x7fffffffdaa0, new_widget=0x634270, args=0x0,
    num_args=0) at Create.c:226
#8 0x00007ffff7705a6d in xtCreate (name=<optimized out>, class=0x0, widget_class=<optimized out>, parent=0x61f580, default_screen=0x614ea0,
    args=0x0, num_args=0, typed_args=0x0, num_typed_args=0, parent_constraint_class=0x0, post_proc=0x7ffff77051c0 <widgetPostProc>) at Create.c:416
#9 0x00007ffff7705e8b in _XtCreateWidget (name=0x402e52 "text", widget_class=0x7ffff7dd25c0 <asciiTextClassRec>, parent=0x61f580, args=0x0,
    num_args=0, typed_args=0x0, num_typed_args=0) at Create.c:570
#10 0x00007ffff770629a in XtCreateManagedWidget (name=name@entry=0x402e52 "text", widget_class=0x7ffff7dd25c0 <asciiTextClassRec>, parent=0x61f580,
    args=args@entry=0x0, num_args=num_args@entry=0) at Create.c:610
#11 0x0000000000401ba2 in main (argc=1, argv=0x7fffffffe148) at xconsole.c:652
(gdb)

does not seem to be relevant to the as font name (visible when stracing) exists in the system:

# strace -s200 -ewritev xconsole 2>&1 | grep ISO
writev(4, [{"-\0\f\0\r\0\340\2$\0\340\2-*-*-*-R-*-*-*-120-*-*-*-*-ISO8859-*/\0\2\0\r\0\340\2", 56}, {NULL, 0}, {"", 0}], 3) = 56
Warning: Unable to load any usable ISO8859 font

# xlsfonts
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--12-90-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x12
6x13
6x13
cursor
cursor
fixed
fixed

relevant packages (their debuginfos):
Mon Mar 4 23:59:12 2013 xorg-app-xconsole-debuginfo-1.0.5-1.x86_64
Tue Mar 5 00:00:34 2013 xorg-lib-libXaw-debuginfo-1.0.11-2.x86_64
Tue Mar 5 00:02:16 2013 xorg-lib-libXt-debuginfo-1.1.3-1.x86_64

Revision history for this message
Elan Ruusamäe (glen666) wrote :

(gdb) p sink->ascii_sink.font
$4 = (XFontStruct *) 0x0

and whole sink:
(gdb) p *sink
$5 = {
  object = {
    self = 0x637b20,
    widget_class = 0x7ffff7dd2140 <asciiSinkClassRec>,
    parent = 0x634270,
    xrm_name = 839,
    being_destroyed = 0 '\000',
    destroy_callbacks = 0x0,
    constraints = 0x0
  },
  text_sink = {
    foreground = 3225401,
    background = 15592941,
    tabs = 0x0,
    char_tabs = 0x0,
    tab_count = 0,
    cursor_color = 0,
    properties = 0x0,
    paint = 0x0,
    pad = {0x0,
      0x0}
  },
  ascii_sink = {
    font = 0x0,
    echo = 1 '\001',
    display_nonprinting = 1 '\001',
    normgc = 0x0,
    invgc = 0x0,
    xorgc = 0x0,
    cursor_position = 0,
    laststate = XawisOn,
    cursor_x = 0,
    cursor_y = 0,
    pad = {0x0,
      0x0,
      0x0,
      0x0}
  }
}

Revision history for this message
Elan Ruusamäe (glen666) wrote :

and ltrace, just in case

# ltrace xconsole
__libc_start_main(0x401af0, 1, 0x7fff1e53f918, 0x402d70, 0x402e00 <unfinished ...>
XtSetLanguageProc(0, 0, 0, 0x401af0, 0x7f78e885dcc0) = 0x7f78e8dc5dd0
XtInitialize(0x402e19, 0x402e49, 0x604320, 7, 0x7fff1e53f78c) = 0x12cd580
XtGetApplicationResources(0x12cd580, 0x6045b0, 0x604440, 7, 0) = 0
XtAddActions(0x604400, 4, 0x7f78e885c658, 0, 0) = 0
XtCreateManagedWidget(0x402e52, 0x7f78e94885c0, 0x12cd580, 0, 0Warning: Unable to load any usable ISO8859 font
 <unfinished ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++

Revision history for this message
Elan Ruusamäe (glen666) wrote :

similar bug: http://forums.gentoo.org/viewtopic-t-813945.html

and also, xmessage crashes the same way, and xset q shows that font and fontpath is present

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.