Assertion failure compiling <deque> with GCC 4.5

RESOLVED FIXED

Status

()

Core
Rewriting and Analysis
RESOLVED FIXED
8 years ago
8 years ago

People

(Reporter: Pedro Lamarão, Unassigned)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

8 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.9.1b4) Gecko/20090427 Fedora/3.5-0.20.beta4.fc11 Firefox/3.5b4
Build Identifier: 

Dehydra hits an assertion failure compiling a trivial translation unit composed of a single "#include <deque>" line.

Reproducible: Always

Steps to Reproduce:
1. Compile the attached pre-processed source file with Dehydra.
Actual Results:  
g++-4.5 -O0 -g3 -Wall -c -fmessage-length=0 -save-temps -fplugin=/home/psilva/Projetos/Mozilla/dehydra-gcc/gcc_dehydra.so -fplugin-arg-gcc_dehydra-=/home/psilva/Projetos/Mozilla/sandbox/dehydra.js -osrc/deque.o ../src/deque.cpp
dehydra_plugin.c:193: Assertion failed:!DECL_P (t). 
If the file compiles correctly without invoking dehydra please file a bug, include a testcase or .ii file produced with -save-temps

Expected Results:  
Successful compilation.

Dehydra JavaScript script file was an empty one -- our testing is just smoke testing.

[psilva@joana PRE_BUILD_25]$ g++-4.5 -v
Using built-in specs.
Target: i586-redhat-linux
Configured with: ../trunk/configure --prefix=/opt/gcc-4.5 --enable-
bootstrap --enable-shared --enable-threads=posix --with-system-zlib --
enable-__cxa_atexit --disable-libunwind-exceptions --enable-
languages=c,c++ --with-ppl --with-cloog --with-tune=generic --with-
arch=i586 --build=i586-redhat-linux
Thread model: posix
gcc version 4.5.0 20090622 (experimental) (GCC)

[psilva@joana mozilla-central]$ hg log -l 1 js
changeset:   29424:a8daae5ef5ce
user:        Peter Van der Beken <pet...@propagandism.org>
date:        Tue Mar 24 11:14:43 2009 +0100
summary:     Fix for bug 484821 (Have a separate hash for main-thread
only XPCWrappedNativeProto). r/sr=mrbkap.

[psilva@joana dehydra-gcc]$ hg log -l 1
changeset:   462:659dfbb37d2b
tag:         tip
user:        Taras Glek <tg...@mozilla.com>
date:        Tue Jun 16 16:09:59 2009 -0700
summary:     Bug 497847: use JSVERSION enumeration instead of cast.
thanks to bradh
(Reporter)

Comment 1

8 years ago
Created attachment 384451 [details]
Pre-processed source file which triggers the bug

This file was generated with -save-temps from the following translation unit:

-- x --
#include <deque>

-- x --

Comment 2

8 years ago
Thanks for the report.

http://hg.mozilla.org/users/tglek_mozilla.com/dehydra-gcc/rev/4c0cbd1eb8f9
Status: UNCONFIRMED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
(Reporter)

Comment 3

8 years ago
Confirmed. Thanks for the fix.

Comment 4

8 years ago
The up-to-date url for the related patch is:
http://hg.mozilla.org/rewriting-and-analysis/dehydra/rev/4c0cbd1eb8f9
You need to log in before you can comment on or make changes to this bug.