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: 7015 Reporter: dariusf Status: closed (set by @xavierleroy on 2015-11-15T16:57:24Z) Resolution: not a bug Priority: normal Severity: crash Platform: Mac OS X OS: Mac OS X OS Version: 10.10.5 Version: 4.02.3 Category: tools (ocaml{lex,yacc,dep,debug,...}) Monitored by:@gasche
Bug description
I get
Fatal error: exception End_of_file
fish: Job 1, '~/ocaml/ocaml/debugger/ocamldebug a.out ' terminated by signal SIGSEGV (Address boundary error)
when asking ocamldebug to print a value.
I'm building from source, so the version of the debugger this happens in is 4.03.0+dev10-2015-07-29.
Steps to reproduce
A very simple program will do it, and it happens consistently.
let a = 1 in
print_endline "hello"
Start ocamldebug, then
goto 12 (this puts the breakpoint before print_endline)
print a
The text was updated successfully, but these errors were encountered:
We'll need more details:
Which version of Xcode, what was the output of configure, what's in your environment, are you sure the debugged program is launched with the right runtime?
Found the problem: I was compiling the debugged program with an older version of the compiler. Thanks for the suggestions, and sorry for the false alarm!
So in general, does the debugger for version X only work on programs compiled by the compiler in version X?
That explains it, then. In order to print values, the debugger looks for typing information in .cmi files, whose format is very dependent on the version of OCaml used. There is a magic number to prevent such version mismatches, but the truth is that it is not updated as often as needed to prevent all of them... Sorry for the inconvenience.
Original bug ID: 7015
Reporter: dariusf
Status: closed (set by @xavierleroy on 2015-11-15T16:57:24Z)
Resolution: not a bug
Priority: normal
Severity: crash
Platform: Mac OS X
OS: Mac OS X
OS Version: 10.10.5
Version: 4.02.3
Category: tools (ocaml{lex,yacc,dep,debug,...})
Monitored by: @gasche
Bug description
I get
Fatal error: exception End_of_file
fish: Job 1, '~/ocaml/ocaml/debugger/ocamldebug a.out ' terminated by signal SIGSEGV (Address boundary error)
when asking ocamldebug to print a value.
I'm building from source, so the version of the debugger this happens in is 4.03.0+dev10-2015-07-29.
Steps to reproduce
A very simple program will do it, and it happens consistently.
let a = 1 in
print_endline "hello"
Start ocamldebug, then
goto 12 (this puts the breakpoint before print_endline)
print a
The text was updated successfully, but these errors were encountered: