[Bug 227552] w, uptime i386 cordeump

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

            Bug ID: 227552
           Summary: w, uptime i386 cordeump
           Product: Base System
           Version: 11.1-STABLE
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: [hidden email]
          Reporter: [hidden email]

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

--- Comment #1 from [hidden email] <[hidden email]> ---
w and uptime are broken on i386

gdb trace:
(gdb) r
Starting program: /usr/obj/usr/src/usr.bin/w/w.full

Program received signal SIGSEGV, Segmentation fault.
ifree (tsd=0x28000000) at arena.h:799
799             return (*mapbitsp);
Current language:  auto; currently minimal
(gdb) where
#0  ifree (tsd=0x28000000) at arena.h:799
#1  0x28155316 in __free (ptr=0x280601ef) at tsd.h:716
#2  0x28095b07 in xo_do_emit_fields ()
    at /usr/src/contrib/libxo/libxo/libxo.c:6419
#3  0x28093a1c in xo_do_emit (xop=<value optimized out>,
    flags=<value optimized out>, fmt=0x804ad4d "{:time-of-day/%s} ")
    at /usr/src/contrib/libxo/libxo/libxo.c:6470
#4  0x28093b61 in xo_emit (fmt=0x804ad4d "{:time-of-day/%s} ")
    at /usr/src/contrib/libxo/libxo/libxo.c:6541
#5  0x08049f50 in main (argc=<value optimized out>, argv=<value optimized out>)
    at /usr/src/usr.bin/w/w.c:475
(gdb)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

--- Comment #2 from [hidden email] <[hidden email]> ---
What I can see is that only on my i386 it coredumps.

Not on my amd64

Last Changed Rev: 331722
Last Changed Date: 2018-03-29 04:50:57 +0200 (Thu, 29 Mar 2018)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

--- Comment #3 from [hidden email] <[hidden email]> ---
currently tried a 11.2-PRERELEASE Memstick

https://download.freebsd.org/ftp/snapshots/i386/i386/ISO-IMAGES/11.2/FreeBSD-11.2-PRERELEASE-i386-20180420-r332802-memstick.img.xz

And, also here w and uptime are broken.

JUST FYI

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

Ian Pallfreeman <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #4 from Ian Pallfreeman <[hidden email]> ---
Nothing useful to add to diagnosis, just "bump" and "me too".

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

--- Comment #5 from Ian Pallfreeman <[hidden email]> ---
Nothing useful to add to diagnosis, just "bump" and "me too".

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

[hidden email] <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Affects Only Me             |Affects Some People

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

--- Comment #6 from [hidden email] <[hidden email]> ---
its still there...

look:

Starting program: /usr/obj/usr/src/usr.bin/w/w.full

Program received signal SIGSEGV, Segmentation fault.
ifree (tsd=0x28000000) at arena.h:799
799             return (*mapbitsp);
Current language:  auto; currently minimal
(gdb) bt
#0  ifree (tsd=0x28000000) at arena.h:799
#1  0x28155506 in __free (ptr=0x280601ef) at tsd.h:716
#2  0x28095b07 in xo_do_emit_fields()
    at /usr/src/contrib/libxo/libxo/libxo.c:6419
#3  0x28093a1c in xo_do_emit (xop=<value optimized out>,
    flags=<value optimized out>, fmt=0x804ad4d "{:time-of-day/%s} ")
    at /usr/src/contrib/libxo/libxo/libxo.c:6470
#4  0x28093b61 in xo_emit (fmt=0x804ad4d "{:time-of-day/%s} ")
    at /usr/src/contrib/libxo/libxo/libxo.c:6541
#5  0x08049f50 in main (argc=<value optimized out>, argv=<value optimized out>)
    at /usr/src/usr.bin/w/w.c:475


and xo_do_emit_fields is from libxo, or ?

and w.c is so complex meanwile, not only because of libxo.

So what.....

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

Oleksandr Tymoshenko <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #7 from Oleksandr Tymoshenko <[hidden email]> ---
Confirmed. Looks like the problem is in libxo. Either xo_default_handle is not
properly zero-initialized or there is a memory corruption

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

--- Comment #8 from Oleksandr Tymoshenko <[hidden email]> ---
(In reply to Oleksandr Tymoshenko from comment #7)

Not in libxo itself, there were no recent changes there but the bug manifests
itself in libxo

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 227552] w, uptime i386 cordeump

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227552

--- Comment #9 from Oleksandr Tymoshenko <[hidden email]> ---
xo_default_handle is passed as an argument to xo_init_handle so I added a
breakpoint and checked its content. Since it's static it's supposed to be
zero-initialized but instead there are a lot of garbage values.
xo_default_handle is thread-local variable so it might be a contributing
factor.

root@freebsd:/home/gonzo # /usr/local/bin/gdb w
GNU gdb (GDB) 8.1 [GDB v8.1 for FreeBSD]
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 "i386-portbld-freebsd11.1".
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 w...Reading symbols from
/usr/lib/debug//usr/bin/w.debug...done.
done.
(gdb) break xo_init_handle
Function "xo_init_handle" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (xo_init_handle) pending.
(gdb) run
Starting program: /usr/bin/w

Breakpoint 1, xo_init_handle (xop=0x2806aff0) at
/usr/src/contrib/libxo/libxo/libxo.c:640
640         xop->xo_opaque = stdout;
(gdb) p *xop
$1 = {xo_flags = 0, xo_iflags = 2883994737386192896, xo_style = 45072,
xo_indent = 10246, xo_indent_by = 41472, xo_write = 0x1,
  xo_close = 0x280601ef <__pthread_cleanup_push_imp_int+31>, xo_flush =
0x2806b020, xo_formatter = 0x2806a400, xo_checkpointer = 0x5d,
  xo_opaque = 0x280601ef <__pthread_cleanup_push_imp_int+31>, xo_data =
{xb_bufp = 0x2806b030 "@\260\006(", xb_curp = 0x2806a600 "z\270P\325\001",
xb_size = 161},
  xo_fmt = {xb_bufp = 0x280601ef <__pthread_cleanup_push_imp_int+31>
"\377\220\344\001", xb_curp = 0x2806b040 "", xb_size = 671524864}, xo_attrs = {
    xb_bufp = 0x147 <error: Cannot access memory at address 0x147>, xb_curp =
0x280601ef <__pthread_cleanup_push_imp_int+31> "\377\220\344\001", xb_size =
0},
  xo_predicate = {xb_bufp = 0x2806aa00 "z\270P\325\001", xb_curp = 0x164
<error: Cannot access memory at address 0x164>, xb_size = 671482351},
  xo_stack = 0x2806c000, xo_depth = 0, xo_stack_size = 671506032, xo_info =
0x280601ef <__pthread_cleanup_push_imp_int+31>, xo_info_count = 671527024,
  xo_vap = 0x2806ac00 "z\270P\325\001", xo_leading_xpath = 0x421 <error: Cannot
access memory at address 0x421>, xo_mbstate = {
    __mbstate8 =
"\357\001\006(\000\000\000\000\000\252\006(-\004\000\000\357\001\006(\000\000\000\000\000\252\006(\377\001\000\000\357\001\006(\240\260\006(\000\250\006(f\t\000\000\357\001\006(\000\000\000\000\000\252\006(s\t\000\000\357\001\006(\000\000\000\000\000\252\006(\030\n\000\000\357\001\006(\000\000\000\000\000\252\006(q\005\000\000\357\001\006(\340\260\006(\000\240\006(\000\000\000\000\357\001\006(\360\260\006(\000\242\006(\000\000\000",
_mbstateL = 671482351},
  xo_anchor_offset = 671482351, xo_anchor_columns = 671527168,
xo_anchor_min_width = 671523840, xo_units_offset = 0, xo_columns = 671482351,
  xo_color_map_fg = "\020\261\006(\000\246\006(", xo_color_map_bg =
"\000\000\000\357\001\006( \261", xo_colors = {xoc_effects = 6 '\006',
xoc_col_fg = 40 '(',
    xoc_col_bg = 0 '\000'}, xo_color_buf = {xb_bufp = 0x0, xb_curp = 0x280601ef
<__pthread_cleanup_push_imp_int+31> "\377\220\344\001", xb_size = 671527216},
  xo_version = 0x2806aa00 "z\270P\325\001", xo_errno = 0, xo_gt_domain =
0x280601ef <__pthread_cleanup_push_imp_int+31> "\377\220\344\001", xo_encoder =
0x0,
  xo_private = 0x2806ac00}
(gdb)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[hidden email]"