Re: [Tinycc-devel] bug introduced by the latest changes
Le vendredi 10 janvier 2014, 17:17:53 Vincent Lefevre a écrit : 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; } Removing the #include stdlib.h line makes the bug disappear. Can you try a git bisect to see what commit introduced this bug? I'm sorry, I won't be able to look at it before a few days though but the informations might help some others or myself in a few days in the worst case. Best regards, Thomas ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Re: [Tinycc-devel] bug introduced by the latest changes
On 2014-01-11 22:39:28 +0800, Thomas Preud'homme wrote: Can you try a git bisect to see what commit introduced this bug? The last two commits. -- Vincent Lefèvre vinc...@vinc17.net - 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 Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Re: [Tinycc-devel] bug introduced by the latest changes
Hi, On Sat, 11 Jan 2014, Vincent Lefevre wrote: On 2014-01-11 22:39:28 +0800, Thomas Preud'homme wrote: Can you try a git bisect to see what commit introduced this bug? The last two commits. Fixed in mob. ciao, Michael. ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
[Tinycc-devel] bug introduced by the latest changes
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; } Removing the #include stdlib.h line makes the bug disappear. -- Vincent Lefèvre vinc...@vinc17.net - 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 Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Re: [Tinycc-devel] bug introduced by the latest changes
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. 0x77a7a244 in _IO_vfprintf_internal (s=optimized out, format=optimized out, ap=ap@entry=0x7fffd568) at vfprintf.c:1649 1649vfprintf.c: No such file or directory. (gdb) bt #0 0x77a7a244 in _IO_vfprintf_internal (s=optimized out, format=optimized out, ap=ap@entry=0x7fffd568) at vfprintf.c:1649 #1 0x77a7ff49 in __printf (format=optimized out) at printf.c:34 #2 0x08048416 in main () at tcc-stdlib-segv.c:21 -- Vincent Lefèvre vinc...@vinc17.net - 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 Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel