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

Another exception printing bug #4476

Closed
vicuna opened this issue Jan 11, 2008 · 3 comments
Closed

Another exception printing bug #4476

vicuna opened this issue Jan 11, 2008 · 3 comments
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Jan 11, 2008

Original bug ID: 4476
Reporter: gerd
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2010-05-12T15:15:23Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.10.0
Fixed in version: 3.11.0
Category: ~DO NOT USE (was: OCaml general)
Related to: #3214

Bug description

In native code, Invalid_argument exceptions thrown by illegal array accesses cannot be fully printed by Printexc.to_string. Here is a test program:

let e = try [| |].(0); raise Not_found with e -> e;;
let e' = Invalid_argument "foo";;
print_endline (Printexc.to_string e);;
print_endline (Printexc.to_string e');;

This prints:
Invalid_argument(_)
Invalid_argument("foo")

In bytecode, everything is correct.

Additional information

Maybe related to #3214.

@vicuna
Copy link
Author

vicuna commented Jan 21, 2008

Comment author: @damiendoligez

reproduced on Mac OS 10.5 / Intel

@vicuna
Copy link
Author

vicuna commented Jan 22, 2008

Comment author: @damiendoligez

fixed in 3.10.2+dev2

@vicuna
Copy link
Author

vicuna commented Jan 29, 2008

Comment author: @damiendoligez

Too dangerous to fix for 3.10.2 after all.
Will be fixed in 3.11.

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

2 participants