From owner-freebsd-current@FreeBSD.ORG Mon Mar 23 11:50:57 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 52CB9B54; Mon, 23 Mar 2015 11:50:57 +0000 (UTC) Received: from ivan-labs.com (ivan-labs.com [162.243.251.239]) by mx1.freebsd.org (Postfix) with ESMTP id 2742BCA6; Mon, 23 Mar 2015 11:50:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by ivan-labs.com (Postfix) with ESMTP id EBA3712111D; Mon, 23 Mar 2015 14:50:49 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at Received: from ivan-labs.com ([127.0.0.1]) by localhost (ivan-labs.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nIy1yVLBBIoV; Mon, 23 Mar 2015 14:50:39 +0300 (MSK) Received: from [192.168.43.253] (unknown [149.62.201.224]) by ivan-labs.com (Postfix) with ESMTPSA id C6E8D1203E8; Mon, 23 Mar 2015 14:50:38 +0300 (MSK) Message-ID: <550FFE02.5040900@ivan-labs.com> Date: Mon, 23 Mar 2015 13:50:26 +0200 From: "Ivan A. Kosarev" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Konstantin Belousov Subject: Re: Use of chunksize before initialization References: <550C27D8.2010105@ivan-labs.com> <20150321010218.GD2379@kib.kiev.ua> <550D37DA.7060105@ivan-labs.com> <20150321213106.GV2379@kib.kiev.ua> In-Reply-To: <20150321213106.GV2379@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Ed Maste X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Mon, 23 Mar 2015 11:50:57 -0000 On 03/21/2015 11:31 PM, Konstantin Belousov wrote: > On Sat, Mar 21, 2015 at 11:20:26AM +0200, Ivan A. Kosarev wrote: >> On 03/21/2015 03:02 AM, Konstantin Belousov wrote: >>> On Fri, Mar 20, 2015 at 03:59:52PM +0200, Ivan A. Kosarev wrote: >>>> #12 0x00000008011b428d in malloc_init_hard () at jemalloc_jemalloc.c:698 >>>> #13 malloc_init () at jemalloc_jemalloc.c:296 >>>> #14 0x0000000801243ea2 in ?? () from /lib/libc.so.7 >>>> #15 0x00000008006a5400 in ?? () >>>> #16 0x000000080089e5b0 in ?? () from /libexec/ld-elf.so.1 >>>> #17 0x00007fffffffe0b0 in ?? () >>>> #18 0x0000000801139d06 in _init () from /lib/libc.so.7 >>>> #19 0x00007fffffffe0b0 in ?? () >>> The backtrace is strange. Did you compiled malloc with the debugging >>> symbols, while keep rest of libc without -g ? >> I've just added the -g flag to CC_FLAGS in the Makefile and made sure to >> install an unstripped version of the .so . I could investigate more on >> why the early calls omit debug symbols, if it does any matter. > I want to understand at what stage of the initialization the access happens. > This is why I want to see the complete backtrace. It is jemalloc_constructor() that calls malloc_init(), so it should be called directly by the loader. --