[Gambas-user-fr] [gb.eval.highlight] Crash
Brought to you by:
gambas
From: Adrien P. <adr...@gm...> - 2012-03-31 19:46:42
|
Bonsoir, J'ai un crash avec gb.eval.highlight sur une chaîne un peu spéciale : Voici le code (fort simple) : Public Sub Main() Highlight.Analyze("{ Label1 Label") End Résultat : erreur #11, et voici ce qu'en dit valgrind : [adrien@adrien-desktop TestHighlightPlante]$ valgrind --leak-check=full gbx3 ./ ==19702== Memcheck, a memory error detector ==19702== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al. ==19702== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info ==19702== Command: gbx3 ./ ==19702== ==19702== Conditional jump or move depends on uninitialised value(s) ==19702== at 0x68F7104: EVAL_read (eval_read.c:823) ==19702== by 0x68FEA59: EVAL_analyze (eval_analyze.c:545) ==19702== by 0x68FF627: CHIGHLIGHT_analyze (CHighlight.c:161) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== ==19702== Conditional jump or move depends on uninitialised value(s) ==19702== at 0x68F710C: EVAL_read (eval_read.c:826) ==19702== by 0x68FEA59: EVAL_analyze (eval_analyze.c:545) ==19702== by 0x68FF627: CHIGHLIGHT_analyze (CHighlight.c:161) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== ==19702== Invalid read of size 1 ==19702== at 0x68F70FC: EVAL_read (eval_read.c:822) ==19702== by 0x68FEA59: EVAL_analyze (eval_analyze.c:545) ==19702== by 0x68FF627: CHIGHLIGHT_analyze (CHighlight.c:161) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== Address 0x5b044a0 is 0 bytes after a block of size 48 alloc'd ==19702== at 0x4C2993D: malloc (in /usr/lib/valgrind/vgpreload_memcheck- amd64-linux.so) ==19702== by 0x405D6B: my_malloc (gb_alloc_temp.h:341) ==19702== by 0x424D8F: STRING_new (gbx_string.c:303) ==19702== by 0x68FE9BA: EVAL_analyze (eval_analyze.c:531) ==19702== by 0x68FF627: CHIGHLIGHT_analyze (CHighlight.c:161) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== ==19702== Invalid read of size 1 ==19702== at 0x425334: STRING_add (gbx_string.c:733) ==19702== by 0x68FE8EB: add_result (eval_analyze.c:240) ==19702== by 0x68FF029: EVAL_analyze (eval_analyze.c:458) ==19702== by 0x68FF627: CHIGHLIGHT_analyze (CHighlight.c:161) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== Address 0x5b044a0 is 0 bytes after a block of size 48 alloc'd ==19702== at 0x4C2993D: malloc (in /usr/lib/valgrind/vgpreload_memcheck- amd64-linux.so) ==19702== by 0x405D6B: my_malloc (gb_alloc_temp.h:341) ==19702== by 0x424D8F: STRING_new (gbx_string.c:303) ==19702== by 0x68FE9BA: EVAL_analyze (eval_analyze.c:531) ==19702== by 0x68FF627: CHIGHLIGHT_analyze (CHighlight.c:161) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== ==19702== Invalid read of size 1 ==19702== at 0x68FF031: EVAL_analyze (eval_analyze.c:213) ==19702== by 0x68FF627: CHIGHLIGHT_analyze (CHighlight.c:161) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== Address 0x5b044a0 is 0 bytes after a block of size 48 alloc'd ==19702== at 0x4C2993D: malloc (in /usr/lib/valgrind/vgpreload_memcheck- amd64-linux.so) ==19702== by 0x405D6B: my_malloc (gb_alloc_temp.h:341) ==19702== by 0x424D8F: STRING_new (gbx_string.c:303) ==19702== by 0x68FE9BA: EVAL_analyze (eval_analyze.c:531) ==19702== by 0x68FF627: CHIGHLIGHT_analyze (CHighlight.c:161) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== ==19702== Conditional jump or move depends on uninitialised value(s) ==19702== at 0x68FE800: add_data (eval_analyze.c:138) ==19702== by 0x68FF08B: EVAL_analyze (eval_analyze.c:472) ==19702== by 0x68FF627: CHIGHLIGHT_analyze (CHighlight.c:161) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== ==19702== Conditional jump or move depends on uninitialised value(s) ==19702== at 0x68FF6F4: CHIGHLIGHT_analyze (CHighlight.c:182) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== ==19702== Conditional jump or move depends on uninitialised value(s) ==19702== at 0x68FF6E0: CHIGHLIGHT_analyze (CHighlight.c:44) ==19702== by 0x40B138: EXEC_native (gbx_exec.c:1265) ==19702== by 0x432A24: EXEC_loop (gbx_exec_loop.c:1104) ==19702== by 0x40A2DB: EXEC_function_loop (gbx_exec.c:861) ==19702== by 0x40A951: EXEC_function_real (gbx_exec.c:848) ==19702== by 0x4049B8: main (gbx.c:378) ==19702== ==19702== ==19702== HEAP SUMMARY: ==19702== in use at exit: 1,390 bytes in 5 blocks ==19702== total heap usage: 430 allocs, 425 frees, 106,827 bytes allocated ==19702== ==19702== LEAK SUMMARY: ==19702== definitely lost: 0 bytes in 0 blocks ==19702== indirectly lost: 0 bytes in 0 blocks ==19702== possibly lost: 0 bytes in 0 blocks ==19702== still reachable: 1,390 bytes in 5 blocks ==19702== suppressed: 0 bytes in 0 blocks ==19702== Reachable blocks (those to which a pointer was found) are not shown. ==19702== To see them, rerun with: --leak-check=full --show-reachable=yes ==19702== ==19702== For counts of detected and suppressed errors, rerun with: -v ==19702== Use --track-origins=yes to see where uninitialised values come from ==19702== ERROR SUMMARY: 4101310 errors from 8 contexts (suppressed: 2 from 2) [adrien@adrien-desktop TestHighlightPlante]$ |