Starting Perl script

Nick Burrett nick at dsvr.net
Wed Jan 2 05:35:00 PST 2002


Nicholas Clark <nick at ccl4.org> writes:

> On Wed, Jan 02, 2002 at 01:14:43PM +0000, Nick Burrett wrote:
> > Vincent Lefevre <vincent at vinc17.org> writes:
> > 
> > > On Wed, Jan 02, 2002 at 12:17:41 +0000, Nick Burrett wrote:
> > > > Hence perl, which is built with a much older UnixLib, will be accessing
> > > > data in the parent's process structure which won't make sense, and therefore
> > > > crash your computer.
> > > 
> > > Couldn't perl be recompiled and linked with the latest version of
> > > UnixLib?
> > 
> > Yes.  Things have moved on single that perl port, so it might not
> > be that easy.
> 
> I doubt that it is just a recompile.
> 
> [that's a very terse answer.
> perl is playing games when it execs another program so that it can do
> reliable output capture. I know it's not a recompile. It's big.
> ]
> 
> However, I thought that there was a UnixLib version magic number in the proc
> struct, and if the child finds that the parent's differs, the child ignores
> it. If not, why did I think that?

There was (or still is), but it didn't really work.  I think the issue
isn't as simple as the `if' check in __unixinit.
 

Nick.



More information about the gcc mailing list