Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug information on camlp4-processed files is missing the file name #8436

Closed
vicuna opened this issue Jan 4, 2004 · 1 comment
Closed
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 4, 2004

Original bug ID: 2022
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Aleksey Nogin
Version: 3.07+13 (2004-01-04) from CVS
OS: Red Hat Linux 7.3
Submission from: charter-242-037.caltech.edu (131.215.242.37)

In the current CVS version of OCaml, if a file is preprocessed with camlp4, then
the debugging information (such as the one printed in OCAMLRUNPARAM=b
backtraces) has an empty file name. This used to work correctly in 3.06.

% cat test.ml
let _ = List.nth [] 1;;
% ocamlc -g -custom test.ml
% env OCAMLRUNPARAM=b ./a.out
Fatal error: exception Failure("nth")
Called from file "test.ml", line 1, character 21
% ocamlc -pp camlp4o -g -custom test.ml
% env OCAMLRUNPARAM=b ./a.out
Fatal error: exception Failure("nth")
Called from file "", line 1, character 21
% ocamlc -v
The Objective Caml compiler, version 3.07+13 (2004-01-04)
Standard library directory: /usr/lib/ocaml
% uname -a
Linux tehachapi.cs.caltech.edu 2.4.20-24.7 #1 Mon Dec 1 13:35:11 EST 2003 i686
unknown
% cat /etc/redhat-release
Red Hat Linux release 7.3 (Valhalla)

@vicuna
Copy link
Author

vicuna commented May 18, 2004

Comment author: administrator

see also #8349
MM working on a revamp of locations in camlp4 2004-01-07
the patch given in #8349 solves this problem too

Fixed by MM (new locations).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant