Is argv[0] broken? Printing if with the -b (bounds check) gives a
segfault, but all is well without -b.

[EMAIL PROTECTED] src]$ cat name.c
#include <stdio.h>

main(int argc, char **argv)
{
        puts(argv[0]);
}
[EMAIL PROTECTED] src]$ tcc -run -b -Wall name.c
Runtime error: dereferencing invalid pointer
at 0x098dce48: main() (name.c:5)
by 0x08067e07: ???
by 0x08069e3f: ???
by 0x00881e23: ???
by 0x08048961: ???
Segmentation fault
[EMAIL PROTECTED] src]$ tcc -run -Wall name.c
name.c
[EMAIL PROTECTED] src]$ 


_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to