Hm, je sais pas trop utiliser Valgrind, et je sais pas si j'ai le temps de manger les kilomètres de manuel avant le 3
janvier. Donc voilà le rapport que le logiciel m'a sorti :
valgrind --leak-check=yes ./Prologin3
==20363== Memcheck, a memory error detector
==20363== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==20363== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info
==20363== Command: ./Prologin3
==20363==
==20363== Can't extend stack to 0xbe590390 during signal delivery for thread 1:
==20363== no stack segment
==20363==
==20363== Process terminating with default action of signal 11 (SIGSEGV)
==20363== Access not within mapped region at address 0xBE590390
==20363== at 0x80483B9: P\$PROLOGIN3_TRIRAPIDE\$TTAB\$SMALLINT\$SMALLINT (Prologin3.pas:96)
==20363== If you believe this happened as a result of a stack
==20363== overflow in your program's main thread (unlikely but
==20363== possible), you can try to increase the size of the
==20363== main thread stack using the --main-stacksize= flag.
==20363== The main thread stack size used in this run was 8388608.
==20363==
==20363== HEAP SUMMARY:
==20363== in use at exit: 0 bytes in 0 blocks
==20363== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==20363==
==20363== All heap blocks were freed -- no leaks are possible
==20363==
==20363== For counts of detected and suppressed errors, rerun with: -v
==20363== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Erreur de segmentation
Que je ne comprends qu'assez moyennement, pour être franc. Est-ce un dépassement de pile dû à la récursivité du tri que
j'utilise ? Si oui, alors pourquoi est-ce que ça n'arrive qu'à moi, c'est dû au fait que je code en Pascal ? =/
Et pourquoi "Erreur de segmentation", alors que quand je le lance normalement ça n'arrive pas ?
Je vais essayer d'autres tris, je vous tiens au courant...