public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/55253] New: [4.8 Regression] Revision 193298 miscompiles sqlite with -Os
@ 2012-11-09 18:12 markus at trippelsdorf dot de
  2012-11-11  9:22 ` [Bug tree-optimization/55253] " markus at trippelsdorf dot de
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: markus at trippelsdorf dot de @ 2012-11-09 18:12 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55253

             Bug #: 55253
           Summary: [4.8 Regression] Revision 193298 miscompiles sqlite
                    with -Os
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: markus@trippelsdorf.de


r193298 miscompiles sqlite with -Os (and thereby crashes
Firefox during startup):

Program received signal SIGSEGV, Segmentation fault.
sqlite3DbRealloc (db=0x0, p=p@entry=0x0, n=n@entry=9) at sqlite3.c:19120
(gdb) bt
#0  sqlite3DbRealloc (db=0x0, p=p@entry=0x0, n=n@entry=9) at sqlite3.c:19120
#1  0x00007ffff7f908e5 in sqlite3StrAccumAppend (p=0x7fffffffcdb8, z=0x4082e9
"sqlite> ", N=8) at sqlite3.c:19966
#2  0x00007ffff7f909d9 in sqlite3VXPrintf (pAccum=0x7fffffffcdb8,
useExtended=0, fmt=0x4082f1 "", ap=0x7fffffffcdf8) at sqlite3.c:19449
#3  0x00007ffff7f91754 in sqlite3_vsnprintf (n=0, zBuf=0x0, zFormat=0x9
<Address 0x9 out of bounds>, ap=ap@entry=0x7fffffffcdf8) at sqlite3.c:20140
#4  0x00007ffff7f917e8 in sqlite3_snprintf (n=n@entry=20,
zBuf=zBuf@entry=0x40b4a0 <mainPrompt> "", zFormat=zFormat@entry=0x4082e9
"sqlite> ") at sqlite3.c:20147
#5  0x00000000004063f5 in main_init (data=0x7fffffffcef8) at shell.c:2845
#6  main (argc=2, argv=0x7fffffffe558) at shell.c:2864

-O2 or -O3 are fine.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-14 14:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-09 18:12 [Bug tree-optimization/55253] New: [4.8 Regression] Revision 193298 miscompiles sqlite with -Os markus at trippelsdorf dot de
2012-11-11  9:22 ` [Bug tree-optimization/55253] " markus at trippelsdorf dot de
2012-11-12 12:03 ` jamborm at gcc dot gnu.org
2012-11-13 14:27 ` jamborm at gcc dot gnu.org
2012-11-13 14:31 ` jamborm at gcc dot gnu.org
2012-11-13 17:05 ` jamborm at gcc dot gnu.org
2012-11-13 18:56 ` jamborm at gcc dot gnu.org
2012-11-14 14:02 ` jamborm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).