From owner-freebsd-current@FreeBSD.ORG Tue Nov 22 13:43:53 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18610106564A; Tue, 22 Nov 2011 13:43:53 +0000 (UTC) (envelope-from imb@protected-networks.net) Received: from sarah.protected-networks.net (sarah.protected-networks.net [IPv6:2001:470:1f07:4e1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D4C408FC18; Tue, 22 Nov 2011 13:43:52 +0000 (UTC) Received: from toshi.auburn.protected-networks.net (toshi.auburn.protected-networks.net [202.12.127.84]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "Iain Butler", Issuer "RSA Class 2 Personal CA" (verified OK)) (Authenticated sender: imb@protected-networks.net) by sarah.protected-networks.net (Postfix) with ESMTPSA id 2D17060E5; Tue, 22 Nov 2011 08:43:52 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=protected-networks.net; s=200705; t=1321969432; bh=JzXZsmAzvfT4XXg5IfuXPu+UWEK/M/TmkprwyNJVOcY=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=AmVv6wlYH9Txzab9AF/1GlaQCFeVYRNkKr6/6L8Wi4arkKmqP3ZSGXayu3nXhfHWC fz3TWihoW7o17tiPBwTfn7ZoEZiQtq4Qi+cdUa8fiofTUn+0BJgyzPjOwlsZVx4 DomainKey-Signature: a=rsa-sha1; s=200509; d=protected-networks.net; c=nofws; q=dns; h=message-id:date:from:user-agent:mime-version:to:cc:subject: references:in-reply-to:content-type:content-transfer-encoding; b=NSijUzxqIqpCZHvTLdz4+3B9ZKHYlaRN2F7eum84UVnL/BHN/mdQAIpyo177J5FEM tmiGtiQBHc2DaNYGxm57NKAjuwKJZTvYgbFDu4HzVreggVxUU0oCVdjbbRZXOyt Message-ID: <4ECBA716.2080808@protected-networks.net> Date: Tue, 22 Nov 2011 08:43:50 -0500 From: Michael Butler User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:8.0) Gecko/20111111 Thunderbird/8.0 MIME-Version: 1.0 To: David Chisnall References: <4ECAEAFD.5010404@protected-networks.net> <18810925-DC65-4D9B-9508-2B5153BDC3D5@FreeBSD.org> <4ECBA4D7.7070607@protected-networks.net> <52C052B0-EFBD-4044-937A-669F475A0FD4@FreeBSD.org> In-Reply-To: <52C052B0-EFBD-4044-937A-669F475A0FD4@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current Subject: Re: did SVN r227753 (locale changes) break something? 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: Tue, 22 Nov 2011 13:43:53 -0000 On 11/22/11 08:37, David Chisnall wrote: > Do you have valgrind installed? It would probably also be helpful to see the results from that. With symbols for libc .. #0 xlocale_retain (val=0x0) at atomic.h:363 363 ATOMIC_ASM(add, long, "addl %1,%0", "ir", v); [New Thread 28804300 (LWP 100592/vlc)] (gdb) bt #0 xlocale_retain (val=0x0) at atomic.h:363 #1 0x283eb568 in dupcomponent (type=3, base=Variable "base" is not available. ) at /usr/home/imb/svn/head/lib/libc/locale/xlocale.c:204 #2 0x283eb709 in newlocale (mask=Variable "mask" is not available. ) at /usr/home/imb/svn/head/lib/libc/locale/xlocale.c:250 #3 0x281637f2 in msg_Subscribe () from /usr/local/lib/libvlccore.so.4 #4 0x00000000 in ?? () #5 0x28191f6f in .rodata () from /usr/local/lib/libvlccore.so.4 #6 0x28420120 in __xlocale_global_locale () from /lib/libc.so.7 #7 0x00000000 in ?? () #8 0x281a3ee0 in .got () from /usr/local/lib/libvlccore.so.4 #9 0x288400fc in ?? () #10 0x288400fc in ?? () #11 0x280ca9b6 in libvlc_InternalCreate () from /usr/local/lib/libvlccore.so.4 #12 0x281a4df4 in .bss () from /usr/local/lib/libvlccore.so.4 #13 0x0000005c in ?? () #14 0xfffffd66 in ?? () #15 0x281861d4 in .rodata () from /usr/local/lib/libvlccore.so.4 #16 0x00000440 in ?? () #17 0x00000001 in ?? () #18 0x00000000 in ?? () #19 0x280b4ad0 in .got () from /usr/local/lib/libvlc.so.7 #20 0xbfbfe640 in ?? () #21 0x00000002 in ?? () #22 0xbfbfe678 in ?? () #23 0x280a39b2 in libvlc_new () from /usr/local/lib/libvlc.so.7 Previous frame inner to this frame (corrupt stack?) .. and valgrind shows .. imb@toshi:/home/imb> valgrind vlc ==41007== Memcheck, a memory error detector ==41007== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==41007== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info ==41007== Command: vlc ==41007== VLC media player 1.1.12 The Luggage (revision exported) ==41007== Invalid read of size 4 ==41007== at 0x3BC253: ??? (atomic.h:363) ==41007== by 0x3BC567: ??? (xlocale.c:204) ==41007== by 0x3BC708: newlocale (xlocale.c:250) ==41007== by 0x1347F1: msg_Create (in /usr/local/lib/libvlccore.so.4) ==41007== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==41007== ==41007== ==41007== Process terminating with default action of signal 11 (SIGSEGV): dumping core ==41007== Access not within mapped region at address 0x0 ==41007== at 0x3BC253: ??? (atomic.h:363) ==41007== by 0x3BC567: ??? (xlocale.c:204) ==41007== by 0x3BC708: newlocale (xlocale.c:250) ==41007== by 0x1347F1: msg_Create (in /usr/local/lib/libvlccore.so.4) ==41007== If you believe this happened as a result of a stack ==41007== overflow in your program's main thread (unlikely but ==41007== possible), you can try to increase the size of the ==41007== main thread stack using the --main-stacksize= flag. ==41007== The main thread stack size used in this run was 16777216. ==41007== ==41007== HEAP SUMMARY: ==41007== in use at exit: 9,284 bytes in 76 blocks ==41007== total heap usage: 79 allocs, 3 frees, 9,316 bytes allocated ==41007== ==41007== LEAK SUMMARY: ==41007== definitely lost: 0 bytes in 0 blocks ==41007== indirectly lost: 0 bytes in 0 blocks ==41007== possibly lost: 554 bytes in 13 blocks ==41007== still reachable: 8,730 bytes in 63 blocks ==41007== suppressed: 0 bytes in 0 blocks ==41007== Rerun with --leak-check=full to see details of leaked memory ==41007== ==41007== For counts of detected and suppressed errors, rerun with: -v ==41007== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) Segmentation fault .. so it looks like a NULL pointer but I guess I need to recompile libvlc to see if it's involved, imb