[kde-freebsd] ports/139798: audio/arts: artsd crashes with SIGSEGV on 9-CURRENT
Matthias Apitz
guru at unixarea.de
Fri Oct 23 10:30:04 CEST 2009
The following reply was made to PR ports/139798; it has been noted by GNATS.
From: Matthias Apitz <guru at unixarea.de>
To: bug-followup at 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 at unixarea.de> - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu
More information about the kde-freebsd
mailing list