[perl #57776] [BUG] PIO_buf_read segfault

2008-09-21 Thread Stephane Payrard via RT
A better patch that stats the opened file. That avoids possible race conditions and is faster. thx to jonathan and NotFound for pointing the shortcomings of the previous patch. # now the test pass ok 3 - slurp() on directories fails --- ./src/io/io_unix.c.orig 2008-09-19 17:56:19.0

[perl #57776] [BUG] PIO_buf_read segfault

2008-09-21 Thread Stephane Payrard via RT
the problematic test is: slurp("./t") Unix accepts to open a directory but that leads to problem down the pipe. This following patch, apparently innocent, should fix the problem by refusing to open a directory but it triggers a memory bug. ../../parrot ../../runtime/parrot/library/PGE/Per