SIGSEGV when switching to the Tek mode

Bug #1821037 reported by Andrej Shadura
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xterm (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I press both mouse buttons while holding Ctrl and select Switch to Tek mode, xterm crashes.

$ gdb xterm
GNU gdb (Ubuntu 8.2-0ubuntu1) 8.2
Copyright (C) 2018 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-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from xterm...Reading symbols from /usr/lib/debug/.build-id/70/b22a67217f6f04a00907a97327b50fff07aeec.debug...done.
done.
(gdb) run
Starting program: /usr/bin/xterm
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Detaching after fork from child process 13992]
[Detaching after fork from child process 13993]

Program received signal SIGSEGV, Segmentation fault.
TekSetWinSize (tw=0x0) at ../Tekproc.c:918
918 ../Tekproc.c: No such file or directory.
(gdb) bt full
#0 TekSetWinSize (tw=0x0) at ../Tekproc.c:918
No locals.
#1 0x00005555555aa1b0 in end_vt_mode () at ../misc.c:5705
        xw = 0x55555583afc0
#2 0x00007ffff745432e in XtCallCallbacks (widget=0x555555891b00, name=0x5555557edb08 <XtStrings+136> "callback", call_data=0x0) at ../../src/Callback.c:568
        callbacks = <optimized out>
        icl = 0x555555891c10
        cl = 0x555555891c18
        i = <optimized out>
        ostate = <optimized out>
        app = 0x5555558073c0
#3 0x00007ffff7488a0d in HandleActions (w=w@entry=0x555555845800, event=0x7fffffffd6e0, accelWidget=<optimized out>, procs=0x5555558921c8,
    actions=0x5555558381a0, actions@entry=0x555555837cf0, stateTree=<optimized out>) at ../../src/TMstate.c:644
        actionHookList = 0x0
        bindWidget = <optimized out>
        hook = <optimized out>
        next_hook = <optimized out>
        procName = <optimized out>
#4 0x00007ffff7488e75 in HandleSimpleState (w=w@entry=0x555555845800, tmRecPtr=tmRecPtr@entry=0x555555845848, curEventPtr=curEventPtr@entry=0x7fffffffd340)
    at ../../src/TMstate.c:883
        bindData = <optimized out>
        procs = <optimized out>
        accelWidget = <optimized out>
        xlations = 0x5555558382c0
        stateTree = <optimized out>
        contextPtr = 0x555555845858
        i = 1
        actions = 0x555555837cf0
        matchExact = 1 '\001'
        match = <optimized out>
        complexMatchState = 0x0
        currIndex = -2
        typeIndex = 3
        modIndex = 0
        matchTreeIndex = <optimized out>
#5 0x00007ffff7489b3d in _XtTranslateEvent (w=w@entry=0x555555845800, event=event@entry=0x7fffffffd6e0) at ../../src/TMstate.c:1101
        tmRecPtr = 0x555555845848
        curEvent = {xev = 0x7fffffffd6e0, event = {modifiers = 516, modifierMask = 0, lateModifiers = 0x0, eventType = 5, eventCode = 2, eventCodeMask = 0,
            matchEvent = 0x0, standard = 0 '\000'}}
        current_state = <optimized out>
#6 0x00007ffff7461e52 in XtDispatchEventToWidget (widget=widget@entry=0x555555845800, event=event@entry=0x7fffffffd6e0) at ../../src/Event.c:906
--Type <RET> for more, q to quit, c to continue without paging--
        p = <optimized out>
        was_dispatched = 0 '\000'
        call_tm = <optimized out>
        cont_to_disp = 1 '\001'
        mask = <optimized out>
        app = <optimized out>
#7 0x00007ffff746283d in _XtDefaultDispatcher (event=0x7fffffffd6e0) at ../../src/Event.c:1367
        mask = 8
        dspWidget = 0x555555845800
        was_filtered = <optimized out>
        widget = 0x555555845800
        grabType = remap
        pdi = 0x555555815370
        grabList = 0x555555892240
        was_dispatched = 0 '\000'
        app = <optimized out>
#8 0x00007ffff7462919 in XtDispatchEvent (event=event@entry=0x7fffffffd6e0) at ../../src/Event.c:1423
        was_dispatched = <optimized out>
        safe = <optimized out>
        dispatch_level = 1
        starting_count = 0
        pd = <optimized out>
        time = <optimized out>
        dispatch = <optimized out>
        app = 0x5555558073c0
#9 0x00005555555a8bbc in xevents () at ../misc.c:680
        xw = 0x55555583afc0
        screen = 0x55555583b148
        event = {type = 5, xany = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, window = 171966544}, xkey = {type = 5, serial = 719,
            send_event = 0, display = 0x5555558086b0, window = 171966544, root = 348, subwindow = 0, time = 158476707, x = 146, y = 401, x_root = 425,
            y_root = 691, state = 516, keycode = 2, same_screen = 1}, xbutton = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0,
            window = 171966544, root = 348, subwindow = 0, time = 158476707, x = 146, y = 401, x_root = 425, y_root = 691, state = 516, button = 2,
            same_screen = 1}, xmotion = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, window = 171966544, root = 348, subwindow = 0,
            time = 158476707, x = 146, y = 401, x_root = 425, y_root = 691, state = 516, is_hint = 2 '\002', same_screen = 1}, xcrossing = {type = 5,
            serial = 719, send_event = 0, display = 0x5555558086b0, window = 171966544, root = 348, subwindow = 0, time = 158476707, x = 146, y = 401,
            x_root = 425, y_root = 691, mode = 516, detail = 2, same_screen = 1, focus = 0, state = 516}, xfocus = {type = 5, serial = 719, send_event = 0,
            display = 0x5555558086b0, window = 171966544, mode = 348, detail = 0}, xexpose = {type = 5, serial = 719, send_event = 0,
            display = 0x5555558086b0, window = 171966544, x = 348, y = 0, width = 0, height = 0, count = 158476707}, xgraphicsexpose = {type = 5,
            serial = 719, send_event = 0, display = 0x5555558086b0, drawable = 171966544, x = 348, y = 0, width = 0, height = 0, count = 158476707,
            major_code = 0, minor_code = 146}, xnoexpose = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, drawable = 171966544,
            major_code = 348, minor_code = 0}, xvisibility = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, window = 171966544,
--Type <RET> for more, q to quit, c to continue without paging--
            state = 348}, xcreatewindow = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, parent = 171966544, window = 348, x = 0, y = 0,
            width = 158476707, height = 0, border_width = 146, override_redirect = 401}, xdestroywindow = {type = 5, serial = 719, send_event = 0,
            display = 0x5555558086b0, event = 171966544, window = 348}, xunmap = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0,
            event = 171966544, window = 348, from_configure = 0}, xmap = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, event = 171966544,
            window = 348, override_redirect = 0}, xmaprequest = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, parent = 171966544,
            window = 348}, xreparent = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, event = 171966544, window = 348, parent = 0,
            x = 158476707, y = 0, override_redirect = 146}, xconfigure = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, event = 171966544,
            window = 348, x = 0, y = 0, width = 158476707, height = 0, border_width = 146, above = 2967822401961, override_redirect = 516}, xgravity = {
            type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, event = 171966544, window = 348, x = 0, y = 0}, xresizerequest = {type = 5,
            serial = 719, send_event = 0, display = 0x5555558086b0, window = 171966544, width = 348, height = 0}, xconfigurerequest = {type = 5, serial = 719,
            send_event = 0, display = 0x5555558086b0, parent = 171966544, window = 348, x = 0, y = 0, width = 158476707, height = 0, border_width = 146,
            above = 2967822401961, detail = 516, value_mask = 1}, xcirculate = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0,
            event = 171966544, window = 348, place = 0}, xcirculaterequest = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0,
            parent = 171966544, window = 348, place = 0}, xproperty = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, window = 171966544,
            atom = 348, time = 0, state = 158476707}, xselectionclear = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, window = 171966544,
            selection = 348, time = 0}, xselectionrequest = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, owner = 171966544,
            requestor = 348, selection = 0, target = 158476707, property = 1722281885842, time = 2967822401961}, xselection = {type = 5, serial = 719,
            send_event = 0, display = 0x5555558086b0, requestor = 171966544, selection = 348, target = 0, property = 158476707, time = 1722281885842},
          xcolormap = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, window = 171966544, colormap = 348, new = 0, state = 0}, xclient = {
            type = 5, serial = 719, send_event = 0, display = 0x5555558086b0, window = 171966544, message_type = 348, format = 0, data = {
              b = "\243)r\t\000\000\000\000\222\000\000\000\221\001\000\000\251\001\000", s = {10659, 2418, 0, 0, 146, 0, 401, 0, 425, 0}, l = {158476707,
                1722281885842, 2967822401961, 8589935108, 1}}}, xmapping = {type = 5, serial = 719, send_event = 0, display = 0x5555558086b0,
            window = 171966544, request = 348, first_keycode = 0, count = 0}, xerror = {type = 5, display = 0x2cf, resourceid = 93823560581120,
            serial = 93824995067568, error_code = 80 'P', request_code = 0 '\000', minor_code = 64 '@'}, xkeymap = {type = 5, serial = 719, send_event = 0,
            display = 0x5555558086b0, window = 171966544,
            key_vector = "\\\001", '\000' <repeats 14 times>, "\243)r\t\000\000\000\000\222\000\000\000\221\001\000"}, xgeneric = {type = 5, serial = 719,
            send_event = 0, display = 0x5555558086b0, extension = 171966544, evtype = 0}, xcookie = {type = 5, serial = 719, send_event = 0,
            display = 0x5555558086b0, extension = 171966544, evtype = 0, cookie = 348, data = 0x0}, pad = {140733193388037, 719, 93823560581120,
            93824995067568, 171966544, 348, 0, 158476707, 1722281885842, 2967822401961, 8589935108, 1, 4398046511620, 0 <repeats 11 times>}}
        input_mask = <optimized out>
#10 0x000055555558f391 in in_put (xw=0x55555583afc0) at ../charproc.c:4912
        size = <optimized out>
        time_select = <optimized out>
        screen = 0x55555583b148
        i = <optimized out>
        update = 0
        tick = 37500
        select_mask = {fds_bits = {8, 0 <repeats 15 times>}}
        write_mask = {fds_bits = {0 <repeats 16 times>}}
        screen = <optimized out>
        i = <optimized out>
--Type <RET> for more, q to quit, c to continue without paging--
        update = <optimized out>
        select_timeout = {tv_sec = 0, tv_usec = 0}
        tick = <optimized out>
        size = <optimized out>
        time_select = <optimized out>
        __d = <optimized out>
        __d = <optimized out>
        __i__ = <optimized out>
        __d = <optimized out>
        __i__ = <optimized out>
        __d0 = <optimized out>
        __d1 = <optimized out>
        __d = <optimized out>
        __d = <optimized out>
        __d = <optimized out>
#11 doinput () at ../charproc.c:4927
        screen = 0x55555583b148
        screen = <optimized out>
#12 VTparse (xw=xw@entry=0x55555583afc0) at ../charproc.c:4451
No locals.
#13 0x000055555558f9c2 in VTRun (xw=0x55555583afc0) at ../charproc.c:7127
        screen = 0x55555583b148
#14 0x0000555555577e52 in main (argc=<optimized out>, argv=<optimized out>) at ../main.c:2782
        tblFullscreen = {{name = 0x5555555c7663 "Always", code = 2}, {name = 0x5555555c765d "Never", code = 3}}
        form_top = 0x55555582b750
        menu_top = 0x55555582b750
        menu_high = 0
        screen = <optimized out>
        mode = <optimized out>
        my_class = 0x555555804260 "XTerm"
        line_speed = 15
        winToEmbedInto = 0
(gdb) quit
A debugging session is active.

 Inferior 1 [process 13988] will be killed.

Quit anyway? (y or n) y

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: xterm 330-1ubuntu3
ProcVersionSignature: Ubuntu 4.18.0-14.15-generic 4.18.20
Uname: Linux 4.18.0-14-generic x86_64
.tmp.unity_support_test.0:

ApportVersion: 2.20.10-0ubuntu13.2
Architecture: amd64
CompositorRunning: compiz
CompositorUnredirectDriverBlacklist: '(nouveau|Intel).*Mesa 8.0'
CompositorUnredirectFSW: true
CurrentDesktop: Unity:Unity7:ubuntu
Date: Wed Mar 20 17:32:21 2019
DistUpgraded: Fresh install
DistroCodename: cosmic
DistroVariant: ubuntu
DkmsStatus:
 ddcci, 0.3.1, 4.18.0-12-generic, x86_64: installed
 ddcci, 0.3.1, 4.18.0-14-generic, x86_64: installed
 ddcci, 0.3.1, 4.18.0-8-generic, x86_64: installed
GraphicsCard:
 Intel Corporation HD Graphics 5500 [8086:1616] (rev 09) (prog-if 00 [VGA controller])
   Subsystem: Lenovo HD Graphics 5500 [17aa:2226]
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20180105.1)
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.18.0-14-generic root=/dev/mapper/ubuntu--vg-root ro net.ifnames=0 biosdevname=0 quiet splash vt.handoff=1
SourcePackage: xterm
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.vendor: LENOVO
dmi.board.asset.tag: Not Available
dmi.board.vendor: LENOVO
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: None
dmi.product.family: ThinkPad X250
dmi.product.version: ThinkPad X250
dmi.sys.vendor: LENOVO
version.compiz: compiz 1:0.9.13.1+18.10.20180930-0ubuntu1
version.libdrm2: libdrm2 2.4.97-1
version.libgl1-mesa-dri: libgl1-mesa-dri 18.3.4-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 18.2.2-0ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.20.3-1ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev 1:2.10.6-1
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:18.1.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20171229-1ubuntu1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.15-3

Revision history for this message
Andrej Shadura (andrew.sh) wrote :
description: updated
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.