gburd / szl

Automatically exported from code.google.com/p/szl
Other
0 stars 0 forks source link

szl requires proc to be mounted #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From a chroot:

# szl hw2.szl
[FATAL sysutils.cc:79] assertion failed: CHECKGE(fd,0)
Aborted

# mount -t proc proc /proc

# szl hw2.szl 
Hello, World!

src/utilities/sysutils.cc:78
  int fd = open("/proc/meminfo", O_RDONLY);
  CHECK_GE(fd, 0);

I think something like the line below at 79 would work better:
CHECK_GE(fd,0) << ": Is proc mounted?";

Original issue reported on code.google.com by stra...@google.com on 29 Nov 2010 at 7:20

GoogleCodeExporter commented 9 years ago
Fair enough.  r48 adds a more informative error message.

Original comment by davi...@gmail.com on 1 Dec 2010 at 3:41

GoogleCodeExporter commented 9 years ago
Cool, thanks!

Original comment by stra...@google.com on 1 Dec 2010 at 8:10

GoogleCodeExporter commented 9 years ago

Original comment by dbh@google.com on 4 Dec 2010 at 10:40