tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] (no subject)


From: Nigel Horne
Subject: [Tinycc-devel] (no subject)
Date: Thu, 20 Apr 2006 10:27:34 +0100
User-agent: Mutt/1.4.2.1i

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

address@hidden src]$ cat name.c
#include <stdio.h>

main(int argc, char **argv)
{
        puts(argv[0]);
}
address@hidden 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
address@hidden src]$ tcc -run -Wall name.c
name.c
address@hidden src]$ 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]