public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "markus at trippelsdorf dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/55253] New: [4.8 Regression] Revision 193298 miscompiles sqlite with -Os
Date: Fri, 09 Nov 2012 18:12:00 -0000	[thread overview]
Message-ID: <bug-55253-4@http.gcc.gnu.org/bugzilla/> (raw)


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.


             reply	other threads:[~2012-11-09 18:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-09 18:12 markus at trippelsdorf dot de [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-55253-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).