Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#112 Invalid delete in Strigi::ZipInputStream::checkHeader

open-fixed
nobody
None
5
2011-10-02
2011-02-12
Joris Guisson
No

See https://bugs.kde.org/show_bug.cgi?id=266122

For some reason libstreams is crashing ktorrent:

==2735== Conditional jump or move depends on uninitialised value(s)
==2735== at 0x4005339: operator delete[](void*, std::nothrow_t const&)
(vg_replace_malloc.c:380)
==2735== by 0x5B3CE7: ??? (in /usr/lib/libstdc++.so.6.0.14)
==2735== by 0x5237C8: std::underflow_error::underflow_error(std::string
const&) (stdexcept.cc:72)
==2735== by 0x523FAD: virtual thunk to std::strstream::~strstream() (in
/usr/lib/libstdc++.so.6.0.14)
==2735== by 0xCF39AD: pthread_once (pthread_once.S:122)
==2735== by 0x5240A8: std::locale::locale() (strstream.cc:369)
==2735== by 0x520F97: std::ios_base::Init::Init() (locale_facets.h:1930)
==2735== by 0x4491935: Strigi::ZipInputStream::checkHeader(char const*, int)
(zipinputstream.cpp:36)
==2735== by 0x4493BEC: ??? (in /usr/lib/libstreams.so.0.7.2)
==2735== by 0x4471FCF: ??? (in /usr/lib/libstreams.so.0.7.2)
==2735== by 0xB428FB: call_init (dl-init.c:68)
==2735== by 0xB42A18: _dl_init (dl-init.c:132)
==2735== by 0xB348AE: ??? (in /lib/ld-2.13.so)
==2735==
==2735== Invalid free() / delete / delete[]
==2735== at 0x4005379: operator delete[](void*, std::nothrow_t const&)
(vg_replace_malloc.c:380)
==2735== by 0x5B3CE7: ??? (in /usr/lib/libstdc++.so.6.0.14)
==2735== by 0x5237C8: std::underflow_error::underflow_error(std::string
const&) (stdexcept.cc:72)
==2735== by 0x523FAD: virtual thunk to std::strstream::~strstream() (in
/usr/lib/libstdc++.so.6.0.14)
==2735== by 0xCF39AD: pthread_once (pthread_once.S:122)
==2735== by 0x5240A8: std::locale::locale() (strstream.cc:369)
==2735== by 0x520F97: std::ios_base::Init::Init() (locale_facets.h:1930)
==2735== by 0x4491935: Strigi::ZipInputStream::checkHeader(char const*, int)
(zipinputstream.cpp:36)
==2735== by 0x4493BEC: ??? (in /usr/lib/libstreams.so.0.7.2)
==2735== by 0x4471FCF: ??? (in /usr/lib/libstreams.so.0.7.2)
==2735== by 0xB428FB: call_init (dl-init.c:68)
==2735== by 0xB42A18: _dl_init (dl-init.c:132)
==2735== by 0xB348AE: ??? (in /lib/ld-2.13.so)
==2735== Address 0x4dfb24 is not stack'd, malloc'd or (recently) free'd

Full valgrind log files can be found in the KDE bug.

Discussion

  • Jos
    Jos
    2011-10-01

    • status: open --> closed-fixed
     
  • Joris Guisson
    Joris Guisson
    2011-10-02

    The bug is still open, I only closed it for ktorrent, because it is not a ktorrent bug.

     
  • Joris Guisson
    Joris Guisson
    2011-10-02

    • status: closed-fixed --> open-fixed