[Lazarus] Why does linux+fpc2.2.4+modern lazarus hang? [was: FindInvalidUTF8Character hanging linux hard?]

Luca Olivetti luca at wetron.es
Thu Nov 19 11:49:34 CET 2009


En/na Luca Olivetti ha escrit:
> En/na Luca Olivetti ha escrit:
>> En/na Mattias Gaertner ha escrit:
>>
>>>> Long version:
>>>>
>>>> I have a (relatively simple) program that has been running 
>>>> flawlessly 24x7 the last 4 years.
>>>> [...]
>>>> The most intriguing part is that, under the test conditions, 
>>>> FindInvalidUTF8Character is only given pure ASCII strings, so it
>>>> should never enter the branches where it checks p[1], p[2] or p[3],
>>>> so I'm really puzzled.
>>>
>>> Me too. Nevertheless, I fixed FindInvalidUTF8Character.
>>
>> Thanks.
>> Meanwhile the program has been running all the week-end without 
>> hanging the system.
> 
> Well, it hanged again today, with no call to FindInvalidUTF8Character in 
> sight. I hoped I nailed it but it was a red herring :-(
> Note that the version that worked through the week-end was compiled with 
> gtk1, the one that hanged today with gtk2 (but I think that's another 
> red herring).
> I'm re-resting now the gtk1 version to see what happens.

Well, I think (though I cannot be sure until I had the system running 
more time) that I found a solution: I reverted the development 
environment to the same situation as 2 years ago (when I made the last 
successful modification to this program), i.e:

fpc 2.0.4 (with a couple of patches so that the ide works with gtk2 even 
if the final program is for gtk1)

lazarus svn 11880 (I think I used an earlier version at the time, but I 
couldn't determine the exact version, this one is one of the latest 
compiling with fpc 2.0.4 and working with the ide compiled for gtk2)

If this works (crossing fingers), I'm *not* happy with the solution, 
since I'd really like to know what happened to make linux hang hard 
using a newer fpc and a newer lazarus (I cannot say which one is the 
culprit).
This is running on an epia board, though it's a nehemiah and it 
shouldn't be affected by the cmov issue (if that could be the cause of 
the problem, which I doubt).

Bye
-- 
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133)  Fax +34 93 5883007




More information about the Lazarus mailing list