The reason is in the optimalizations in the latest glibc. It really does
not write the new content to the changes file immediately. We need to call
flush at the end of nextChunkPut:

Cheers,
-- Pavel

On Fri, Apr 26, 2013 at 9:57 AM, GOUBIER Thierry <thierry.goub...@cea.fr>wrote:

>  Reproduced on Ubuntu 13.04.
>
> Class organization remoteString filePositionHi is past the end of the
> changes file (i.e. exactly equal to the file size if the comment is the
> last operation).
>
> Thierry
>  ------------------------------
> *De :* pharo-project-boun...@lists.gforge.inria.fr [
> pharo-project-boun...@lists.gforge.inria.fr] de la part de Pavel Krivanek
> [pavel.kriva...@gmail.com]
> *Date d'envoi :* jeudi 25 avril 2013 21:32
> *À :* Pharo-project@lists.gforge.inria.fr
> *Objet :* Re: [Pharo-project] cannot modify class comments on Linux
>
>  Jaroslav wrote this:
> This does work on F17, but it doesn't work on F18, F19. Maybe glibc issue?
> I guess the reproducer needs glibc-2.16 and up, IMHO 12.04 has 2.15 same
> as F17, so I guess this would be also reproducible on Ubuntu 13.04.
>
>  -- Pavel
>
> On Thu, Apr 25, 2013 at 11:16 AM, Gisela Decuzzi 
> <giseladecu...@gmail.com>wrote:
>
>> I'm on 64-bit Ubuntu 12.04
>>
>>
>> 2013/4/25 Pavel Krivanek <pavel.kriva...@gmail.com>
>>
>>> Hi,
>>>
>>>  what architecture and distro do you use because I tried it on a 32-bit
>>> Debian and it worked. I'm on 64-bit Fedora 18. That may be the reason why
>>> the tests are not failing on CI. This error appears on all old system
>>> classes and on newely created classes too.
>>> Some next info: https://bugzilla.redhat.com/show_bug.cgi?id=956376
>>>
>>>  -- Pavel
>>>
>>> On Thu, Apr 25, 2013 at 10:58 AM, Gisela Decuzzi <
>>> giseladecu...@gmail.com> wrote:
>>>
>>>> Hi Pavel, I tried in Pharo 2.0 and 3.0 and it work well for me. (just
>>>> try in a random class comment)
>>>> Are you trying to modify a particular class comment?
>>>>
>>>>
>>>> 2013/4/25 Pavel Krivanek <pavel.kriva...@gmail.com>
>>>>
>>>>> Hi,
>>>>>
>>>>>  if you will try to modify a class comment on Linux, the error
>>>>> "RemoteString past end of file" will appear. On windows VM it seems to 
>>>>> work
>>>>> well. Can someone confirm this behavior on Linux. Squeak has the same
>>>>> problem.
>>>>>
>>>>>  Cheers,
>>>>> -- Pavel
>>>>>
>>>>
>>>>
>>>
>>
>

Reply via email to