From owner-freebsd-x11@FreeBSD.ORG Thu Mar 18 18:54:15 2010 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9761106566B; Thu, 18 Mar 2010 18:54:15 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8A1128FC1E; Thu, 18 Mar 2010 18:54:15 +0000 (UTC) Received: by pvc7 with SMTP id 7so135pvc.13 for ; Thu, 18 Mar 2010 11:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=HsCremInT/lVh5fFR52k1+r7WqptmEJu1rJdQCBLnZE=; b=UUK1Z1FKAeve9Ome0XmqUCC9EujVq2UMR5DXxsK2X7V2Rw6AZNdsArOIbziyOWR7Rj vOmmJrSDZo3HbPifeD/82RcDQQBX774iy14vazsYuQa8H0ZXsn0VKM/8rEjtEjVkomrg zAOd7kfOXxdJC2Z/z4O1aVWA5gAO2qnRQPIyU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=RjESryBWbiAdMTI9/nouJz+94AbZeH5wSvgxtzaE8TI52xfUMykAHj6nB+yXCRmU2S 7DnmU/KS+IGGzBp3+o9dmGU1PCwNNhyWt551ndspmqvuy2kmhfwuf8SyXKmChu4gqpGy /V4mApp/xcF5hnnOf4V50BhzLUvAdscVaDLnY= MIME-Version: 1.0 Received: by 10.142.61.36 with SMTP id j36mr294207wfa.322.1268938425122; Thu, 18 Mar 2010 11:53:45 -0700 (PDT) In-Reply-To: References: <20100311134413.GH19740@bsdcrew.de> <7d6fde3d1003121409l7de396bake4409dddfb9f1783@mail.gmail.com> <7d6fde3d1003131114x29db8e1coc188f6795c1194cb@mail.gmail.com> <7d6fde3d1003141343o7a7f3f36n9a1eb447cdc5f1e6@mail.gmail.com> <1268690553.2608.590.camel@balrog.2hip.net> Date: Thu, 18 Mar 2010 11:53:44 -0700 Message-ID: <7d6fde3d1003181153r673e97c2o621203508172bb41@mail.gmail.com> From: Garrett Cooper To: Torfinn Ingolfsen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org, x11@freebsd.org Subject: Re: [Call for Testing] X.org 7.5 for FreeBSD 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, 18 Mar 2010 18:54:15 -0000 On Thu, Mar 18, 2010 at 11:16 AM, Torfinn Ingolfsen wrot= e: > Update: > > On Mon, Mar 15, 2010 at 11:02 PM, Robert Noland wro= te: >> >> On Mon, 2010-03-15 at 22:40 +0100, Torfinn Ingolfsen wrote: >> > On Sun, Mar 14, 2010 at 9:43 PM, Garrett Cooper >> > wrote: >> > >> > > =A0 =A0Could you compile xfce4-session with -g and attach gdb to it = as >> > > it's starting up to get a backtrace please? >> > >> > >> > So I am guessing that running gdb on the core file I already have (fro= m >> > xfce4-session) isn't of any use? >> > I'll have to figure out how to compil with -g and how to "attach gdb" >> > then. >> >> "make -DWITH_DEBUG all deinstall reinstall" > > Ok, I finally found time to try this. After recompiling xfce4-session as > stated above, I did a 'startxfce4' as root. After that I did 'gdb > xfce4-session xfce4-session.core' > Correct so far? > On loading gdb prints: > Core was generated by `xfce4-session'. > Program terminated with signal 6, Aborted. > > then proceeds and load symbols. > I then try a backtrace: > (gdb) bt > #0=A0 0x0000000804bbf91c in kill () from /lib/libc.so.7 > #1=A0 0x0000000804bbe71b in abort () from /lib/libc.so.7 > #2=A0 0x0000000804171c75 in dbus_malloc () from /usr/local/lib/libdbus-1.= so.3 > #3=A0 0x000000080416df55 in dbus_watch_handle () from > /usr/local/lib/libdbus-1.so.3 > #4=A0 0x0000000804163046 in dbus_message_new_signal () from > /usr/local/lib/libdbus-1.so.3 > #5=A0 0x00000008040271e9 in dbus_g_connection_register_g_object () from > /usr/local/lib/libdbus-glib-1.so.2 > #6=A0 0x00000008042909ef in g_closure_invoke () from > /usr/local/lib/libgobject-2.0.so.0 > #7=A0 0x00000008042a4547 in g_signal_parse_name () from > /usr/local/lib/libgobject-2.0.so.0 > #8=A0 0x00000008042a5f96 in g_signal_emit_valist () from > /usr/local/lib/libgobject-2.0.so.0 > #9=A0 0x00000008042a6353 in g_signal_emit () from > /usr/local/lib/libgobject-2.0.so.0 > #10 0x000000000040f664 in xfsm_client_set_state (client=3D0x804e56400, > state=3DXFSM_CLIENT_SAVINGLOCAL) at xfsm-client.c:344 > #11 0x0000000000414c35 in xfsm_manager_register_client (manager=3D0x804e1= e810, > client=3D0x804e56400, previous_id=3D0x0) at xfsm-manager.c:909 > #12 0x000000000040da34 in sm_register_client (sms_conn=3D0x804e39300, > client_data=3D0x804e56400, previous_id=3D0x0) at sm-layer.c:210 > #13 0x0000000800f25abe in _SmsProcessMessage () from > /usr/local/lib/libSM.so.6 > #14 0x0000000801039cd0 in IceProcessMessages () from > /usr/local/lib/libICE.so.6 > #15 0x000000000040aeb2 in ice_process_messages (channel=3D0x804e8c100, > condition=3DG_IO_IN, user_data=3D0x804e72f80) at ice-layer.c:111 > #16 0x00000008043fe692 in g_main_context_dispatch () from > /usr/local/lib/libglib-2.0.so.0 > #17 0x0000000804401a2e in g_main_context_check () from > /usr/local/lib/libglib-2.0.so.0 > #18 0x0000000804401d19 in g_main_loop_run () from > /usr/local/lib/libglib-2.0.so.0 > #19 0x0000000801384743 in gtk_main () from > /usr/local/lib/libgtk-x11-2.0.so.0 > #20 0x000000000040bbea in main (argc=3D1, argv=3D0x7fffffffea08) at main.= c:299 > (gdb) > > What next? > >> >> works in most cases. =A0If your existing core doesn't have symbols, then >> no it won't offer much insight. > > Noted. Here's the problem area that needs inspecting: #2 0x0000000804171c75 in dbus_malloc () from /usr/local/lib/libdbus-1.so.3 do: 1. make -C $PORTSDIR/*/dbus extract 2. Find the file where dbus_malloc is defined. 3. Look for an abort. The pain in the ass part about dbus is that while it's a fairly well formed communication bus, if the implementing party isn't properly transmitting messages, then stuff goes south quickly, but dies without much helpful noise. But in the meantime, your console may have some helpful messages worth looking at. HTH, -Garrett