[Bug 1116282] Re: valgrind reports Invalid read of size 8 in wcscmp

scrawl 1116282 at bugs.launchpad.net
Fri Feb 28 17:23:42 UTC 2014


*** This bug is a duplicate of bug 1089722 ***
    https://bugs.launchpad.net/bugs/1089722

According to https://bugs.kde.org/show_bug.cgi?id=307828, should be
fixed in valgrind 3.9

** Bug watch added: KDE Bug Tracking System #307828
   https://bugs.kde.org/show_bug.cgi?id=307828

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1116282

Title:
  valgrind reports Invalid read of size 8 in wcscmp

Status in “eglibc” package in Ubuntu:
  New

Bug description:
  When exiting my application, valgrind reports an error.
  Error might be in glibc or libstdc++ or it might be a false-positive from valgrind as well.
  A google search pointed me to a similar bug in redhat : https://bugzilla.redhat.com/show_bug.cgi?id=755242
  I think a simple instanciation of std::locale in a hello world should reproduce the bug.

  ==12625== Invalid read of size 8
  ==12625==    at 0x5C53A10: wcscmp (wcscmp.S:208)
  ==12625==    by 0x54F5EF3: std::moneypunct<wchar_t, false>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
  ==12625==    by 0x54F5F78: std::moneypunct<wchar_t, false>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
  ==12625==    by 0x54EAFE4: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
  ==12625==    by 0x54EB11C: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
  ==12625==    by 0x5BEDD1C: __cxa_finalize (cxa_finalize.c:56)
  ==12625==    by 0x4EA9482: ??? (in /home/jeremy/git/myapp_x86_64-linux-gnu/lib/libMyApp.so)
  ==12625==    by 0x400F91D: _dl_fini (dl-fini.c:254)
  ==12625==    by 0x5BED900: __run_exit_handlers (exit.c:78)
  ==12625==    by 0x5BED984: exit (exit.c:100)
  ==12625==    by 0x5BD3773: (below main) (libc-start.c:258)
  ==12625==  Address 0x7830898 is 0 bytes after a block of size 8 alloc'd
  ==12625==    at 0x4C2AAA4: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  ==12625==    by 0x54F5BD9: std::moneypunct<wchar_t, false>::_M_initialize_moneypunct(__locale_struct*, char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
  ==12625==    by 0x54ED516: std::locale::_Impl::_Impl(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
  ==12625==    by 0x54EDFB9: std::locale::locale(char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
  ==12625==    by 0x4F78FAE: boost::filesystem::path::codecvt() (path.cpp:911)
  ==12625==    by 0x4F7946E: boost::filesystem::path::begin() const (path.hpp:202)
  ==12625==    by 0x4F79BD7: boost::filesystem::path::compare(boost::filesystem::path const&) const (path.cpp:193)
  ==12625==    by 0x4F79D43: boost::filesystem::path::extension() const (path.hpp:615)
  [... My app ...]

  
  1) Ubuntu 12.10
  2) apt-cache policy libc6
  libc6:
    Installé : 2.15-0ubuntu20
    Candidat : 2.15-0ubuntu20
    Table de version :
   *** 2.15-0ubuntu20 0
          500 http://fr.archive.ubuntu.com/ubuntu/ quantal/main amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 12.10
  Package: libc6 2.15-0ubuntu20
  ProcVersionSignature: Ubuntu 3.5.0-23.35-generic 3.5.7.2
  Uname: Linux 3.5.0-23-generic x86_64
  ApportVersion: 2.6.1-0ubuntu10
  Architecture: amd64
  Date: Tue Feb  5 14:57:55 2013
  InstallationDate: Installed on 2013-01-03 (32 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  SourcePackage: eglibc
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1116282/+subscriptions



More information about the foundations-bugs mailing list