Skip to content

backtraces are concatenated when flambda turned on #7262

@vicuna

Description

@vicuna

Original bug ID: 7262
Reporter: mon
Status: closed (set by @mshinwell on 2016-12-08T11:31:50Z)
Resolution: duplicate
Priority: low
Severity: minor
Platform: amd64
OS: linux
Target version: 4.05.0 +dev/beta1/beta2/beta3/rc1
Category: runtime system and C interface
Monitored by: @gasche

Bug description

raising exception from C code concatenates backtrace with backtrace from previous raise if using 4.03.0+flambda

Steps to reproduce

$ opam switch 4.03.0; eval opam config env; make clean && make foo && ./foo
rm -f *.o *.cmx *.cmi foo
cc -c -o stub.o stub.c
ocamlopt stub.o foo.ml -o foo




$ opam switch 4.03.0+flambda; eval opam config env; make clean && make foo && ./foo

To setup the new switch in the current shell, you need to run:

eval opam config env
rm -f *.o *.cmx *.cmi foo
cc -c -o stub.o stub.c
ocamlopt stub.o foo.ml -o foo
Called from file "foo.ml", line 7, characters 10-16

Called from file "foo.ml", line 7, characters 10-16
Called from file "foo.ml", line 7, characters 10-16

Called from file "foo.ml", line 7, characters 10-16
Called from file "foo.ml", line 7, characters 10-16
Called from file "foo.ml", line 7, characters 10-16

Called from file "foo.ml", line 7, characters 10-16
Called from file "foo.ml", line 7, characters 10-16
Called from file "foo.ml", line 7, characters 10-16
Called from file "foo.ml", line 7, characters 10-16

File attachments

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions