Danny Backx escreveu: > As usually happens, you write a report, send it, then find something :-) > > The offending statement was indeed wrong, the variables weren't ints (as > the %d would expect) but doubles. Changing the format into %f fixes the > crash. >
Probably the %s format got a broken string pointer due to a mismatch between the way the params where passed on the stack, and what printf was expecting due to the formatters you've passed in (%d). When it tried to print the string, it probably derefenced a broken pointer, hence the crash. > Next question now is why I none of the tools available help me in > detecting the problem. I've tried to reproduce this in a small program, > haven't succeeded yet. Try using the gcc format attribute on your Log function to have a wrong format/param warning like you have for printf. Cheers, Pedro Alves ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel