Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2019 05:36:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 238840] 'top' segmentation fault on terminal resize
Message-ID:  <bug-238840-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238840

            Bug ID: 238840
           Summary: 'top' segmentation fault on terminal resize
           Product: Base System
           Version: 12.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: igor-fbsdbugs@grinchenko.org

reproducible in any 12.0-RELEASE. (11.2-RELEASE and older do not seem to ha=
ve
the issue)

- run xterm or tmux, resize it to 75 or 76 or 77 columns (tried a few other
sizes, seems to segfault only with these three)
- run top, let it update 1-2 times
- resize terminal wide (resizing narrow won't cause the segfault).

for completeness here is the backtrace (not too useful without debug symbol=
s,
but still)

# lldb -c top.core /usr/bin/top
(lldb) target create "/usr/bin/top" --core "top.core"
Core file '/root/top.core' (x86_64) was loaded.
(lldb) bt
* thread #1, name =3D 'top', stop reason =3D signal SIGSEGV
  * frame #0: 0x00000008004d87dd libc.so.7`memcpy + 205
    frame #1: 0x00000008004d65cd
libc.so.7`___lldb_unnamed_symbol1635$$libc.so.7 + 397
    frame #2: 0x0000000800470a0c
libc.so.7`___lldb_unnamed_symbol1024$$libc.so.7 + 14044
    frame #3: 0x00000008003ddd0f libc.so.7`vsnprintf + 287
    frame #4: 0x000000080031d81a libsbuf.so.6`sbuf_vprintf + 138
    frame #5: 0x000000080031db0d libsbuf.so.6`sbuf_printf + 141
    frame #6: 0x000000000020af47 top`___lldb_unnamed_symbol54$$top + 1319
    frame #7: 0x000000000020e428 top`___lldb_unnamed_symbol77$$top + 2296
    frame #8: 0x000000000020611b top`___lldb_unnamed_symbol1$$top + 283
(lldb)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238840-227>