From owner-freebsd-current@FreeBSD.ORG Fri Oct 23 17:51:14 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30D09106566C for ; Fri, 23 Oct 2009 17:51:14 +0000 (UTC) (envelope-from tijl@fastmail.fm) Received: from mailrelay001.isp.belgacom.be (mailrelay001.isp.belgacom.be [195.238.6.51]) by mx1.freebsd.org (Postfix) with ESMTP id C14638FC15 for ; Fri, 23 Oct 2009 17:51:13 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArwEAOqB4UpR889R/2dsb2JhbACBUNgShD8EgV0 Received: from 81.207-243-81.adsl-dyn.isp.belgacom.be (HELO kalimero.kotnet.org) ([81.243.207.81]) by relay.skynet.be with ESMTP; 23 Oct 2009 19:22:02 +0200 Received: from kalimero.kotnet.org (kalimero.kotnet.org [127.0.0.1]) by kalimero.kotnet.org (8.14.3/8.14.3) with ESMTP id n9NHJV0g090648; Fri, 23 Oct 2009 19:19:32 +0200 (CEST) (envelope-from tijl@fastmail.fm) From: Tijl Coosemans To: freebsd-current@freebsd.org, Matthias Apitz Date: Fri, 23 Oct 2009 19:19:30 +0200 User-Agent: KMail/1.9.10 References: <20091011062419.GA2168@current.Sisis.de> <20091013153815.GA88394@bsdcrew.de> <20091014063221.GA2301@current.Sisis.de> In-Reply-To: <20091014063221.GA2301@current.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910231919.31536.tijl@fastmail.fm> Cc: kde-freebsd@kde.org Subject: Re: [kde-freebsd] 9-CURRENT (r197801) && artsd of kde-3.5.10_2 gives SIGSEGV 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: Fri, 23 Oct 2009 17:51:14 -0000 On Wednesday 14 October 2009 08:32:21 Matthias Apitz wrote: > I'm willing to nail this small issue down. I've already compiled the > arts-1.5.10_2,1 port with --enable-debug=full and will test it the > upcoming weekend. Do you have any hints for me on debugging? > I have had already a look into the code where it crashes in > soundserver/kmedia2.cc: > > ... > unsigned long Arts::PlayObject_private_base::_IID = Arts::MCOPUtils::makeIID("Arts::PlayObject_private"); > > Arts::PlayObject_base *Arts::PlayObject_base::_create(const std::string& subClass) > { > Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass); This probably returns NULL. > assert(skel); This is a nop if you compiled with -DNDEBUG. > Arts::PlayObject_base *castedObject = (Arts::PlayObject_base *)skel->_cast(Arts::PlayObject_base::_IID); This causes a SIGSEGV if skel == NULL. > assert(castedObject); > return castedObject; > } So you could put a breakpoint on Arts::ObjectManager::create and step through that to see where it goes wrong. Before you do that, maybe running artsd in a terminal prints out some interesting messages. Something like: (terminal 1) $ artsd -l 0 (terminal 2) $ artsplay /path/to/somefile.ogg