tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] bug introduced by the latest changes


From: Vincent Lefevre
Subject: Re: [Tinycc-devel] bug introduced by the latest changes
Date: Fri, 10 Jan 2014 17:34:19 +0100
User-agent: Mutt/1.5.21-6305-vl-r59709 (2013-04-16)

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[] = { "address@hidden" };
> 
> 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>, address@hidden) 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>, address@hidden) 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 <address@hidden> - 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)



reply via email to

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