<div dir="ltr"><div>I was in impression that I got unfreed stuff with latest revision, but I was wrong.</div><div>I'm still unable to figure out what crashes the JIT in the big project.</div><div><br></div><div>gdb gives me this:</div><div><br></div><div>Program received signal SIGSEGV, Segmentation fault.<br>JIT_load_class (class=class@entry=0x8af89200000009) at jit.c:474<br>474 if (class->ready || class->in_load)<br>(gdb) bt<br>#0 0x00007fffefd55c11 in JIT_load_class (class=class@entry=0x8af89200000009)<br> at jit.c:474<br>#1 0x00007fffefd55e18 in get_type (n=<optimized out>, n@entry=-3)<br> at jit_body.c:314<br>#2 0x00007fffefd594bc in JIT_translate_body (code=2819) at jit_body.c:1109<br>#3 0x00007fffefd594bc in JIT_translate_body (func=func@entry=0x8b6668, ind=ind@entry=4) at jit_body.c:2991<br>#4 0x00007fffefd55a74 in JIT_translate (index=4, func=0x8b6668) at jit.c:298<br>#5 0x00007fffefd55a74 in JIT_translate (name=<optimized out>, from=from@entry=0x4711fd "") at jit.c:431<br>#6 0x00007fffefd49a71 in Jit_Translate (_object=<optimized out>, _param=0x7ffff64d41e0) at main.c:35<br>#7 0x000000000046169d in EXEC_native () at gbx_exec.c:1355<br>#8 0x0000000000460550 in EXEC_native_check (defined=1 '\001')<br> at gbx_exec.c:1152<br>#9 0x000000000045425a in EXEC_loop () at gbx_exec_loop.c:1160<br>#10 0x000000000045f9a4 in EXEC_function_loop () at gbx_exec.c:913<br>#11 0x000000000045f8cf in EXEC_function_real () at gbx_exec.c:900<br>#12 0x0000000000462524 in EXEC_public_desc (class=0x69afc8, object=0x0, desc=0x8a72b8, nparam=1) at gbx_exec.c:1598<br>#13 0x000000000042adc0 in GB_Call (_func=0x692ad0 <_jit_compile_func>, nparam=1, release=0) at gbx_api.c:1105<br>#14 0x0000000000406348 in JIT_compile (arch=0x0) at gbx_jit.c:116<br></div><div><br></div><div>I compiled the interpreter without optimizations, but still there are missing values.</div><div><br></div><div>Meanwhile I did some poking with the GambasTester and I find new crash. See the attachment. <br></div><div>The class does include "..." argument, but not in the function, which is compiled with JIT.</div><div><br></div><div>These are the problem lines:</div><div><br></div><div>Fast Static Public Sub _call() As String<br> <br> Return "Called"<br> <br>End<br></div><div><br></div><div><br></div><div>Jussi<br></div><div><br></div><div><br> </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 3, 2018 at 11:26 PM, Benoît Minisini <span dir="ltr"><<a href="mailto:g4mba5@gmail.com" target="_blank">g4mba5@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le 03/07/2018 à 21:52, Jussi Lahtinen a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have multiple crashes in my big project. I will not send the source, but I will isolate the problem code.<br>
However I think I wait until the memory leaks are fixed, since it seems the crashes are not easily tracked right now. The error occurs somewhere much earlier, than what appears to cause the crash.<br>
<br>
<br>
Jussi<br>
<br>
</blockquote>
<br></span>
The memory leaks I talked previously were fixed.<br>
<br>
To track the crash, run Gambas with valgrind:<br>
<br>
$ cd /my/project<br>
$ GB_JIT_DEBUG=1 GB_JIT_CFLAGS="-O0 -g" valgrind --tool=memcheck --num-callers=50 gbx3<br>
<br>
Regards,<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Benoît Minisini<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</div></div></blockquote></div><br></div>