[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-solaris
Subject:    Re: [kde-solaris] Re: fibonacci
From:       Tobias Oetiker <oetiker () ee ! ethz ! ch>
Date:       2004-11-06 12:25:56
Message-ID: Pine.GSO.4.61.0411061324190.10769 () abin ! rr ! rgum ! pu
[Download RAW message or body]

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
> kdelibs/kio/kio/kurlcompletion.cpp.

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
14:35:53.443216000 +0200
+++ ./kio/kio/kurlcompletion.cpp        2004-10-29
14:49:23.063610000 +0200
@@ -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


cheers
tobi

> --Stefan
>
> ----
>
> On Friday 05 November 2004 23:52, Aaron Williams wrote:
>> Stefan
>>
>> On an unrelated note, I have come across a bug in Solaris which I
>> think is related to readdir_r.  See
>> http://bugs.kde.org/show_bug.cgi?id=90004
>>
>> 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.
>>
>> -Aaron
>
>
>

-- 
  ______    __   _
/_  __/_  / /  (_) 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
___________________________________________________
This message is from the kde-solaris mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde-solaris.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic