public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/60099] New: internal compiler error: Segmentation fault
@ 2014-02-06 17:12 nheghathivhistha at gmail dot com
  2014-02-06 17:12 ` [Bug other/60099] " nheghathivhistha at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-02-06 17:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60099
           Summary: internal compiler error: Segmentation fault
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nheghathivhistha at gmail dot com

I can't build Seamonkey with rev.

x86_64-pc-linux-gnu-g++ -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API
-DIMPL_LIBXUL  -DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT -fPIC  
-DMOZILLA_CLIENT -ggdb -pipe -march=native -mtune=native -mno-avx
-fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno
-std=gnu++0x -pthread -DNDEBUG -DTRIMMED -Os -freorder-blocks 
-fomit-frame-pointer -c testcase.ii


C-reduced testcase:

typedef enum
{ }
nsresult;
struct nsID
{
};
typedef nsID nsCID;
typedef nsID nsIID;
class nsISupports
{
};
class nsCOMPtr_helper
{
public:
    virtual nsresult operator     () (const nsIID &, void **) const;
};
template < class T > class nsRefPtr
{
public:
    T element_type;
    nsRefPtr & operator= (const nsCOMPtr_helper & helper)
    {
        helper (T::template COMTypeInfo < int >::kIID, 0);
    }
};

class nsIURI:nsISupports
{
public:
    template < class > struct COMTypeInfo
    {
        static nsIID kIID;
    };
};
extern "C"
{
#pragma GCC visibility push(default)
}
class nsCreateInstanceByCID:public nsCOMPtr_helper
{
public:
    nsCreateInstanceByCID (nsCID & aCID, nsISupports *, nsresult *):mCID
(aCID),
        mErrorPtr ()
    {
    } nsresult operator     () (const nsIID &, void **) const;
    nsCID & mCID;
    nsresult *mErrorPtr;
};

nsCID kSimpleURICID;
inline nsCreateInstanceByCID
do_CreateInstance (nsCID & aCID, nsresult *)
{
    return nsCreateInstanceByCID (aCID, 0, 0);
}

void
nsDataHandlerNewURI ()
{
    nsRefPtr < nsIURI > uri;
    uri = do_CreateInstance (kSimpleURICID, 0);
}


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

* [Bug other/60099] internal compiler error: Segmentation fault
  2014-02-06 17:12 [Bug other/60099] New: internal compiler error: Segmentation fault nheghathivhistha at gmail dot com
@ 2014-02-06 17:12 ` nheghathivhistha at gmail dot com
  2014-02-06 17:58 ` mpolacek at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-02-06 17:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from David Kredba <nheghathivhistha at gmail dot com> ---
I am sorry, revision 207472.


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

* [Bug other/60099] internal compiler error: Segmentation fault
  2014-02-06 17:12 [Bug other/60099] New: internal compiler error: Segmentation fault nheghathivhistha at gmail dot com
  2014-02-06 17:12 ` [Bug other/60099] " nheghathivhistha at gmail dot com
@ 2014-02-06 17:58 ` mpolacek at gcc dot gnu.org
  2014-02-06 18:34 ` nheghathivhistha at gmail dot com
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-02-06 17:58 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mpolacek at gcc dot gnu.org

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Weird, I can't reproduce it neither with r207472, nor with revision around
that.


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

* [Bug other/60099] internal compiler error: Segmentation fault
  2014-02-06 17:12 [Bug other/60099] New: internal compiler error: Segmentation fault nheghathivhistha at gmail dot com
  2014-02-06 17:12 ` [Bug other/60099] " nheghathivhistha at gmail dot com
  2014-02-06 17:58 ` mpolacek at gcc dot gnu.org
@ 2014-02-06 18:34 ` nheghathivhistha at gmail dot com
  2014-02-06 18:35 ` nheghathivhistha at gmail dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-02-06 18:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from David Kredba <nheghathivhistha at gmail dot com> ---
Here it shows line number too.
./testcase.i:62:1: internal compiler error

Going to attach original ii file.

In check.sh I used in addition -I and -include that I deleted from the command
before sending here, can it be that?

x86_64-pc-linux-gnu-g++ -o nsDataHandler.o -c -I../../../dist/stl_wrappers
-I../../../dist/system_wrappers -include
/var/tmp/portage/www-client/seamonkey-2.24/work/comm-release/mozilla/config/gcc_hidden.h
-DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL 
-DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT
-I/var/tmp/portage/www-client/seamonkey-2.24/work/comm-release/mozilla/netwerk/protocol/data/../../base/src

-I/var/tmp/portage/www-client/seamonkey-2.24/work/comm-release/mozilla/netwerk/protocol/data
-I. -I../../../dist/include  -I/usr/include/nspr -I/usr/include/nss      -fPIC 
 -DMOZILLA_CLIENT -ggdb -pipe -march=native -mtune=native -mno-avx
-fno-exceptions -fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno
-std=gnu++0x -pthread -DNDEBUG -DTRIMMED -Os -freorder-blocks 
-fomit-frame-pointer -c ./testcase.i


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

* [Bug other/60099] internal compiler error: Segmentation fault
  2014-02-06 17:12 [Bug other/60099] New: internal compiler error: Segmentation fault nheghathivhistha at gmail dot com
                   ` (2 preceding siblings ...)
  2014-02-06 18:34 ` nheghathivhistha at gmail dot com
@ 2014-02-06 18:35 ` nheghathivhistha at gmail dot com
  2014-02-06 18:36 ` nheghathivhistha at gmail dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-02-06 18:35 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from David Kredba <nheghathivhistha at gmail dot com> ---
Created attachment 32068
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32068&action=edit
testcase.i produced by c-reduce


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

* [Bug other/60099] internal compiler error: Segmentation fault
  2014-02-06 17:12 [Bug other/60099] New: internal compiler error: Segmentation fault nheghathivhistha at gmail dot com
                   ` (3 preceding siblings ...)
  2014-02-06 18:35 ` nheghathivhistha at gmail dot com
@ 2014-02-06 18:36 ` nheghathivhistha at gmail dot com
  2014-02-06 19:13 ` nheghathivhistha at gmail dot com
  2014-02-07 12:41 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-02-06 18:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from David Kredba <nheghathivhistha at gmail dot com> ---
Created attachment 32069
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32069&action=edit
Original ii file gzipped


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

* [Bug other/60099] internal compiler error: Segmentation fault
  2014-02-06 17:12 [Bug other/60099] New: internal compiler error: Segmentation fault nheghathivhistha at gmail dot com
                   ` (4 preceding siblings ...)
  2014-02-06 18:36 ` nheghathivhistha at gmail dot com
@ 2014-02-06 19:13 ` nheghathivhistha at gmail dot com
  2014-02-07 12:41 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: nheghathivhistha at gmail dot com @ 2014-02-06 19:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from David Kredba <nheghathivhistha at gmail dot com> ---
Revision 207565 is fine with it.


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

* [Bug other/60099] internal compiler error: Segmentation fault
  2014-02-06 17:12 [Bug other/60099] New: internal compiler error: Segmentation fault nheghathivhistha at gmail dot com
                   ` (5 preceding siblings ...)
  2014-02-06 19:13 ` nheghathivhistha at gmail dot com
@ 2014-02-07 12:41 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-02-07 12:41 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
Thus fixed.


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

end of thread, other threads:[~2014-02-07 12:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-06 17:12 [Bug other/60099] New: internal compiler error: Segmentation fault nheghathivhistha at gmail dot com
2014-02-06 17:12 ` [Bug other/60099] " nheghathivhistha at gmail dot com
2014-02-06 17:58 ` mpolacek at gcc dot gnu.org
2014-02-06 18:34 ` nheghathivhistha at gmail dot com
2014-02-06 18:35 ` nheghathivhistha at gmail dot com
2014-02-06 18:36 ` nheghathivhistha at gmail dot com
2014-02-06 19:13 ` nheghathivhistha at gmail dot com
2014-02-07 12:41 ` rguenth 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).