Re: [Mingw-users] : Endless running test1.exe (Greg Chicares)

6 views
Skip to first unread message

Herbig Gerhard (DP1)

unread,
Mar 30, 2012, 7:58:10 AM3/30/12
to mingw...@lists.sourceforge.net
Betreff: MinGW-users Digest, Vol 70, Issue 19

Hi Greg,
I was some days out-of-office, so my answer is a bit delayed ...

We had the following program:

#include "mpatrol.h" // <-- out-commented for the tries without mpatrol
#include <stdlib.h> // <-- included to get rid oft the warnings of "incompatible implicit declaration"
int main(void){
char *p;
if (p = (char *) malloc(16)) free(p + 1);
return 0; // <-- I changed that to "0"
}

First try:
I compile it with gcc test1.c -o test1 test1.c:
Then it runs to it's end without warning or crash or error message.
(Of course I have to remove the #include mpatrol.h for that.)

Second try:
I compile it with gcc test1.c -o test -ggdb.
I call the debugger: gdb test1.exe
and I step through the program with "start" and "stepi":
After some steps I got endless repeats of:
(gdb) stepi
0x77c07420 in strerror () from C:\WINDOWS\system32\msvcrt.dll
(gdb) stepi
0x77c07425 in strerror () from C:\WINDOWS\system32\msvcrt.dll
(gdb) stepi
0x77c0742b in strerror () from C:\WINDOWS\system32\msvcrt.dll

> Do any of the other mpatrol examples work for you as expected?
All test react in a similar way.

> I'm using
> mpatrol 1.4.8 (08 January 2002)
> (which is a little old, but it has always worked for me), and
> gcc.exe (GCC) 3.4.5 (mingw-vista special r3) (which is a little old, but I need it for C++ exceptions).
> I built mpatrol from source myself with makefiles adapted from the mpatrol distribution--not the autotoolized version you used.

As already mentioned I use the autotool version gcc 4.6.2 and mpatrol 1.5.1.

I will do another try and use the original mpatrol makefiles too.
Do you know, if there are somewhere some instructions what exactely ist to do?

Gerhard

Sitz: Backnang; Registergericht: Amtsgericht Stuttgart HRA 270977
Persoenlich haftender Gesellschafter: Tesat-Spacecom Geschaeftsfuehrungs GmbH;
Sitz:Backnang; Registergericht: Amtsgericht Stuttgart HRB 271658;
Geschaeftsfuehrung: Peter Schlote, Matthias Spinnler, Jochen Huppert

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
MinGW-users mailing list
MinGW...@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-use...@lists.sourceforge.net?subject=unsubscribe

Reply all
Reply to author
Forward
0 new messages