Skip to content

Location Parsing Bug #7905

@rgrinberg

Description

@rgrinberg

I have the following stack trace:

/usr/local/home/nroberts/.opam/ocaml-base-compiler/bin/dune diagnostics
Error: exception Invalid_argument("Bytes.create")
Raised by primitive operation at Stdlib__Bytes.make in file "[bytes.ml](http://bytes.ml/)", line
  42, characters 10-18
Called from Stdlib__String.make in file "[string.ml](http://string.ml/)" (inlined), line 41,
  characters 2-12
Called from Stdune__loc.pp_file_excerpt.pp_file_excerpt in file
  "otherlibs/stdune/src/[loc.ml](http://loc.ml/)", line 72, characters 52-73
Called from Stdune__result.bind in file "otherlibs/stdune/src/[result.ml](http://result.ml/)"
  (inlined), line 33, characters 12-15
Called from Stdune__result.O.(>>=) in file "otherlibs/stdune/src/[result.ml](http://result.ml/)"
  (inlined), line 68, characters 20-29
Called from Stdune__loc.pp_file_excerpt in file
  "otherlibs/stdune/src/[loc.ml](http://loc.ml/)", line 117, characters 6-158
Called from Stdune__loc.pp in file "otherlibs/stdune/src/[loc.ml](http://loc.ml/)", line 140,
  characters 5-72
Called from Main__diagnostics.format_diagnostic in file "bin/[diagnostics.ml](http://diagnostics.ml/)",
  line 25, characters 67-77
Called from Main__diagnostics.exec.(fun) in file "bin/[diagnostics.ml](http://diagnostics.ml/)", line
  50, characters 55-78
Called from Stdlib__List.iter in file "[list.ml](http://list.ml/)", line 110, characters 12-15
Called from Fiber__core.O.(>>|).(fun) in file "otherlibs/fiber/src/[core.ml](http://core.ml/)",
  line 250, characters 36-41
Called from Fiber__scheduler.exec in file "otherlibs/fiber/src/[scheduler.ml](http://scheduler.ml/)",
  line 73, characters 8-11

I must not crash.  Uncertainty is the mind-killer. Exceptions are the
little-death that brings total obliteration.  I will fully express my cases.
Execution will pass over me and through me.  And when it has gone past, I
will unwind the stack along its path.  Where the cases are handled there will
be nothing.  Only I will remain.

And that the commit from which this error was triggered is: oxcaml/oxcaml@7ae1088

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions