Original bug ID: 5503
Reporter: Hendrik Tews
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2015-12-11T18:19:49Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.1
Fixed in version: 3.13.0+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Has duplicate: #4502
Monitored by: mehdi @glondu @xclerc @jberdine jm
Bug description
ocamlbuild uses wrong filename concatenation when it tries to open the _digest file. It therefore dies with a Sys_error when given an absolute build dir.
Steps to reproduce
touch t.ml
ocamlbuild -build-dir /tmp/x t.byte
this dies with
Fatal error: exception Sys_error("/tmp//tmp/x/_digests: No such file or directory")
because it does
open("/tmp//tmp/x/_digests", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)
Additional information
The bug is also present in 3.13.0+dev11 (2012-01-26)
File attachments
Original bug ID: 5503
Reporter: Hendrik Tews
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2015-12-11T18:19:49Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.12.1
Fixed in version: 3.13.0+dev
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Has duplicate: #4502
Monitored by: mehdi @glondu @xclerc @jberdine jm
Bug description
ocamlbuild uses wrong filename concatenation when it tries to open the _digest file. It therefore dies with a Sys_error when given an absolute build dir.
Steps to reproduce
touch t.ml
ocamlbuild -build-dir /tmp/x t.byte
this dies with
Fatal error: exception Sys_error("/tmp//tmp/x/_digests: No such file or directory")
because it does
open("/tmp//tmp/x/_digests", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 ENOENT (No such file or directory)
Additional information
The bug is also present in 3.13.0+dev11 (2012-01-26)
File attachments