You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 7487 Reporter: berenger Assigned to:@gasche Status: resolved (set by @gasche on 2017-02-18T01:32:55Z) Resolution: not a bug Priority: normal Severity: major Version: 4.04.0 Category: standard library
Bug description
line 330, characters 2-47
Called from file "printf.ml", line 20, characters 28-44
I tried with 4.01.0, 4.03.0 and 4.04.0.
They all crash.
I am very surprised. Please tell me if you also observe this behavior.
This is not a compiler issue, your code is just broken: the function passed to with_out_file, instead of using the channel, returns a function that closes over the channel and then tries to use the channel after with_out_file returns.
Though it is true that functions of type .. -> (foo -> 'a) -> (foo -> 'a) are error prone because of currying.
Original bug ID: 7487
Reporter: berenger
Assigned to: @gasche
Status: resolved (set by @gasche on 2017-02-18T01:32:55Z)
Resolution: not a bug
Priority: normal
Severity: major
Version: 4.04.0
Category: standard library
Bug description
line 330, characters 2-47
Called from file "printf.ml", line 20, characters 28-44
I tried with 4.01.0, 4.03.0 and 4.04.0.
They all crash.
I am very surprised. Please tell me if you also observe this behavior.
Steps to reproduce
git clone https://github.com/UnixJunkie/ocaml_bug_01.git
cd ocaml_bug_01
./crashme.sh
Additional information
I suspect some recent change in the format module introduced this problem.
The text was updated successfully, but these errors were encountered: