From owner-freebsd-x11@FreeBSD.ORG Thu May 24 09:01:11 2012 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 15FF61065676 for ; Thu, 24 May 2012 09:01:11 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 76C058FC17 for ; Thu, 24 May 2012 09:01:10 +0000 (UTC) Received: by laai10 with SMTP id i10so8266413laa.13 for ; Thu, 24 May 2012 02:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=rQrRs9NYl86zGfcUgNqX5nr/n+Yd1Roe+ZP9OyU7Ob8=; b=tMV0itRaWAgX/5OxJiKam4yOJ48ZxnEVoGFh648uBzVP5D4UorSmy5tyjgNQeTLlTc 4kyNUJVYdioehlUcOeJxAppw1Qv37b0vEx2zExEvb0znhobHcX6begERqfRZrKr78VVt OjtyCCONscCHXRKUhCsmooalnG3DUwlxhxdDsazsHCNjx1MHTWB5Ycxd7ZpIReYe18Xo NDqy6drF3Sda/uUMVJhbEJT3lqzGWITuw41JD7RvQ2nsG+wpzX7Lm3FuztLlL4A4U221 4i5lPLWMo8UcZrwbcEnP2HK+OTcgsS3voz7lVNbO34bR8IgCP0qMfYkaGMqKy8f2x/Zg Uybw== Received: by 10.112.82.165 with SMTP id j5mr13281179lby.50.1337850069341; Thu, 24 May 2012 02:01:09 -0700 (PDT) Received: from green.tandem.local (utwig.xim.bz. [91.216.237.46]) by mx.google.com with ESMTPS id o5sm913140lbg.5.2012.05.24.02.01.07 (version=SSLv3 cipher=OTHER); Thu, 24 May 2012 02:01:08 -0700 (PDT) Message-ID: <4FBDF8D0.6050109@gmail.com> Date: Thu, 24 May 2012 12:01:04 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120515 Firefox/12.0 SeaMonkey/2.9.1 MIME-Version: 1.0 To: Gautam References: <4FB9D9E2.4040206@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-x11@freebsd.org Subject: Re: New Xorg crashes when built with clang X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 May 2012 09:01:11 -0000 Gautam wrote: > Hi, > > On Mon, May 21, 2012 at 3:40 PM, Gautam wrote: > >> #0 0x0000000802bdc43c in thr_kill () from /lib/libc.so.7 >> #1 0x0000000802c7582c in abort () from /lib/libc.so.7 >> #2 0x000000000046d51e in OsAbort () >> #3 0x0000000000478925 in ddxGiveUp () >> #4 0x000000000046accd in AbortServer () >> #5 0x000000000046a4b2 in FatalError () >> #6 0x000000000046b6be in OsInit () >> #7 0x0000000802971b68 in swapcontext () from /lib/libthr.so.3 >> #8 0x000000080297170f in sigaction () from /lib/libthr.so.3 >> #9 0x00007ffffffff043 in ?? () >> #10 0x00000008029715e0 in sigaction () from /lib/libthr.so.3 >> #11 0x00000008040a1d54 in ProcDRI2Dispatch () >> from /usr/local/lib/xorg/modules/extensions/libdri2.so >> #12 0x0000000000433bdd in Dispatch () >> #13 0x000000000042dbf4 in main () >> (gdb) Try updating world. clang 3.1 is in the tree. This might be just an itchy feeling, but clang 3.0 may produce very weird code when compiling with -march=native. I faced two weirdness samples: * on i386 with atlon-xp processor world built with -march=native fails to load libraries dynamically and rolls clock back into the 1942. * on some intel chips amd64 world built with -march=native was unusable by mysql (but it seems 0k with some other chips). I faced that on E5520. And the error was in libthr.so.3 too. If you have built your world with -march=native you can succumb to one of those. However latest clang import seems to fix at least first one for me. -- Sphinx of black quartz judge my vow.