[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Crashes on closing applications
From: Thomas =?iso-8859-15?q?L=FCbking?= <thomas.luebking () web ! de>
Date: 2010-07-11 14:14:56
Message-ID: 201007111614.57240.thomas.luebking () web ! de
[Download RAW message or body]
Am Sunday 11 July 2010 schrieb Rolf Eike Beer:
> I just wonder why this is libstdc++-v3, openSuSE 11.2 uses gcc 4.4 by
> default?
I don't think the libstdc++ version ever changed since gcc3 (and indeed, it's
-v3 on gcc 4.5 as well)
The whole thing looks quite like a memory ("0x6" ...) corruption, but testing
gcc -O[n] std_string_seg.cpp -lstdc++ -o std_string_seg | n = 0-3
on the -plain std::string, no KDE- attachment doesn't fail at all
(i however don't know how -optimized- my libstdc++ was compiled)
So this is either in the particular OpenSuSE libstdc++ or an overflow in some
KDE lib.
I also attached a binary, compiled and linked on arch, 32bit x86, gcc4.5
prerelease, -O2, lisbstdc++.so.6.0.14 - maybe test it with gdb
Thomas
["std_string_seg.cpp" (text/x-c++src)]
#include <string>
#include <iostream>
int main()
{
std::string *abc = 0;
delete abc;
abc = new std::string("test");
std::cout << *abc; std::cout << '\n';
*abc = "test1";
std::cout << *abc; std::cout << '\n';
*abc = '\0';
std::cout << *abc;
delete abc;
}
["std_string_seg" (application/x-executable)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic