From nobody@FreeBSD.org  Tue Oct 20 14:21:51 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 56573106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Oct 2009 14:21:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 456DC8FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Oct 2009 14:21:51 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n9KELoqd045662
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 20 Oct 2009 14:21:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id n9KELoQZ045661;
	Tue, 20 Oct 2009 14:21:50 GMT
	(envelope-from nobody)
Message-Id: <200910201421.n9KELoQZ045661@www.freebsd.org>
Date: Tue, 20 Oct 2009 14:21:50 GMT
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: artsd crashes with SIGSEGV on 9-CURRENT
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         139798
>Category:       ports
>Synopsis:       audio/arts: artsd crashes with SIGSEGV on 9-CURRENT
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kde
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 20 14:30:02 UTC 2009
>Closed-Date:    Mon Oct 26 18:30:31 UTC 2009
>Last-Modified:  Mon Oct 26 18:30:31 UTC 2009
>Originator:     Matthias Apitz
>Release:        9-CURRENT (r197801) and ports from CVS
>Organization:
>Environment:
FreeBSD vm-azul.Sisis.de 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r197801: Mon Oct 12 13:33:32 CEST 2009     guru@vm-azul.Sisis.de:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
- kernel and userland is SVN rev. r197801
- /usr/ports is CVS updated on October 6, 2009

the artsd compiled from ports/audio/arts crashes with SIGSEGV with the following bt:

> $ gdb /usr/local/bin/artsd 2650
> ...
> (gdb) c
> Continuing.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x28144166 in Arts::PlayObject_base::_create () from /usr/local/lib/libkmedia2_idl.so.1
> (gdb) bt
> #0  0x28144166 in Arts::PlayObject_base::_create () from /usr/local/lib/libkmedia2_idl.so.1
> #1  0x08063bd1 in Arts::SimpleSoundServer_impl::createPlayObject ()
> #2  0x08061288 in Arts::SimpleSoundServer_impl::play ()
> #3  0x280f7103 in _dispatch_Arts_SimpleSoundServer_00 () from /usr/local/lib/libsoundserver_idl.so.1
> #4  0x28579df6 in Arts::Object_skel::_dispatch () from /usr/local/lib/libmcop.so.1
> #5  0x2856fae8 in Arts::Dispatcher::handle () from /usr/local/lib/libmcop.so.1
> #6  0x2853e371 in Arts::Connection::receive () from /usr/local/lib/libmcop.so.1
> #7  0x2857d4fe in Arts::SocketConnection::notifyIO () from /usr/local/lib/libmcop.so.1
> #8  0x2857281f in Arts::StdIOManager::processOneEvent () from /usr/local/lib/libmcop.so.1
> #9  0x28571e70 in Arts::StdIOManager::run () from /usr/local/lib/libmcop.so.1
> #10 0x28568447 in Arts::Dispatcher::run () from /usr/local/lib/libmcop.so.1
> #11 0x0806a307 in main ()


interestin is that the 8.0-RC1 package from FreeBSD' ftp server does not crash in this environment, i.e. if one deinstalls the compiled pkg arts-1.5.10_2,1 and installs the one from 8.0-RC1, it works.
>How-To-Repeat:
# cd /usr/ports/x11/kde3
# make install clean

and start KDE3
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->kde 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Oct 20 15:14:17 UTC 2009 
Responsible-Changed-Why:  
Fix synopsis and assign. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139798 
State-Changed-From-To: open->feedback 
State-Changed-By: miwi 
State-Changed-When: Tue Oct 20 20:04:43 UTC 2009 
State-Changed-Why:  
so you reported this to the kde mailing list. we have no idea where the 
problem is. what do you think should we now do? I think we should close 
this pr and you should open a pr to the kde bug tracker. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139798 

From: Matthias Apitz <guru@unixarea.de>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/139798: audio/arts: artsd crashes with SIGSEGV on 9-CURRENT
Date: Wed, 21 Oct 2009 13:16:55 +0200

 El da Tuesday, October 20, 2009 a las 08:04:43PM +0000, miwi@freebsd.org escribi:
 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: miwi
 > State-Changed-When: Tue Oct 20 20:04:43 UTC 2009
 > State-Changed-Why: 
 > so you reported this to the kde mailing list. we have no idea where the
 > problem is. what do you think should we now do? I think we should close
 > this pr and you should open a pr to the kde bug tracker.
 
 I have reported this issue by mail to FreeBSD kde and to -current; after
 a lot of own tests, I now filed a bug report into FreeBSD, especially
 because I think that the bug is not in KDE sources, but somewhere in the
 ports interoperability; if you feel we don't care and close the PR, then
 we should as well remove x11/kde3 at all, because the build just is
 broken at least for audio/arts;
 
 	matthias
 
 -- 
 Matthias Apitz
 t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
 e <guru@unixarea.de> - w http://www.unixarea.de/
 Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu

From: Matthias Apitz <guru@unixarea.de>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/139798: audio/arts: artsd crashes with SIGSEGV on 9-CURRENT
Date: Fri, 23 Oct 2009 10:25:13 +0200

 I compiled audio/arts with CFLAGS for debugging to get a better backtrace;
 the crash is when artsd will play the KDE greeting song; the file itself plays
 fine, for example with mplayer; I'm not a C++ programmer and don't know what
 could cause this SIGSEGV; the problem is fully reproduceable and I'm
 willing to provide any further information with 'gdb' if someone has an
 idea where to look; the part of kmedia2.cc is attached below as well,
 line 208 is marked; 
 
 #0  Arts::PlayObject_base::_create (subClass=@0xbfbfc464) at kmedia2.cc:208
 208             Arts::PlayObject_base *castedObject = (Arts::PlayObject_base *)skel->_cast(Arts::PlayObject_base::_IID);
 [New Thread 28c01140 (LWP 100094)]
 (gdb) bt
 #0  Arts::PlayObject_base::_create (subClass=@0xbfbfc464) at kmedia2.cc:208
 #1  0x08063bd1 in Arts::SimpleSoundServer_impl::createPlayObject (this=0x28c33f00, filename=@0xbfbfc4f4) at kmedia2.h:241
 #2  0x08061288 in Arts::SimpleSoundServer_impl::play (this=0x28c33f00, filename=@0xbfbfc4f4) at simplesoundserver_impl.cc:260
 #3  0x280f71d3 in _dispatch_Arts_SimpleSoundServer_00 (object=0x28c33f84, request=0x28c505e0, result=0x28c66620) at soundserver.cc:1324
 #4  0x2857aeb6 in Arts::Object_skel::_dispatch (this=0x28c33f8c, request=0x28c505e0, result=0x28c66620, methodID=37) at object.cc:855
 #5  0x28570ba8 in Arts::Dispatcher::handle (this=0xbfbfe964, conn=0x28c65500, buffer=0x28c505e0, messageType=4) at dispatcher.cc:562
 #6  0x2853f431 in Arts::Connection::receive (this=0x28c65500, newdata=0xbfbfc6ec "MCOP", newlen=70) at connection.cc:168
 #7  0x2857e5be in Arts::SocketConnection::notifyIO (this=0x28c65500, _fd=11, types=1) at socketconnection.cc:139
 #8  0x285738df in Arts::StdIOManager::processOneEvent (this=0x28c13400, blocking=true) at iomanager.cc:308
 #9  0x28572f30 in Arts::StdIOManager::run (this=0x28c13400) at iomanager.cc:357
 #10 0x28569507 in Arts::Dispatcher::run (this=0xbfbfe964) at dispatcher.cc:957
 #11 0x0806a307 in main (argc=Cannot access memory at address 0x0
 ) at artsd.cc:362
 
 
 (gdb) p subClass
 $1 = (const string &) @0xbfbfc464: {static npos = 4294967295, 
   _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, 
     _M_p = 0x28c9ccac "akodeXiphPlayObject"}}
 (gdb) up
 #1  0x08063bd1 in Arts::SimpleSoundServer_impl::createPlayObject (this=0x28c33f00, filename=@0xbfbfc4f4) at kmedia2.h:241
 241                     Arts::Object(PlayObject_base::_create(s.string())), _cache(0) {}
 (gdb) p filename
 $2 = (const string &) @0xbfbfc4f4: {static npos = 4294967295, 
   _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, 
     _M_p = 0x28c65d8c "/usr/local/share/sounds/KDE_Startup_1.ogg"}}
 (gdb) 
 
 
 kmedia2.cc:
 
 ...
 Arts::PlayObject_base *Arts::PlayObject_base::_create(const std::string& subClass)
 {
         Arts::Object_skel *skel = Arts::ObjectManager::the()->create(subClass);
         assert(skel);
 208-->  Arts::PlayObject_base *castedObject = (Arts::PlayObject_base *)skel->_cast(Arts::PlayObject_base::_IID);
         assert(castedObject);
         return castedObject;
 }
 ...
 
 -- 
 Matthias Apitz
 t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
 e <guru@unixarea.de> - w http://www.unixarea.de/
 Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu

From: Matthias Apitz <guru@unixarea.de>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/139798: audio/arts: artsd crashes with SIGSEGV on 9-CURRENT
Date: Sat, 24 Oct 2009 09:14:01 +0200

 With the helping hand of others I could solve the problem with the
 following:
 
 Hello Tijl,
 
 Thanks for your helping hand! And, you hit the problem:
 
 $ artsd -l 0
 artsd version is 1.5.10
 gsl: using Unix98 pthreads directly for mutexes and conditions
 [artsd:  1738] SoundServerStartup --> got lock
 autodetecting driver: 
  - toss: 4
  - jack: -1
  - null: -1
  - oss: 10
 ... which means we'll default to oss
 device capabilities: revision0 realtime trigger mmap 
 buffering: 8 fragments with 1024 bytes (audio latency is 46.4 ms)
 virtualize StereoVolumeControl
 device capabilities: revision0 realtime trigger mmap 
 buffering: 8 fragments with 1024 bytes (audio latency is 46.4 ms)
 audio format is 44100 Hz, 16 bits, 2 channels
 addDirectory(/usr/local/lib/mcop,)
 addDirectory(/usr/local/lib/mcop/Arts,Arts)
 addDirectory(/usr/local/lib/mcop/Arts/Environment,Arts::Environment)
 addDirectory(/usr/local/lib/mcop/Noatun,Noatun)
 addDirectory(/home/guru/.mcop/trader-cache,)
 Arts::MidiManager registered successfully.
 [artsd:  1738] SoundServerStartup <-- released lock
 
 (now I run artsplay from another session)
 
 UnixManager: got notifyIO
 socketconnection created, fd = 9
 search playobject, extension = ogg
 creating akodeXiphPlayObject to play file
 /usr/local/share/sounds/KDE_Startup_1.ogg
 loading extension from '/usr/local/lib/libarts_akode.la' failed: Shared object "libltdl.so.7" not found, required by "libarts_akode.so.0"
 MCOP ObjectManager: Could not load extension libarts_akode.la.
 MCOP ObjectManager: can't find implementation for akodeXiphPlayObject.
 Segmentation fault: 11 (core dumped)
 $
 
 i.e. the SIGSEGV is result of a missing pkg libltdl-2.2.6a_1.tbz; I
 installed this and KDE's sound is fine now.
 
 The problem is that installing only kde-3.5.10_2 will not require and install
 this package on the fly:
 
 $ pkg_info -r kde-3.5.10_2    | fgrep libltdl
 $ pkg_info -r arts-1.5.10_2,1 | fgrep libltdl
 
 Someone should fix the dependencies, I think.
 
 Thanks again for your help.
 
 	matthias
State-Changed-From-To: feedback->closed 
State-Changed-By: makc 
State-Changed-When: Mon Oct 26 18:30:29 UTC 2009 
State-Changed-Why:  
Fixed in ports/139884 

http://www.freebsd.org/cgi/query-pr.cgi?pr=139798 
>Unformatted:
