From owner-freebsd-stable@freebsd.org Tue May 15 18:22:45 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9DB4EEDDA9 for ; Tue, 15 May 2018 18:22:44 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F68470261 for ; Tue, 15 May 2018 18:22:44 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id w4FIMh8d073712 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 15 May 2018 14:22:43 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.net [192.168.43.26]) by lava.sentex.ca (8.15.2/8.15.2) with ESMTP id w4FIMfDg033784 for ; Tue, 15 May 2018 14:22:41 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: uptime / w coredumping on RELENG11 (i386 only) From: Mike Tancsa To: FreeBSD-STABLE Mailing List References: <990862af-7bee-0d4b-c01f-d7fc8e5b6cfe@sentex.net> Openpgp: preference=signencrypt Autocrypt: addr=mike@sentex.net; prefer-encrypt=mutual; keydata= xsBNBEzcA24BCACpwI/iqOrs0GfQSfhA1v6Z8AcXVeGsRyKEKUpxoOYxXWc2z3vndbYlIP6E YJeifzKhS/9E+VjhhICaepLHfw865TDTUPr5D0Ed+edSsKjlnDtb6hfNJC00P7eoiuvi85TW F/gAxRY269A5d856bYrzLbkWp2lKUR3Bg6NnOR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ntuRx6gCpzfPXfn6SDIfTItDxTh1hrdRVP5QNGGF5wus N4EMwXouskva1hbFX3Pv72csYSxxEJXjW16oV8WK4KjKXoskLg2RyRP4uXqL7Mp2ezNtVY5F 9nu3fj4ydpHCSaqKy5xd70A8D50PfZsFgkrsa5gdQhPiGGEdxhq/XSeAAnZ4uVLJKarH+mj5 MEhgZPEBWkGrbDZpezl9qbFcUem/uT9x8FYT/JIztMVh9qDcdP5tzANW5J7nvgXjska+VFGY ryZK4SPDczh74mn6GI/+RBi7OUzXXPgpPBrhS5FByjwCqjjsSpTjTds+NGIY Organization: Sentex Communications Message-ID: <955d6681-0048-5e09-cca6-4691b05bf48f@sentex.net> Date: Tue, 15 May 2018 14:22:41 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <990862af-7bee-0d4b-c01f-d7fc8e5b6cfe@sentex.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 18:22:45 -0000 On 5/15/2018 2:10 PM, Mike Tancsa wrote: > Wasnt sure if it was my VM, so i took a stock 11.1R installed it on a > new VM and updated the sources to today. Stock GENERIC kernel > > ** this is i386 ** > > > via truss (w) > > access("/etc/localtime",R_OK) = 0 (0x0) > open("/etc/localtime",O_RDONLY,06605223677) = 5 (0x5) > fstat(5,{ mode=-r--r--r-- ,inode=1367764,size=118,blksize=32768 }) = 0 (0x0) > read(5,"TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0"...,29000) = 118 (0x76) > close(5) = 0 (0x0) > SIGNAL 11 (SIGSEGV) code=SEGV_MAPERR trapno=12 addr=0x28000184 > process killed, signal = 11 (core dumped) > > (gdb) bt > #0 ifree (tsd=0x28000000) at arena.h:799 > #1 0x2814b506 in __free (ptr=0x280601ef) at tsd.h:716 > #2 0x2808bb07 in xo_do_emit_fields () at > /usr/src/contrib/libxo/libxo/libxo.c:6419 > #3 0x28089a1c in xo_do_emit (xop=, flags= optimized out>, fmt=0x804ad4d "{:time-of-day/%s} ") > at /usr/src/contrib/libxo/libxo/libxo.c:6470 > #4 0x28089b61 in xo_emit (fmt=0x804ad4d "{:time-of-day/%s} ") at > /usr/src/contrib/libxo/libxo/libxo.c:6541 > #5 0x08049f50 in ?? () > #6 0x0804ad4d in ?? () > #7 0xbfbfe044 in ?? () > #8 0x28065e58 in list_global () from /libexec/ld-elf.so.1 > #9 0x00000000 in ?? () > Current language: auto; currently minimal > (gdb) > > I dont have debug symbols yet > > r333636 > > Anyone else see this ? > and for uptime fstat(5,{ mode=-rw-r--r-- ,inode=4173831,size=591,blksize=32768 }) = 0 (0x0) fstat(5,{ mode=-rw-r--r-- ,inode=4173831,size=591,blksize=32768 }) = 0 (0x0) read(5,"\^A\0\^ElBuW\M-K\M-^\0\0\0\0\0\0"...,985) = 591 (0x24f) stat("/dev/ttyv0",{ mode=crw------- ,inode=73,size=0,blksize=4096 }) = 0 (0x0) stat("/dev/pts/0",{ mode=crw--w---- ,inode=89,size=0,blksize=4096 }) = 0 (0x0) read(5,0x28628400,985) = 0 (0x0) close(5) = 0 (0x0) access("/etc/localtime",R_OK) = 0 (0x0) open("/etc/localtime",O_RDONLY,06605223677) = 5 (0x5) fstat(5,{ mode=-r--r--r-- ,inode=1367764,size=118,blksize=32768 }) = 0 (0x0) read(5,"TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0"...,29000) = 118 (0x76) close(5) = 0 (0x0) SIGNAL 11 (SIGSEGV) code=SEGV_MAPERR trapno=12 addr=0x28000184 process killed, signal = 11 (core dumped) and using gdb from the ports # /usr/local/bin/gdb uptime uptime.core 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 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: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from uptime...Reading symbols from /usr/lib/debug//usr/bin/w.debug...done. done. [New LWP 100130] Core was generated by `uptime'. Program terminated with signal SIGSEGV, Segmentation fault. #0 __je_arena_mapbitsp_read (mapbitsp=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:799 799 return (*mapbitsp); (gdb) bt full #0 __je_arena_mapbitsp_read (mapbitsp=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:799 No locals. #1 __je_arena_mapbits_get (chunk=0x28000000, pageind=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:806 No locals. #2 __je_arena_mapbits_binind_get (chunk=0x28000000, pageind=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:863 mapbits = binind = #3 __je_arena_salloc (demote=, tsdn=, ptr=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:1384 chunk = 0x28000000 pageind = binind = ret = #4 __je_isalloc (demote=, tsdn=, ptr=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h:951 No locals. #5 ifree (tsd=0x28000000, ptr=, tcache=, slow_path=) at jemalloc_jemalloc.c:1810 rzsize = usize = #6 0x2814b506 in __free (ptr=0x280601ef <__pthread_cleanup_push_imp_int+31>) at jemalloc_jemalloc.c:1935 No locals. #7 0x2808bb07 in xo_do_emit_fields (xop=, fields=, max_fields=, fmt=) at /usr/src/contrib/libxo/libxo/libxo.c:6419 rc = flush_line = max_fend = field = xfip = ftype = flags = new_fmt = new_fields = flush = flimit = min_fstart = fstart = fend = #8 0x28089a1c in xo_do_emit (xop=, flags=, fmt=0x804ad4d "{:time-of-day/%s} ") at /usr/src/contrib/libxo/libxo/libxo.c:6470 fields = 0xbfbfdcf0 ---Type to continue, or q to quit--- max_fields = 671088640 #9 0x28089b61 in xo_emit (fmt=0x804ad4d "{:time-of-day/%s} ") at /usr/src/contrib/libxo/libxo/libxo.c:6541 xop = 0x54 rc = #10 0x08049f50 in pr_header (nowp=, nusers=) at /usr/src/usr.bin/w/w.c:475 avenrun = {0, 0, 0} buf = "\000\000\000\000\000\000\000\000 6:18PM\000/0\000\000\244\210\004\b", '\000' , "\062\000\000\000\247\337*\000\252^\005(s\263 (s\263 (\000\254\006(\020^\006(\002\000\000\000\230\341\277\277\300\340\277\277\264\245 (\020^\006(@\341\277\277g\026\005(\340\340\277\277\320\260\006(\210\341\277\277\020^\006(H\341\277\277\222Z\005(\020\341\277\277\000\240\006(\000\000\000\000\210\341\277\277\020^\006(\000\240\006(\000\000\000\000\000\000\000\000(\342\277\277\000\000\000\000\000\000\000\000\004\000\000\000\260\341\006( bd\a\240]\005(t'\006(\223\220\f("... upbuf = tp = uptime = days = hrs = mins = secs = i = #11 main (argc=, argv=) at /usr/src/usr.bin/w/w.c:257 buf = "\000\000\000\000\000\000\000\000 6:18PM\000/0\000\000\244\210\004\b", '\000' , "\062\000\000\000\247\337*\000\252^\005(s\263 (s\263 (\000\254\006(\020^\006(\002\000\000\000\230\341\277\277\300\340\277\277\264\245 (\020^\006(@\341\277\277g\026\005(\340\340\277\277\320\260\006(\210\341\277\277\020^\006(H\341\277\277\222Z\005(\020\341\277\277\000\240\006(\000\000\000\000\210\341\277\277\020^\006(\000\240\006(\000\000\000\000\000\000\000\000(\342\277\277\000\000\000\000\000\000\000\000\004\000\000\000\260\341\006( bd\a\240]\005(t'\006(\223\220\f("... errbuf = "\001", '\000' , "\260\004(", '\000' , "\260\004(\000]\006(\000\000\000\000\064\260\004(\200", '\000' , "\070\267\004(\320\t", '\000' , "p\262\004(p\264\004(w\001\000\000\000\000\000\000\000\000\000\000(\266\004(\b\000\000\000\350\265\004(\274\260\004(\021\000\000\000\000\261\004( \000\000\000\021\000\000\000\001\000\000\000"... fn = '\000' , "\252^\005(\\\214\004\b"... p = wcmd = nlistf = memf = ch = nusers = touched = nentries = kp = i = dkp = longattime = ---Type to continue, or q to quit--- longidle = save_p = x_suffix = dot = stp = (gdb) (gdb) and the debug output of w using gdb from the ports # /usr/local/bin/gdb /usr/bin/w w.core 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 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: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/w...Reading symbols from /usr/lib/debug//usr/bin/w.debug...done. done. [New LWP 100130] Core was generated by `w'. Program terminated with signal SIGSEGV, Segmentation fault. #0 __je_arena_mapbitsp_read (mapbitsp=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:799 799 return (*mapbitsp); (gdb) bt full #0 __je_arena_mapbitsp_read (mapbitsp=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:799 No locals. #1 __je_arena_mapbits_get (chunk=0x28000000, pageind=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:806 No locals. #2 __je_arena_mapbits_binind_get (chunk=0x28000000, pageind=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:863 mapbits = binind = #3 __je_arena_salloc (demote=, tsdn=, ptr=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/arena.h:1384 chunk = 0x28000000 pageind = binind = ret = #4 __je_isalloc (demote=, tsdn=, ptr=) at /usr/src/contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h:951 No locals. #5 ifree (tsd=0x28000000, ptr=, tcache=, slow_path=) at jemalloc_jemalloc.c:1810 rzsize = usize = #6 0x2814b506 in __free (ptr=0x280601ef <__pthread_cleanup_push_imp_int+31>) at jemalloc_jemalloc.c:1935 No locals. #7 0x2808bb07 in xo_do_emit_fields (xop=, fields=, max_fields=, fmt=) at /usr/src/contrib/libxo/libxo/libxo.c:6419 rc = flush_line = max_fend = field = xfip = ftype = flags = new_fmt = new_fields = flush = flimit = min_fstart = fstart = fend = #8 0x28089a1c in xo_do_emit (xop=, flags=, fmt=0x804ad4d "{:time-of-day/%s} ") at /usr/src/contrib/libxo/libxo/libxo.c:6470 fields = 0xbfbfdcf0 ---Type to continue, or q to quit--- max_fields = 671088640 #9 0x28089b61 in xo_emit (fmt=0x804ad4d "{:time-of-day/%s} ") at /usr/src/contrib/libxo/libxo/libxo.c:6541 xop = 0x54 rc = #10 0x08049f50 in pr_header (nowp=, nusers=) at /usr/src/usr.bin/w/w.c:475 avenrun = {0, 0, 0} buf = "\000\000\000\000\000\000\000\000 6:21PM\000/0\000\000\244\210\004\b", '\000' , "\062\000\000\000\247\337*\000\252^\005(s\263 (s\263 (\000\254\006(\020^\006(\002\000\000\000\230\341\277\277\300\340\277\277\264\245 (\020^\006(@\341\277\277g\026\005(\340\340\277\277\320\260\006(\210\341\277\277\020^\006(H\341\277\277\222Z\005(\020\341\277\277\000\240\006(\000\000\000\000\210\341\277\277\020^\006(\000\240\006(\000\000\000\000\000\000\000\000(\342\277\277\000\000\000\000\000\000\000\000\004\000\000\000\260\341\006( bd\a\240]\005(t'\006(\223\220\f("... upbuf = tp = uptime = days = hrs = mins = secs = i = #11 main (argc=, argv=) at /usr/src/usr.bin/w/w.c:257 buf = "\000\000\000\000\000\000\000\000 6:21PM\000/0\000\000\244\210\004\b", '\000' , "\062\000\000\000\247\337*\000\252^\005(s\263 (s\263 (\000\254\006(\020^\006(\002\000\000\000\230\341\277\277\300\340\277\277\264\245 (\020^\006(@\341\277\277g\026\005(\340\340\277\277\320\260\006(\210\341\277\277\020^\006(H\341\277\277\222Z\005(\020\341\277\277\000\240\006(\000\000\000\000\210\341\277\277\020^\006(\000\240\006(\000\000\000\000\000\000\000\000(\342\277\277\000\000\000\000\000\000\000\000\004\000\000\000\260\341\006( bd\a\240]\005(t'\006(\223\220\f("... errbuf = "\001", '\000' , "\260\004(", '\000' , "\260\004(\000]\006(\000\000\000\000\064\260\004(\200", '\000' , "\070\267\004(\320\t", '\000' , "p\262\004(p\264\004(w\001\000\000\000\000\000\000\000\000\000\000(\266\004(\b\000\000\000\350\265\004(\274\260\004(\021\000\000\000\000\261\004( \000\000\000\021\000\000\000\001\000\000\000"... fn = '\000' , "\252^\005(\\\214\004\b"... p = wcmd = nlistf = memf = ch = nusers = touched = nentries = kp = i = dkp = longattime = ---Type to continue, or q to quit--- longidle = save_p = x_suffix = dot = stp = (gdb) -- ------------------- Mike Tancsa, tel +1 519 651 3400 x203 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada