[Vm-dev] Re: [Pharo-project] RE : cannot modify class comments on Linux

David T. Lewis lewis at mail.msen.com
Fri Apr 26 12:21:19 UTC 2013


On Fri, Apr 26, 2013 at 12:44:49PM +0200, Igor Stasenko wrote:
> On 26 April 2013 10:27, Pavel Krivanek <pavel.krivanek at gmail.com> wrote:
> > 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:
> >
> This is nasty one.
> What i worry that it affects much more than code working with .changes file.
> 

Indeed, I expect that a bug like this would effect *anything* that involves
writing to a positionable file.

It's not clear to me from the discussion if this is a bug in the runtime
C library, or in the gcc optimizer (sic). Is it the case that a pre-compiled
VM that works properly on one Linux platform will have this bug if run on
another Linux platform that has a different runtime clib? Or is it the
case that a VM compiled from source on one platform behaves differently
than the same VM compiled from source on a different Linux platform?

Dave

> 
> > Cheers,
> > -- Pavel
> >
> >
> > On Fri, Apr 26, 2013 at 9:57 AM, GOUBIER Thierry <thierry.goubier at 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-bounces at lists.gforge.inria.fr
> >> [pharo-project-bounces at lists.gforge.inria.fr] de la part de Pavel Krivanek
> >> [pavel.krivanek at gmail.com]
> >> Date d'envoi : jeudi 25 avril 2013 21:32
> >> ?? : Pharo-project at 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 <giseladecuzzi at gmail.com>
> >> wrote:
> >>>
> >>> I'm on 64-bit Ubuntu 12.04
> >>>
> >>>
> >>> 2013/4/25 Pavel Krivanek <pavel.krivanek at 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
> >>>> <giseladecuzzi at 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.krivanek at 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
> >>>>>
> >>>>>
> >>>>
> >>>
> >>
> >
> 
> 
> 
> -- 
> Best regards,
> Igor Stasenko.


More information about the Vm-dev mailing list