On Fri, Aug 09, 2024 at 10:22:11AM +0200, Vincent Lefevre wrote: > Package: xterm > Version: 393-1 > Severity: important > > I got a segmentation fault when clicking on the right button. > > Core was generated by `/usr/bin/xterm -xrm *printFileOnXError: > /home/vinc17/private/xterm-saved-172316'. > Program terminated with signal SIGSEGV, Segmentation fault. > #0 class_of (cell=0x7fb5479b9da8, ld=0x0) at ../button.c:3606
hmm - the functions on the stack trace haven't changed recently (except of course for the large case-statements where again nothing on this stack appears to have changed recently, e.g,. in the past year). There were some recent fixes/updates in wcwidth.c, which should not make a difference, unless there's some sign-extension or similar bug. Is this something that you might reproduce, to provide test-data? > The full backtrace: > > Thread 1 (Thread 0x7fb547a6a280 (LWP 5045)): > #0 class_of (cell=0x7fb5479b9da8, ld=0x0) at ../button.c:3606 > temp = {row = <optimized out>, col = 0} > result = 0 > temp = <optimized out> > result = <optimized out> > #1 ComputeSelect (xw=xw@entry=0x7fb5479ad010, extend=extend@entry=0, > normal=1, endc=0x7fb5479b9dd8, startc=0x7fb5479b9dd0) at ../button.c:4160 > mark = <optimized out> > screen = 0x7fb5479ad1d0 > cclass = <optimized out> > first = {row = -260, col = 0} > last = <optimized out> > ignored = 0 '\000' > ld = {startSel = 0x0, endSel = 0x559b94310190} > ltmp = <optimized out> > #2 0x0000559b7d2adf6d in ExtendExtend (xw=xw@entry=0x7fb5479ad010, > cell=cell@entry=0x7fffa94a9be8) at ../button.c:3319 > screen = 0x7fb5479ad1d0 > coord = <optimized out> > #3 0x0000559b7d2ae065 in EndExtend (xw=xw@entry=0x7fb5479ad010, > event=event@entry=0x7fffa94aa0a0, params=params@entry=0x559b941ab410, > num_params=2, use_cursor_loc=use_cursor_loc@entry=0) at ../button.c:3101 > cell = {row = 19, col = 10} > screen = 0x7fb5479ad1d0 > #4 0x0000559b7d2afcf6 in do_select_end (num_params=<optimized out>, > use_cursor_loc=0, params=0x559b941ab410, event=0x7fffa94aa0a0, > xw=0x7fb5479ad010) at ../button.c:1573 > screen = <optimized out> > screen = <optimized out> > #5 do_select_end (use_cursor_loc=0, num_params=0x559b941ab3b0, > params=0x559b941ab410, event=0x7fffa94aa0a0, xw=0x7fb5479ad010) at > ../button.c:1553 > screen = 0x7fb5479ad1d0 > screen = <optimized out> > #6 HandleSelectEnd (w=<optimized out>, event=0x7fffa94aa0a0, > params=0x559b941ab410, num_params=0x559b941ab3b0) at ../button.c:1591 > xw = 0x7fb5479ad010 > #7 0x00007fb548071d1f in HandleActions (w=w@entry=0x7fb5479ad010, > event=0x7fffa94aa0a0, stateTree=0x559b941abf80, accelWidget=<optimized out>, > procs=0x559b941efe58, actions=actions@entry=0x559b941ab3a0) at > ../../src/TMstate.c:653 > actionHookList = 0x0 > bindWidget = <optimized out> > #8 0x00007fb5480725e1 in HandleSimpleState (w=w@entry=0x7fb5479ad010, > tmRecPtr=tmRecPtr@entry=0x7fb5479ad058, > curEventPtr=curEventPtr@entry=0x7fffa94a9df0) at ../../src/TMstate.c:878 > bindData = <optimized out> > procs = <optimized out> > accelWidget = <optimized out> > xlations = 0x559b941c83f0 > contextPtr = 0x7fb5479ad068 > i = <optimized out> > actions = <optimized out> > matchExact = <optimized out> > match = <optimized out> > complexMatchState = <optimized out> > typeIndex = <optimized out> > modIndex = <optimized out> > matchTreeIndex = <optimized out> > #9 0x00007fb548073508 in _XtTranslateEvent (w=w@entry=0x7fb5479ad010, > event=event@entry=0x7fffa94aa0a0) at ../../src/TMstate.c:1076 > tmRecPtr = <optimized out> > curEvent = {xev = 0x7fffa94aa0a0, event = {modifiers = 3072, > modifierMask = 0, lateModifiers = 0x0, eventType = 5, eventCode = 4, > eventCodeMask = 0, matchEvent = 0x0, standard = 0 '\000'}} > current_state = <optimized out> > #10 0x00007fb54804aa0b in XtDispatchEventToWidget > (widget=widget@entry=0x7fb5479ad010, event=event@entry=0x7fffa94aa0a0) at > ../../src/Event.c:932 > p = <optimized out> > was_dispatched = <optimized out> > call_tm = <optimized out> > cont_to_disp = 1 '\001' > mask = <optimized out> > app = <optimized out> > #11 0x00007fb54804b152 in _XtDefaultDispatcher (event=0x7fffa94aa0a0) at > ../../src/Event.c:1406 > mask = 8 > dspWidget = 0x7fb5479ad010 > was_filtered = <optimized out> > widget = 0x7fb5479ad010 > grabType = remap > pdi = 0x559b9418a640 > grabList = 0x0 > was_dispatched = 0 '\000' > app = <optimized out> > #12 0x00007fb54804b2b1 in XtDispatchEvent (event=event@entry=0x7fffa94aa0a0) > at ../../src/Event.c:1480 > was_dispatched = <optimized out> > safe = <optimized out> > dispatch_level = 1 > starting_count = 0 > pd = <optimized out> > time = <optimized out> > dispatch = <optimized out> > app = 0x559b941824e0 > #13 0x0000559b7d2eadf7 in mergeButtonEvents (target=<optimized out>) at > ../misc.c:534 > next_event = {type = 5, xany = {type = 5, serial = 26860, send_event > = 0, display = 0x559b941837d0, window = 35651612}, xkey = {type = 5, serial = > 26860, send_event = 0, display = 0x559b941837d0, window = 35651612, root = > 1662, subwindow = 0, time = 22007178, x = 131, y = 431, x_root = 350, y_root > = 521, state = 3072, keycode = 4, same_screen = 1}, xbutton = {type = 5, > serial = 26860, send_event = 0, display = 0x559b941837d0, window = 35651612, > root = 1662, subwindow = 0, time = 22007178, x = 131, y = 431, x_root = 350, > y_root = 521, state = 3072, button = 4, same_screen = 1}, xmotion = {type = > 5, serial = 26860, send_event = 0, display = 0x559b941837d0, window = > 35651612, root = 1662, subwindow = 0, time = 22007178, x = 131, y = 431, > x_root = 350, y_root = 521, state = 3072, is_hint = 4 '\004', same_screen = > 1}, xcrossing = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, window = 35651612, root = 1662, subwindow = 0, time = > 22007178, x = 131, y = 431, x_root = 350, y_root = 521, mode = 3072, detail = > 4, same_screen = 1, focus = 1, state = 0}, xfocus = {type = 5, serial = > 26860, send_event = 0, display = 0x559b941837d0, window = 35651612, mode = > 1662, detail = 0}, xexpose = {type = 5, serial = 26860, send_event = 0, > display = 0x559b941837d0, window = 35651612, x = 1662, y = 0, width = 0, > height = 0, count = 22007178}, xgraphicsexpose = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, drawable = 35651612, x = 1662, y = > 0, width = 0, height = 0, count = 22007178, major_code = 0, minor_code = > 131}, xnoexpose = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, drawable = 35651612, major_code = 1662, minor_code = 0}, > xvisibility = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, window = 35651612, state = 1662}, xcreatewindow = {type = 5, > serial = 26860, send_event = 0, display = 0x559b941837d0, parent = 35651612, > window = 1662, x = 0, y = 0, width = 22007178, height = 0, border_width = > 131, override_redirect = 431}, xdestroywindow = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, event = 35651612, window = 1662}, > xunmap = {type = 5, serial = 26860, send_event = 0, display = 0x559b941837d0, > event = 35651612, window = 1662, from_configure = 0}, xmap = {type = 5, > serial = 26860, send_event = 0, display = 0x559b941837d0, event = 35651612, > window = 1662, override_redirect = 0}, xmaprequest = {type = 5, serial = > 26860, send_event = 0, display = 0x559b941837d0, parent = 35651612, window = > 1662}, xreparent = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, event = 35651612, window = 1662, parent = 0, x = 22007178, y > = 0, override_redirect = 131}, xconfigure = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, event = 35651612, window = 1662, x > = 0, y = 0, width = 22007178, height = 0, border_width = 131, above = > 2237677961566, override_redirect = 3072}, xgravity = {type = 5, serial = > 26860, send_event = 0, display = 0x559b941837d0, event = 35651612, window = > 1662, x = 0, y = 0}, xresizerequest = {type = 5, serial = 26860, send_event = > 0, display = 0x559b941837d0, window = 35651612, width = 1662, height = 0}, > xconfigurerequest = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, parent = 35651612, window = 1662, x = 0, y = 0, width = > 22007178, height = 0, border_width = 131, above = 2237677961566, detail = > 3072, value_mask = 4294967297}, xcirculate = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, event = 35651612, window = 1662, > place = 0}, xcirculaterequest = {type = 5, serial = 26860, send_event = 0, > display = 0x559b941837d0, parent = 35651612, window = 1662, place = 0}, > xproperty = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, window = 35651612, atom = 1662, time = 0, state = 22007178}, > xselectionclear = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, window = 35651612, selection = 1662, time = 0}, > xselectionrequest = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, owner = 35651612, requestor = 1662, selection = 0, target = > 22007178, property = 1851130904707, time = 2237677961566}, xselection = {type > = 5, serial = 26860, send_event = 0, display = 0x559b941837d0, requestor = > 35651612, selection = 1662, target = 0, property = 22007178, time = > 1851130904707}, xcolormap = {type = 5, serial = 26860, send_event = 0, > display = 0x559b941837d0, window = 35651612, colormap = 1662, new = 0, state > = 0}, xclient = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, window = 35651612, message_type = 1662, format = 0, data = {b > = "\212\315O\001\000\000\000\000\203\000\000\000\257\001\000\000^\001\000", s > = {-12918, 335, 0, 0, 131, 0, 431, 0, 350, 0}, l = {22007178, 1851130904707, > 2237677961566, 17179872256, 4294967297}}}, xmapping = {type = 5, serial = > 26860, send_event = 0, display = 0x559b941837d0, window = 35651612, request = > 1662, first_keycode = 0, count = 0}, xerror = {type = 5, display = 0x68ec, > resourceid = 0, serial = 94126692906960, error_code = 28 '\034', request_code > = 0 '\000', minor_code = 32 ' '}, xkeymap = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, window = 35651612, key_vector = > "~\006", '\000' <repeats 14 times>, > "\212\315O\001\000\000\000\000\203\000\000\000\257\001\000"}, xgeneric = > {type = 5, serial = 26860, send_event = 0, display = 0x559b941837d0, > extension = 35651612, evtype = 0}, xcookie = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, extension = 35651612, evtype = 0, > cookie = 1662, data = 0x0}, pad = {5, 26860, 0, 94126692906960, 35651612, > 1662, 0, 22007178, 1851130904707, 2237677961566, 17179872256, 4294967297, 0 > <repeats 12 times>}} > p = <optimized out> > next_event = <optimized out> > p = <optimized out> > merge_this = <optimized out> > q = <optimized out> > #14 xtermAppPending () at ../misc.c:563 > result = <optimized out> > this_event = {type = 5, xany = {type = 5, serial = 26860, send_event > = 0, display = 0x559b941837d0, window = 35651612}, xkey = {type = 5, serial = > 26860, send_event = 0, display = 0x559b941837d0, window = 35651612, root = > 1662, subwindow = 0, time = 22007178, x = 131, y = 431, x_root = 350, y_root > = 521, state = 3072, keycode = 4, same_screen = 1}, xbutton = {type = 5, > serial = 26860, send_event = 0, display = 0x559b941837d0, window = 35651612, > root = 1662, subwindow = 0, time = 22007178, x = 131, y = 431, x_root = 350, > y_root = 521, state = 3072, button = 4, same_screen = 1}, xmotion = {type = > 5, serial = 26860, send_event = 0, display = 0x559b941837d0, window = > 35651612, root = 1662, subwindow = 0, time = 22007178, x = 131, y = 431, > x_root = 350, y_root = 521, state = 3072, is_hint = 4 '\004', same_screen = > 1}, xcrossing = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, window = 35651612, root = 1662, subwindow = 0, time = > 22007178, x = 131, y = 431, x_root = 350, y_root = 521, mode = 3072, detail = > 4, same_screen = 1, focus = 1, state = 0}, xfocus = {type = 5, serial = > 26860, send_event = 0, display = 0x559b941837d0, window = 35651612, mode = > 1662, detail = 0}, xexpose = {type = 5, serial = 26860, send_event = 0, > display = 0x559b941837d0, window = 35651612, x = 1662, y = 0, width = 0, > height = 0, count = 22007178}, xgraphicsexpose = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, drawable = 35651612, x = 1662, y = > 0, width = 0, height = 0, count = 22007178, major_code = 0, minor_code = > 131}, xnoexpose = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, drawable = 35651612, major_code = 1662, minor_code = 0}, > xvisibility = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, window = 35651612, state = 1662}, xcreatewindow = {type = 5, > serial = 26860, send_event = 0, display = 0x559b941837d0, parent = 35651612, > window = 1662, x = 0, y = 0, width = 22007178, height = 0, border_width = > 131, override_redirect = 431}, xdestroywindow = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, event = 35651612, window = 1662}, > xunmap = {type = 5, serial = 26860, send_event = 0, display = 0x559b941837d0, > event = 35651612, window = 1662, from_configure = 0}, xmap = {type = 5, > serial = 26860, send_event = 0, display = 0x559b941837d0, event = 35651612, > window = 1662, override_redirect = 0}, xmaprequest = {type = 5, serial = > 26860, send_event = 0, display = 0x559b941837d0, parent = 35651612, window = > 1662}, xreparent = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, event = 35651612, window = 1662, parent = 0, x = 22007178, y > = 0, override_redirect = 131}, xconfigure = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, event = 35651612, window = 1662, x > = 0, y = 0, width = 22007178, height = 0, border_width = 131, above = > 2237677961566, override_redirect = 3072}, xgravity = {type = 5, serial = > 26860, send_event = 0, display = 0x559b941837d0, event = 35651612, window = > 1662, x = 0, y = 0}, xresizerequest = {type = 5, serial = 26860, send_event = > 0, display = 0x559b941837d0, window = 35651612, width = 1662, height = 0}, > xconfigurerequest = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, parent = 35651612, window = 1662, x = 0, y = 0, width = > 22007178, height = 0, border_width = 131, above = 2237677961566, detail = > 3072, value_mask = 4294967297}, xcirculate = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, event = 35651612, window = 1662, > place = 0}, xcirculaterequest = {type = 5, serial = 26860, send_event = 0, > display = 0x559b941837d0, parent = 35651612, window = 1662, place = 0}, > xproperty = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, window = 35651612, atom = 1662, time = 0, state = 22007178}, > xselectionclear = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, window = 35651612, selection = 1662, time = 0}, > xselectionrequest = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, owner = 35651612, requestor = 1662, selection = 0, target = > 22007178, property = 1851130904707, time = 2237677961566}, xselection = {type > = 5, serial = 26860, send_event = 0, display = 0x559b941837d0, requestor = > 35651612, selection = 1662, target = 0, property = 22007178, time = > 1851130904707}, xcolormap = {type = 5, serial = 26860, send_event = 0, > display = 0x559b941837d0, window = 35651612, colormap = 1662, new = 0, state > = 0}, xclient = {type = 5, serial = 26860, send_event = 0, display = > 0x559b941837d0, window = 35651612, message_type = 1662, format = 0, data = {b > = "\212\315O\001\000\000\000\000\203\000\000\000\257\001\000\000^\001\000", s > = {-12918, 335, 0, 0, 131, 0, 431, 0, 350, 0}, l = {22007178, 1851130904707, > 2237677961566, 17179872256, 4294967297}}}, xmapping = {type = 5, serial = > 26860, send_event = 0, display = 0x559b941837d0, window = 35651612, request = > 1662, first_keycode = 0, count = 0}, xerror = {type = 5, display = 0x68ec, > resourceid = 0, serial = 94126692906960, error_code = 28 '\034', request_code > = 0 '\000', minor_code = 32 ' '}, xkeymap = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, window = 35651612, key_vector = > "~\006", '\000' <repeats 14 times>, > "\212\315O\001\000\000\000\000\203\000\000\000\257\001\000"}, xgeneric = > {type = 5, serial = 26860, send_event = 0, display = 0x559b941837d0, > extension = 35651612, evtype = 0}, xcookie = {type = 5, serial = 26860, > send_event = 0, display = 0x559b941837d0, extension = 35651612, evtype = 0, > cookie = 1662, data = 0x0}, pad = {5, 26860, 0, 94126692906960, 35651612, > 1662, 0, 22007178, 1851130904707, 2237677961566, 17179872256, 4294967297, 0 > <repeats 12 times>}} > found = 1 '\001' > #15 0x0000559b7d2c55df in in_put (xw=<optimized out>) at ../charproc.c:6680 > size = <optimized out> > time_select = <optimized out> > screen = <optimized out> > i = <optimized out> > should_wait = 1 > my_timeout = {tv_sec = 0, tv_usec = 0} > update = 0 > select_mask = {fds_bits = {8, 0 <repeats 15 times>}} > write_mask = {fds_bits = {0 <repeats 16 times>}} > screen = <optimized out> > i = <optimized out> > update = <optimized out> > should_wait = <optimized out> > my_timeout = <optimized out> > size = <optimized out> > time_select = <optimized out> > __d = <optimized out> > __d = <optimized out> > __i__ = <optimized out> > __d = <optimized out> > __i__ = <optimized out> > __i = <optimized out> > __arr = <optimized out> > try_timeout = <optimized out> > tick = <optimized out> > try_timeout = <optimized out> > __d = <optimized out> > __d = <optimized out> > __d = <optimized out> > #16 doinput (xw=0x7fb5479ad010) at ../charproc.c:6697 > screen = 0x7fb5479ad1d0 > screen = <optimized out> > #17 VTparse (xw=xw@entry=0x7fb5479ad010) at ../charproc.c:6169 > keep_running = <optimized out> > #18 0x0000559b7d2c5c59 in VTRun (xw=0x7fb5479ad010) at ../charproc.c:9348 > screen = 0x7fb5479ad1d0 > #19 0x0000559b7d2a6a8a in main (argc=<optimized out>, argv=<optimized out>) > at ../main.c:3098 > tblFullscreen = {{name = 0x559b7d3155ba "Always", code = 2}, {name = > 0x559b7d3155c1 "Never", code = 3}} > form_top = 0x559b941ac590 > menu_top = 0x559b941ac590 > menu_high = 0 > screen = <optimized out> > mode = <optimized out> > my_class = 0x559b9417f330 "XTerm" > line_speed = 15 > winToEmbedInto = 0 > > -- System Information: > Debian Release: trixie/sid > APT prefers unstable-debug > APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, > 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), > (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') > Architecture: amd64 (x86_64) > > Kernel: Linux 6.11.0-rc2+ (SMP w/16 CPU threads; PREEMPT) > Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set > Shell: /bin/sh linked to /usr/bin/dash > Init: systemd (via /run/systemd/system) > LSM: AppArmor: enabled > > Versions of packages xterm depends on: > ii libc6 2.39-6 > ii libfontconfig1 2.15.0-1.1 > ii libfreetype6 2.13.2+dfsg-1+b4 > ii libice6 2:1.0.10-1+b1 > ii libtinfo6 6.5-2 > ii libutempter0 1.2.1-3+b1 > ii libx11-6 2:1.8.7-1+b1 > ii libxaw7 2:1.0.14-1+b2 > ii libxext6 2:1.3.4-1+b1 > ii libxft2 2.3.6-1+b1 > ii libxinerama1 2:1.1.4-3+b1 > ii libxmu6 2:1.1.3-3+b2 > ii libxpm4 1:3.5.17-1+b1 > ii libxt6t64 1:1.2.1-1.2 > ii xbitmaps 1.1.1-2.2 > > Versions of packages xterm recommends: > ii luit [luit] 2.0.20221028-1 > ii x11-utils 7.7+6+b1 > > Versions of packages xterm suggests: > pn xfonts-cyrillic <none> > > -- no debconf information > > -- > Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/> > 100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/> > Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) > -- Thomas E. Dickey <dic...@invisible-island.net> https://invisible-island.net
signature.asc
Description: PGP signature