On 2014-01-10 17:17:53 +0100, Vincent Lefevre wrote:
> After the latest changes in the mob branch, the following program
> segfaults on Linux/x86_64:
> 
> #include <stdio.h>
> #include <stdlib.h>
> 
> static char *val[] = { "1.0001@100" };
> 
> int main (void)
> {
>   printf ("%s\n", val[0]);
>   return 0;
> }

And the backtrace with gdb, after compiling with "tcc -g":

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7a7a244 in _IO_vfprintf_internal (s=<optimized out>, 
    format=<optimized out>, ap=ap@entry=0x7fffffffd568) at vfprintf.c:1649
1649    vfprintf.c: No such file or directory.
(gdb) bt
#0  0x00007ffff7a7a244 in _IO_vfprintf_internal (s=<optimized out>, 
    format=<optimized out>, ap=ap@entry=0x7fffffffd568) at vfprintf.c:1649
#1  0x00007ffff7a7ff49 in __printf (format=<optimized out>) at printf.c:34
#2  0x0000000008048416 in main () at tcc-stdlib-segv.c:21

-- 
Vincent Lefèvre <[email protected]> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

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

Reply via email to