xavierleroy / camlidl

Stub code generator for OCaml/C interface
Other
34 stars 8 forks source link

testcomp in tests folder is crashing #12

Open theSundayProgrammer opened 5 years ago

theSundayProgrammer commented 5 years ago

I am running Ubuntu 18.04.2 LTS. The application wouldn't compile until I changed CCPP=g++ in tests/Makefile. The application crashes when I run it. I have attached below the trace running under gdb.

..... This GDB was configured as "x86_64-linux-gnu". ... (gdb) run Starting program: /home/chakra/projects/ocaml/camlidl/tests/testcomp [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 1: AddRef: new refcount is 1 1: Release: new refcount is 0 1: destroying component. 1: destroy self. Testing IX interface... Calling f 10

Program received signal SIGSEGV, Segmentation fault. 0x000055555555d5b2 in camlidl_component_IX_F (_v_this=140737333665048, _v_x=21) at component_stubs.c:29 29 this->lpVtbl->F(this, x); (gdb) backtrace

0 0x000055555555d5b2 in camlidl_component_IX_F (_v_this=140737333665048, _v_x=21) at component_stubs.c:29

1 0x000055555557aa7c in caml_interprete (prog=0x7ffff7fab010, prog_size=) at interp.c:908

2 0x000055555557d774 in caml_main (argv=0x7fffffffde28) at startup_byt.c:448

3 0x000055555555cd8c in main (argc=, argv=) at main.c:44

(gdb)