From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Slaby Subject: trinity: lots of free(): invalid pointer Date: Wed, 15 Jan 2014 23:37:57 +0100 Message-ID: <52D70DC5.8070104@suse.cz> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=clxbhdp1HrYmVKdPokWjRYWNedTpC7zxn7/z94vEJWg=; b=c9oTOy7NuUziv+suP2sdK6QB1KGk3Vjj4xTM0kZkoNeY+kOnKEeXTNVZsi6pOkyTX1 oGtBwM3YxB3JUvxlpQIo/LuWkaqLV34x71kkw3mNh8YDoH2wCXEK6qm879F7+aZkQ0rC Q/ytjUuXdp9osrrVaf5jrU6aqA6BCOIelTTaT2GnJCNF6IsrxMy2XHJPUmhcSftQTpmD WWMeIuXdwOwa9zWuRgbE9KmnoseSCfwBfN4xlwxc1ruBcy31Z/g1HIfLkAOAH7lK/XwR F4a8zulqtWP8X161/7w2OA0XnmFtXjzlDVjMvfU15JjcCvOnaTP4BiPXmpE4CxSGY+rN 36vA== Sender: trinity-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Dave Jones Cc: trinity@vger.kernel.org Hi Dave, I see lots of $SUBJ generated by the current snapshot of trinity. 0x4120ae below is free in the loop in post_move_pages. So this is perhaps introduced with one of: commit ae3b98fcbf52c808b0a3eb4eb5311c9fdf433f55 Author: Dave Jones Date: Wed Jan 8 11:08:22 2014 -0500 only allocate page_types array once commit 2a749813619348b3bfd144fe04488f698d83accc Author: Dave Jones Date: Tue Jan 7 12:11:11 2014 -0500 teach move_pages about the maps list Any ideas? *** Error in `trinity': free(): invalid pointer: 0x000000000276d000 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x7406f)[0x7fd8d165606f] /lib64/libc.so.6(+0x7986e)[0x7fd8d165b86e] /lib64/libc.so.6(+0x7a557)[0x7fd8d165c557] trinity[0x4120ae] trinity[0x40abc8] trinity[0x40dabc] trinity[0x40338a] trinity[0x40705c] trinity[0x402c47] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7fd8d1603b25] trinity[0x402f13] ======= Memory map: ======== 00400000-0042a000 r-xp 00000000 08:01 32548 /usr/bin/trinity 00629000-0062a000 r--p 00029000 08:01 32548 /usr/bin/trinity 0062a000-0068e000 rw-p 0002a000 08:01 32548 /usr/bin/trinity 01f76000-01f97000 rw-p 00000000 00:00 0 [heap] 01f97000-01fb8000 rw-p 00000000 00:00 0 [heap] 01fb8000-01fd9000 rw-p 00000000 00:00 0 [heap] 01fd9000-01ffa000 rw-p 00000000 00:00 0 [heap] 01ffa000-0201b000 rw-p 00000000 00:00 0 [heap] 0201b000-0203c000 rw-p 00000000 00:00 0 [heap] 0203c000-0205d000 rw-p 00000000 00:00 0 [heap] 0205d000-0207e000 rw-p 00000000 00:00 0 [heap] 0207e000-0209f000 rw-p 00000000 00:00 0 [heap] 0209f000-020c0000 rw-p 00000000 00:00 0 [heap] 020c0000-020e1000 rw-p 00000000 00:00 0 [heap] 020e1000-02102000 rw-p 00000000 00:00 0 [heap] 02102000-02123000 rw-p 00000000 00:00 0 [heap] 02123000-02144000 rw-p 00000000 00:00 0 [heap] 02144000-02165000 rw-p 00000000 00:00 0 [heap] 02165000-02186000 rw-p 00000000 00:00 0 [heap] 02186000-021a9000 rw-p 00000000 00:00 0 [heap] 021a9000-021cc000 rw-p 00000000 00:00 0 [heap] 021cc000-021ef000 rw-p 00000000 00:00 0 [heap] 021ef000-02211000 rw-p 00000000 00:00 0 [heap] 02211000-02233000 rw-p 00000000 00:00 0 [heap] 02233000-02255000 rw-p 00000000 00:00 0 [heap] 02255000-02277000 rw-p 00000000 00:00 0 [heap] 02277000-02299000 rw-p 00000000 00:00 0 [heap] 02299000-022bb000 rw-p 00000000 00:00 0 [heap] 022bb000-022dd000 rw-p 00000000 00:00 0 [heap] 022dd000-022fe000 rw-p 00000000 00:00 0 [heap] 022fe000-02320000 rw-p 00000000 00:00 0 [heap] 02320000-02342000 rw-p 00000000 00:00 0 [heap] 02342000-02346000 rw-p 00000000 00:00 0 [heap] 02346000-02367000 rw-p 00000000 00:00 0 [heap] 02367000-02387000 rw-p 00000000 00:00 0 [heap] 02387000-0239f000 rw-p 00000000 00:00 0 [heap] 0239f000-023a8000 rw-p 00000000 00:00 0 [heap] 023a8000-023c8000 rw-p 00000000 00:00 0 [heap] 023c8000-023d9000 rw-p 00000000 00:00 0 [heap] 023d9000-023e1000 rw-p 00000000 00:00 0 [heap] 023e1000-02402000 rw-p 00000000 00:00 0 [heap] 02402000-0241a000 rw-p 00000000 00:00 0 [heap] 0241a000-02433000 rw-p 00000000 00:00 0 [heap] 02433000-02453000 rw-p 00000000 00:00 0 [heap] 02453000-0246d000 rw-p 00000000 00:00 0 [heap] 0246d000-02485000 rw-p 00000000 00:00 0 [heap] -- js suse labs