From owner-freebsd-current@FreeBSD.ORG Thu Aug 2 22:32:47 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1E9FA106566B for ; Thu, 2 Aug 2012 22:32:47 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id D23058FC08 for ; Thu, 2 Aug 2012 22:32:46 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id q72MWklw035218 for ; Thu, 2 Aug 2012 15:32:46 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id q72MWkrc035217 for freebsd-current@freebsd.org; Thu, 2 Aug 2012 15:32:46 -0700 (PDT) (envelope-from sgk) Date: Thu, 2 Aug 2012 15:32:46 -0700 From: Steve Kargl To: freebsd-current@freebsd.org Message-ID: <20120802223246.GA35208@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: possible je-malloc issue X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2012 22:32:47 -0000 Libc built today. Start X with fvwm window manager. Open xterm and su to root. 1. Use nedit to edit a file and close. fvwm drops core. If fvwm does not drop core repeat 1 until she does. (gdb) bt #0 0x4841e294 in __jemalloc_arena_mapbits_get (chunk=0x8000000, pageind=245) at /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:502 #1 0x4841e2c4 in __jemalloc_arena_mapbits_allocated_get (chunk=0x8000000, pageind=245) at /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:581 #2 0x4841e739 in __jemalloc_arena_salloc (ptr=0x80f58e0, demote=false) at /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/arena.h:902 #3 0x48423dd1 in __jemalloc_isalloc (ptr=0x8000000, demote=false) at /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/internal/jemalloc_internal.h:791 #4 0x4842408e in free (ptr=0x80f58e0) at jemalloc_jemalloc.c:1212 #5 0x48164b7d in XFree (data=0x80f58e0) at XlibInt.c:1701 #6 0x080c4f2f in FlocaleFreeNameProperty (ptext=0xbfbfcfb4) at Flocale.c:2363 #7 0x0806d3ab in HandlePropertyNotify (ea=0xbfbfd014) at events.c:3422 #8 0x0806c369 in dispatch_event (e=0xbfbfd044) at events.c:4135 #9 0x0806ca5f in HandleEvents () at events.c:4179 #10 0x0808e06e in main (argc=1, argv=0xbfbfd7ac) at fvwm.c:2591 (gdb) frame 4 #4 0x4842408e in free (ptr=0x80f58e0) at jemalloc_jemalloc.c:1212 1212 usize = isalloc(ptr, config_prof); (gdb) print *ptr Attempt to dereference a generic pointer. (gdb) up 1 #5 0x48164b7d in XFree (data=0x80f58e0) at XlibInt.c:1701 1701 XlibInt.c: No such file or directory. (gdb) print *data Attempt to dereference a generic pointer. (gdb) up 1 #6 0x080c4f2f in FlocaleFreeNameProperty (ptext=0xbfbfcfb4) at Flocale.c:2363 2363 Flocale.c: No such file or directory. (gdb) print *ptext $5 = {name = 0x80f58e0 "Untitled", name_list = 0x0} -- Steve