[kde-solaris] Re: fibonacci
oetiker at ee.ethz.ch
Sat Nov 6 13:25:56 CET 2004
Today Stefan Teleman wrote:
> Yes, Sir, You Are Correct. :-)
> I already sent a patch for this to kde-core-devel. I'm attaching the
> patch here as well. The patch belongs to
while we are at it ... I found my gcc compiled kde to crash without
this as soon as one typed something into a fileopen dialog.
--- ./kio/kio/kurlcompletion.cpp~ 2004-10-29
+++ ./kio/kio/kurlcompletion.cpp 2004-10-29
@@ -214,7 +214,11 @@
// chdir to the directroy so we won't have to deal with full paths
// with stat()
- QString path = QDir::currentDirPath();
+ QString path;
+ // this is to try to trick gcc into not doing anything funny here.
+ // on solaris with g++ 3.3.3 I had a situation where path was pointing
+ // into an illegal memmory area after when currentDirPath was run.
+ path = QDir::currentDirPath();
QDir::setCurrent( *it );
// Loop through all directory entries
> On Friday 05 November 2004 23:52, Aaron Williams wrote:
>> On an unrelated note, I have come across a bug in Solaris which I
>> think is related to readdir_r. See
>> I am able to consistently reproduce this bug on Solaris at least
>> with my gcc compiled KDE. Can you try it as well? All you need
>> are some long file names.
______ __ _
/_ __/_ / / (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
/ // _ \/ _ \/ / System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/ http://people.ee.ethz.ch/oetiker +41(0)44-632-5286
More information about the kde-solaris