Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006490OCamlOCaml backend (code generation)public2014-07-16 12:352014-09-14 21:45
ReporterRichard Jones 
Assigned Toshinwell 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version4.02.0+beta1 / +rc1 
Target Version4.02.2+devFixed in Version 
Summary0006490: Stack traces in arm64 code are not displayed in gdb
DescriptionI ran ocamlopt.opt (compiled with -g) under gdb and placed a breakpoint in a random OCaml function. As you can see the stack trace is wrong after the first frame:

(gdb) break camlBtype__save_desc_1660
Breakpoint 5 at 0x4b2f34: file typing/btype.ml, line 402.
(gdb) cont
Continuing.

Breakpoint 5, 0x00000000004b2f34 in camlBtype__save_desc_1660 ()
    at typing/btype.ml:402
402 let save_desc ty desc =
(gdb) bt
#0 0x00000000004b2f34 in camlBtype__save_desc_1660 () at typing/btype.ml:402
#1 0x00000000004b98e8 in camlSubst__typexp_1250 () at typing/subst.ml:116
#2 0x00000000004b98e8 in camlSubst__typexp_1250 () at typing/subst.ml:116
0000003 0x00000000004b98e8 in camlSubst__typexp_1250 () at typing/subst.ml:116
0000004 0x00000000004b98e8 in camlSubst__typexp_1250 () at typing/subst.ml:116
0000005 0x00000000004b98e8 in camlSubst__typexp_1250 () at typing/subst.ml:116
0000006 0x00000000004b98e8 in camlSubst__typexp_1250 () at typing/subst.ml:116
0000007 0x00000000004b98e8 in camlSubst__typexp_1250 () at typing/subst.ml:116
0000008 0x00000000004b98e8 in camlSubst__typexp_1250 () at typing/subst.ml:116
0000009 0x00000000004b98e8 in camlSubst__typexp_1250 () at typing/subst.ml:116
[continues forever]
Steps To ReproduceCompile ocamlopt.opt with debugging enabled. This also applies to any OCaml program.

Place a breakpoint anywhere and run it.

Use gdb `bt' command to display the stack trace.

Stack traces are normal for C code, but consist of a repeated function for OCaml code.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2014-07-16 12:35 Richard Jones New Issue
2014-07-16 12:41 shinwell Assigned To => shinwell
2014-07-16 12:41 shinwell Status new => acknowledged
2014-07-16 16:42 doligez Target Version => 4.02.1+dev
2014-09-04 00:25 doligez Target Version 4.02.1+dev => undecided
2014-09-14 21:45 doligez Target Version undecided => 4.02.2+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker