From kde-multimedia Wed Jul 16 05:17:34 2003 From: George Staikos Date: Wed, 16 Jul 2003 05:17:34 +0000 To: kde-multimedia Subject: memory problems in arts X-MARC-Message: https://marc.info/?l=kde-multimedia&m=105833277303889 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-00=_u/NF/QC3HjWL5aJ" --Boundary-00=_u/NF/QC3HjWL5aJ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm still trying to track down these arts problems but I just have no clue what arts tries to do. Here's a valgrind log. As far as I can see: soundserver.h:453 _pool = target._pool; // this line triggers "delete this;" _cache = target._cache; // this writes to free'd memory What's going on here? And are we in trouble now because this code is all inlined? (ie. apps need to be recompiled in order to make use of any possible fix) This is the same type of error I've seen elsewhere in KDE due to arts as well. It's rather critical. -- George Staikos KDE Developer http://www.kde.org/ Staikos Computing Services Inc. http://www.staikos.net/ --Boundary-00=_u/NF/QC3HjWL5aJ Content-Type: text/plain; charset="us-ascii"; name="artsdsp.valgrind" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="artsdsp.valgrind" ==9190== ERROR SUMMARY: 215 errors from 13 contexts (suppressed: 194 from 4) ==9190== 1 errors in context 3 of 13: ==9190== Invalid write of size 4 ==9190== at 0x47EBDB02: Sender::close() (../soundserver/soundserver.h:454) ==9190== by 0x47EBDD60: virtual thunk to Sender::close() (artscbackend.cc:431) ==9190== by 0x47EB9526: arts_backend_close_stream (artscbackend.cc:634) ==9190== by 0x4020591C: arts_close_stream (artsc.c:174) ==9190== by 0x40201714: close (artsdsp.c:527) ==9190== by 0x4735CDCF: (within /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x4735D108: UnixSoundOSS::~UnixSoundOSS(void) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x4735C978: PlatformSoundMix::CloseDevice(void) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x4735C4A0: PlatformSoundMix::PlatformConstruct(CSoundDescriptor *, int *, int *) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x472DBA2C: CoreSoundMix::Construct(CoreGlobals *) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x47324ABD: CoreGlobals::Init(void) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x472FB1A0: CorePlayer::CorePlayer(PlatformGlobals *) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x47331AE8: UnixCommonPlayer::UnixCommonPlayer(PlatformGlobals *) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x47364F57: PlatformPlayer::PlatformPlayer(PlatformGlobals *) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x47369F81: NPP_New (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== Address 0x458259DC is 24 bytes inside a block of size 204 free'd ==9190== at 0x4015E64A: __builtin_delete (vg_clientfuncs.c:199) ==9190== by 0x4015E66A: operator delete(void*) (vg_clientfuncs.c:208) ==9190== by 0x47EBD681: Sender::~Sender() (artscbackend.cc:471) ==9190== by 0x47EBD6D0: virtual thunk to Sender::~Sender() (artscbackend.cc:431) ==9190== by 0x486FC0E4: Arts::Object_base::_destroy() (object.cc:357) ==9190== by 0x486FD35B: Arts::Object_skel::_release() (object.cc:599) ==9190== by 0x48701AB0: virtual thunk to Arts::Object_skel::_release() (object.h:209) ==9190== by 0x47EBDB47: Sender::close() (artscbackend.cc:519) ==9190== by 0x47EBDD60: virtual thunk to Sender::close() (artscbackend.cc:431) ==9190== by 0x47EB9526: arts_backend_close_stream (artscbackend.cc:634) ==9190== by 0x4020591C: arts_close_stream (artsc.c:174) ==9190== by 0x40201714: close (artsdsp.c:527) ==9190== by 0x4735CDCF: (within /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x4735D108: UnixSoundOSS::~UnixSoundOSS(void) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x4735C978: PlatformSoundMix::CloseDevice(void) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== ==9190== 1 errors in context 4 of 13: ==9190== Invalid write of size 4 ==9190== at 0x47EBDAF7: Sender::close() (../soundserver/soundserver.h:453) ==9190== by 0x47EBDD60: virtual thunk to Sender::close() (artscbackend.cc:431) ==9190== by 0x47EB9526: arts_backend_close_stream (artscbackend.cc:634) ==9190== by 0x4020591C: arts_close_stream (artsc.c:174) ==9190== by 0x40201714: close (artsdsp.c:527) ==9190== by 0x4735CDCF: (within /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x4735D108: UnixSoundOSS::~UnixSoundOSS(void) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x4735C978: PlatformSoundMix::CloseDevice(void) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x4735C4A0: PlatformSoundMix::PlatformConstruct(CSoundDescriptor *, int *, int *) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x472DBA2C: CoreSoundMix::Construct(CoreGlobals *) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x47324ABD: CoreGlobals::Init(void) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x472FB1A0: CorePlayer::CorePlayer(PlatformGlobals *) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x47331AE8: UnixCommonPlayer::UnixCommonPlayer(PlatformGlobals *) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x47364F57: PlatformPlayer::PlatformPlayer(PlatformGlobals *) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x47369F81: NPP_New (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== Address 0x458259D8 is 20 bytes inside a block of size 204 free'd ==9190== at 0x4015E64A: __builtin_delete (vg_clientfuncs.c:199) ==9190== by 0x4015E66A: operator delete(void*) (vg_clientfuncs.c:208) ==9190== by 0x47EBD681: Sender::~Sender() (artscbackend.cc:471) ==9190== by 0x47EBD6D0: virtual thunk to Sender::~Sender() (artscbackend.cc:431) ==9190== by 0x486FC0E4: Arts::Object_base::_destroy() (object.cc:357) ==9190== by 0x486FD35B: Arts::Object_skel::_release() (object.cc:599) ==9190== by 0x48701AB0: virtual thunk to Arts::Object_skel::_release() (object.h:209) ==9190== by 0x47EBDB47: Sender::close() (artscbackend.cc:519) ==9190== by 0x47EBDD60: virtual thunk to Sender::close() (artscbackend.cc:431) ==9190== by 0x47EB9526: arts_backend_close_stream (artscbackend.cc:634) ==9190== by 0x4020591C: arts_close_stream (artsc.c:174) ==9190== by 0x40201714: close (artsdsp.c:527) ==9190== by 0x4735CDCF: (within /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x4735D108: UnixSoundOSS::~UnixSoundOSS(void) (in /home/staikos/.netscape/plugins/libflashplayer.so) ==9190== by 0x4735C978: PlatformSoundMix::CloseDevice(void) (in /home/staikos/.netscape/plugins/libflashplayer.so) --Boundary-00=_u/NF/QC3HjWL5aJ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kde-multimedia mailing list kde-multimedia@mail.kde.org http://mail.kde.org/mailman/listinfo/kde-multimedia --Boundary-00=_u/NF/QC3HjWL5aJ--