metaeducation / rebol-issues

6 stars 1 forks source link

On OSX - crashes when trying to read an empty directory #1676

Open rebolbot opened 14 years ago

rebolbot commented 14 years ago

Submitted by: PeterWood

REBOL crashes when trying to read an empty directory.

>> make-dir %mydir
== %mydir/

>> read %mydir
== Segmentation fault

CC - Data [ Version: alpha 99 Type: Bug Platform: Mac OSX Category: Native Reproduce: Always Fixed-in:none ]

rebolbot commented 14 years ago

Submitted by: meijeru

On Windows:

>> make-dir %my-dir
== %my-dir/
>> read %my-dir
** Access error: cannot open: %my-dir reason: -3
** Where: read
** Near: read %my-dir
rebolbot commented 14 years ago

Submitted by: BrianH

Both the Mac crash and Windows error are serious and should be fixed in the next release, if possible.

rebolbot commented 13 years ago

Submitted by: abolka

Also crashes on Linux.

As a workaround, specify the directory with a trailing slash, and it should work (on all platforms):

>> read %foo/
== []
>> read %foo
== Segmentation fault
rebolbot commented 11 years ago

Submitted by: abolka

The crash is a duplicate of #1675: for the crash, problem is not that the directory is empty, it's that the directory filename is specified without trailing slash.

However, the "access error" is of course a bug (but no crash).

rebolbot commented 10 years ago

Submitted by: abolka

In the core-tests suite.