My program fails with sigtrap

hi! Im using code::blocks, programing in C++, and i have this problem:
everytime that im debugging the program stops and frezzes the debugger(lossing the yellow arrow in the codeline) when i reach the end of this piece of code;
1
2
3
4
5
    int contador = 0;
    while(instrucciones[contador] != 0){
        this->agregarInstruccion(instrucciones[contador]);
        contador++;
    }



instrucciones is an array of int.

When im debugging i look at the callstack and looks like this:

#0 00000000 Archivador::agregarVariasInstrucciones(this=0x3610a8,instrucciones=0x36d328) (I:\Progra 2\Loop Code Compiler\Archivador.cpp:42)
#1 004081EA Traductor::traducirAsignar(this=0x361070, numeroDeLinea=20) (I:\Progra 2\Loop Code Compiler\Traductor.cpp:198)
#2 00407771 Traductor::elegirInstruccionAsignar(this=0x361070, laInstruccion={static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x3646cc "asignar"}}, numeroDeLinea=20) (I:\Progra 2\Loop Code Compiler\Traductor.cpp:123)
#3 0040727B Traductor::filtrarInstruccion(this=0x361070, laInstruccion={static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x3646cc "asignar"}}, numeroDeLinea=20) (I:\Progra 2\Loop Code Compiler\Traductor.cpp:104)
#4 0040626C Traductor::iniciarPrimerRecorrido(this=0x361070) (I:\Progra 2\Loop Code Compiler\Traductor.cpp:35)
#5 004094EB Traductor::prueba(this=0x361070) (I:\Progra 2\Loop Code Compiler\Traductor.cpp:411)
#6 00409783 main(cantidad=1, args=0x360fe8) (I:\Progra 2\Loop Code Compiler\main.cpp:31)

and when the problems occurs and the debugger stops it looks like this:

#0 77495655 ntdll!RtlpSetUserPreferredUILanguages() (C:\Windows\system32\ntdll.dll:??)
#1 7747DA65 ntdll!RtlInitUnicodeString() (C:\Windows\system32\ntdll.dll:??)
#2 77461A47 ntdll!KiRaiseUserExceptionDispatcher() (C:\Windows\system32\ntdll.dll:??)
#3 774966AE ntdll!RtlpSetUserPreferredUILanguages() (C:\Windows\system32\ntdll.dll:??)
#4 7745A0EE ntdll!KiRaiseUserExceptionDispatcher() (C:\Windows\system32\ntdll.dll:??)
#5 77426536 wtoi64() (C:\Windows\system32\ntdll.dll:??)
#6 76DA98CD msvcrt!free() (C:\Windows\system32\msvcrt.dll:??)
#7 00000000 0x00360000 in ??() (??:??)
#8 00000000 0x00000000 in ??() (??:??)

So if someone has any clue of whats happening, im all eyes :D. Thanks!
Last edited on
Topic archived. No new replies allowed.