- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Hi all,
I am a recent user of fortran on mac and keep getting this error when I execute my code:
error for object 0x100201c78: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
error for object 0x100201c78: incorrect checksum for freed object - object was probably modified after being freed.*** set a breakpoint in malloc_error_break to debugAny idea on what the problem is?
It seems related to memory allocation....
Thanks!
Marco
- Marcas:
- Intel® Fortran Compiler
Link copiado
3 Respostas
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Your program is writing outside allocated memory, or are using a pointer after freeing it. This can be very difficult to diagnose, unfortunately.
What I usually do when confronted with such a problem, and where I can't use Intel Inspector XE (which doesn't support Mac, unfortunately for you), is backing up from the point of the error and seeing which code I can selectively remove and still have the error occur. This can help you locate the error source. You may also want to turn on all run-time checking (-C) and also build with -warn interface.
What I usually do when confronted with such a problem, and where I can't use Intel Inspector XE (which doesn't support Mac, unfortunately for you), is backing up from the point of the error and seeing which code I can selectively remove and still have the error occur. This can help you locate the error source. You may also want to turn on all run-time checking (-C) and also build with -warn interface.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Dear Steve,
unofrtunately I keep getting this problem. In particular when i simply try to print something out of my code. No matter what is (even a simple "hello") I still get the same error.
Any idea??
Thanks
-marco
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
Same answer, really - something is corrupting memory. The PRINT just happens to be the place it gets reported. Same advice as I gave earlier.
Responder
Opções do tópico
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora