[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New malfunction compiling Gambas3 (last master)


Il 09/08/24 23:44, Gianluigi ha scritto:
Hi Benoit,

sorry, now compiling I get no errors but I can't start Gambas, this is
the return of the terminal:

$ gambas3
*** buffer overflow detected ***: terminated
Annullato (core dump creato)

(*) GNU gdb

Regards and good night
Gianluigi

I keep getting the same error.
These are the terminal commands with valgrind:

gian@gian:~/gambasdevel/app/src/gambas3$ valgrind --version
valgrind-3.18.1
gian@gian:~/gambasdevel/app/src/gambas3$ valgrind --tool=memcheck
--num-callers=50 gbx3 > valgrind.out 2>&1
Annullato (core dump creato)

Output attached

Regards
Gianluigi

P.S. Benoit, are you sure that with:
git clone --depth=1 https://gitlab.com/gambas/gambas.git gambasdevel
I get the latest commit?
==161154== Memcheck, a memory error detector
==161154== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==161154== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info
==161154== Command: gbx3
==161154== 
*** buffer overflow detected ***: terminated
==161154== 
==161154== Process terminating with default action of signal 6 (SIGABRT)
==161154==    at 0x49139FC: __pthread_kill_implementation (pthread_kill.c:44)
==161154==    by 0x49139FC: __pthread_kill_internal (pthread_kill.c:78)
==161154==    by 0x49139FC: pthread_kill@@GLIBC_2.34 (pthread_kill.c:89)
==161154==    by 0x48BF475: raise (raise.c:26)
==161154==    by 0x48A57F2: abort (abort.c:79)
==161154==    by 0x4906675: __libc_message (libc_fatal.c:155)
==161154==    by 0x49B3599: __fortify_fail (fortify_fail.c:26)
==161154==    by 0x49B1F15: __chk_fail (chk_fail.c:28)
==161154==    by 0x48FE8DE: _IO_str_chk_overflow (iovsprintf.c:35)
==161154==    by 0x490AE33: _IO_default_xsputn (genops.c:399)
==161154==    by 0x490AE33: _IO_default_xsputn (genops.c:370)
==161154==    by 0x48F2FC9: outstring_func (vfprintf-internal.c:239)
==161154==    by 0x48F2FC9: __vfprintf_internal (vfprintf-internal.c:1593)
==161154==    by 0x48FE988: __vsprintf_internal (iovsprintf.c:95)
==161154==    by 0x49B1A30: __sprintf_chk (sprintf_chk.c:40)
==161154==    by 0x140F413C: sprintf (stdio2.h:38)
==161154==    by 0x140F413C: pop_dynamic_variable (jit_body.c:1202)
==161154==    by 0x140F45FB: pop_unknown (jit_body.c:1284)
==161154==    by 0x140F81A5: JIT_translate_body (jit_body.c:3406)
==161154==    by 0x140F2183: JIT_translate_func (jit.c:400)
==161154==    by 0x140F2183: JIT_translate (jit.c:519)
==161154==    by 0x140E33F1: Jit_Translate (main.c:41)
==161154==    by 0x176852: EXEC_native (gbx_exec.c:1312)
==161154==    by 0x171032: EXEC_loop (gbx_exec_loop.c:1589)
==161154==    by 0x1756EC: EXEC_function_loop (gbx_exec.c:896)
==161154==    by 0x14973A: GB_Call (gbx_api.c:1221)
==161154==    by 0x12B2E7: JIT_compile (gbx_jit.c:153)
==161154==    by 0x132596: load_without_inits (gbx_class_load.c:1292)
==161154==    by 0x133F5A: CLASS_load_real (gbx_class_load.c:1364)
==161154==    by 0x150BC4: ARCHIVE_load_exported_class.part.0 (gbx_archive.c:199)
==161154==    by 0x13BE41: PROJECT_load_finish (gbx_project.c:425)
==161154==    by 0x15537D: init (gbx.c:121)
==161154==    by 0x128F5B: main (gbx.c:445)
==161154== 
==161154== HEAP SUMMARY:
==161154==     in use at exit: 4,514,502 bytes in 12,352 blocks
==161154==   total heap usage: 15,549 allocs, 3,197 frees, 7,261,015 bytes allocated
==161154== 
==161154== LEAK SUMMARY:
==161154==    definitely lost: 143,376 bytes in 2,498 blocks
==161154==    indirectly lost: 128 bytes in 3 blocks
==161154==      possibly lost: 3,775,354 bytes in 7,169 blocks
==161154==    still reachable: 593,628 bytes in 2,661 blocks
==161154==         suppressed: 0 bytes in 0 blocks
==161154== Rerun with --leak-check=full to see details of leaked memory
==161154== 
==161154== For lists of detected and suppressed errors, rerun with: -s
==161154== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)

Follow-Ups:
Re: New malfunction compiling Gambas3 (last master)Gianluigi <gradobag@xxxxxxxxxxx>
References:
New malfunction compiling Gambas3 (last master)Gianluigi <gradobag@xxxxxxxxxxx>