lean icon indicating copy to clipboard operation
lean copied to clipboard

When /proc isn't mounted lean aborts: please catch exceptions and print messages from them

Open yurivict opened this issue 4 years ago • 2 comments

When /proc isn't mounted lean aborts:

$ lean 
Abort trap

You have a throw statement when file open fails, but it looks that this exception isn't caught.

yurivict avatar Mar 28 '21 04:03 yurivict

Access to /proc is required because lean needs to determine the absolute path of the executable (in order to find the core library path). The error message should be better though, I agree.

Is there a reason you want to run lean on a system without /proc?

gebner avatar Mar 29 '21 11:03 gebner

Is there a reason you want to run lean on a system without /proc?

On FreeBSD /proc isn't enabled by default and people would run without it.

yurivict avatar Mar 29 '21 16:03 yurivict