FS#63438 - [crystal] Code execution completely broken

Attached to Project: Community Packages
Opened by Andy Nicholson (andrewdotnich) - Monday, 12 August 2019, 02:18 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 12 August 2019, 15:39 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

tl;dr: Running `crystal build`, `crystal run`, `crystal eval` all fail HARD when invoked.


Package versions:

* crystal : 0.30.0-3
* core/libevent: 2.1.11-1

Running `crystal -v`:

Crystal 0.30.0 (2019-08-06)

LLVM: 8.0.1
Default target: x86_64-pc-linux-gnu

Minimal steps to reproduce #1:

1. `$ crystal eval "puts 1+1"`

Expected:
"2"

Actual:

1. `crystal` outputs "[warn] event_reinit: forked from the event_loop." 511 times.
2. Something (a subprocess? it's not in the stderr or stdout for the parent process) outputs "Unhandled exception in spawn: Channel is closed (Channel::ClosedError)" many times for each line of 1) above
3. The process appears to hang until killed with C-c.


Minimal steps to reproduce #2:

1. `$ crystal build hello.cr` (attached)

Expected:

executable file `hello` created that outputs "Hello" to stdout.

Actual:

As per example 1, with additional

`Unhandled exception in spawn: Channel is closedException (Channel::ClosedErrorChannel is closedUnhandled exception in spawn: [warn] Epoll ADD(4) on 8 retried as MOD; that failed too: No such file or directory`

lines sprinkled throughout.

Tested on my Dell XPS15, and in a clean Docker `archlinux/base` container in which I had run `pacman -Sy crystal shards`.
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Monday, 12 August 2019, 15:39 GMT
Reason for closing:  Fixed
Additional comments about closing:  crystal 0.30.0-4
Comment by Andy Nicholson (andrewdotnich) - Monday, 12 August 2019, 03:09 GMT
Looks like it's related to https://github.com/crystal-lang/crystal/issues/8044

Hopefully 0.30.1 is released soon.

Loading...