[Bug c++/91658] New: g++: internal compiler error: Killed (program cc1plus)

2019-09-04 Thread ivan.chow2 at aecom dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91658

Bug ID: 91658
   Summary: g++: internal compiler error: Killed (program cc1plus)
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: ivan.chow2 at aecom dot com
  Target Milestone: ---

Created attachment 46818
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46818&action=edit
file which cause the compiler to fail with internal error

gcc version 7.4.0 on Ubuntu 18.04.1 fails when it complies a file from MXnet
distribution with the following messages:
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with prepossessed source if appropriate.

[Bug c++/91658] g++: internal compiler error: Killed (program cc1plus)

2019-09-04 Thread ivan.chow2 at aecom dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91658

--- Comment #2 from Ivan Chow  ---
Thanks for the info.

I ran this on Ubuntu 18.04 with 16GB RAM configured on a VMware VM and the
maximum memory allowed is 16GB for this VM 

What should I do? 

Thanks for any advices.


-Original Message-
From: mpolacek at gcc dot gnu.org [mailto:gcc-bugzi...@gcc.gnu.org] 
Sent: Wednesday, September 4, 2019 11:26 AM
To: Chow, Ivan (Aiken)
Subject: [Bug c++/91658] g++: internal compiler error: Killed (program cc1plus)

https://urldefense.proofpoint.com/v2/url?u=https-3A__gcc.gnu.org_bugzilla_show-5Fbug.cgi-3Fid-3D91658&d=DwIFaQ&c=TQzoP61-bYDBLzNd0XmHrw&r=1l2NCl9J2IRlx158OleV8UxhxKZcl07nghTppK8NHRQ&m=xIOYHPfZ-u-WA1Rv1yzNRl-x4iApqZS8WZEXmCdzqMw&s=PvKjvYMWPeh1ZBcDG62Mz-AyKrdic9VIMIbDlRwT2gE&e=
 

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2019-09-04
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Marek Polacek  ---
fatal error: ./indexing_op.h: No such file or directory

But Killed (program cc1plus) means you ran out of memory and the OOM killer
killed the cc1plus process.  Unlikely to be a GCC error.

[Bug c++/91658] g++: internal compiler error: Killed (program cc1plus)

2019-09-04 Thread ivan.chow2 at aecom dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91658

--- Comment #3 from Ivan Chow  ---
Sorry.  Actually, I can increase the VM memory.   Only the "recommended"
maximum memory is 16GB.

Let me increase the VM memory to 24 GB and see what happen.  But it does have a
maximum memory, which is 64GB.

Thanks.


-Original Message-
From: Chow, Ivan (Aiken) 
Sent: Wednesday, September 4, 2019 11:29 AM
To: 'mpolacek at gcc dot gnu.org'
Subject: RE: [Bug c++/91658] g++: internal compiler error: Killed (program
cc1plus)


Thanks for the info.

I ran this on Ubuntu 18.04 with 16GB RAM configured on a VMware VM and the
maximum memory allowed is 16GB for this VM 

What should I do? 

Thanks for any advices.


-Original Message-
From: mpolacek at gcc dot gnu.org [mailto:gcc-bugzi...@gcc.gnu.org] 
Sent: Wednesday, September 4, 2019 11:26 AM
To: Chow, Ivan (Aiken)
Subject: [Bug c++/91658] g++: internal compiler error: Killed (program cc1plus)

https://urldefense.proofpoint.com/v2/url?u=https-3A__gcc.gnu.org_bugzilla_show-5Fbug.cgi-3Fid-3D91658&d=DwIFaQ&c=TQzoP61-bYDBLzNd0XmHrw&r=1l2NCl9J2IRlx158OleV8UxhxKZcl07nghTppK8NHRQ&m=xIOYHPfZ-u-WA1Rv1yzNRl-x4iApqZS8WZEXmCdzqMw&s=PvKjvYMWPeh1ZBcDG62Mz-AyKrdic9VIMIbDlRwT2gE&e=
 

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2019-09-04
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Marek Polacek  ---
fatal error: ./indexing_op.h: No such file or directory

But Killed (program cc1plus) means you ran out of memory and the OOM killer
killed the cc1plus process.  Unlikely to be a GCC error.

[Bug c++/91658] g++: internal compiler error: Killed (program cc1plus)

2019-09-04 Thread ivan.chow2 at aecom dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91658

--- Comment #4 from Ivan Chow  ---
24GB still crashed the compiler

I think the preprocessor cc1plus has a bug in handling some of the templates of
that file...   it shouldn't need that much memory 

I ran command 'top' and can see the memory usage ran out-of-control and then
the compiler crashed.


-Original Message-
From: Chow, Ivan (Aiken) 
Sent: Wednesday, September 4, 2019 11:44 AM
To: 'mpolacek at gcc dot gnu.org'
Subject: RE: [Bug c++/91658] g++: internal compiler error: Killed (program
cc1plus)


Sorry.  Actually, I can increase the VM memory.   Only the "recommended"
maximum memory is 16GB.

Let me increase the VM memory to 24 GB and see what happen.  But it does have a
maximum memory, which is 64GB.

Thanks.


-Original Message-
From: Chow, Ivan (Aiken) 
Sent: Wednesday, September 4, 2019 11:29 AM
To: 'mpolacek at gcc dot gnu.org'
Subject: RE: [Bug c++/91658] g++: internal compiler error: Killed (program
cc1plus)


Thanks for the info.

I ran this on Ubuntu 18.04 with 16GB RAM configured on a VMware VM and the
maximum memory allowed is 16GB for this VM 

What should I do? 

Thanks for any advices.


-Original Message-
From: mpolacek at gcc dot gnu.org [mailto:gcc-bugzi...@gcc.gnu.org] 
Sent: Wednesday, September 4, 2019 11:26 AM
To: Chow, Ivan (Aiken)
Subject: [Bug c++/91658] g++: internal compiler error: Killed (program cc1plus)

https://urldefense.proofpoint.com/v2/url?u=https-3A__gcc.gnu.org_bugzilla_show-5Fbug.cgi-3Fid-3D91658&d=DwIFaQ&c=TQzoP61-bYDBLzNd0XmHrw&r=1l2NCl9J2IRlx158OleV8UxhxKZcl07nghTppK8NHRQ&m=xIOYHPfZ-u-WA1Rv1yzNRl-x4iApqZS8WZEXmCdzqMw&s=PvKjvYMWPeh1ZBcDG62Mz-AyKrdic9VIMIbDlRwT2gE&e=
 

Marek Polacek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2019-09-04
 CC||mpolacek at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Marek Polacek  ---
fatal error: ./indexing_op.h: No such file or directory

But Killed (program cc1plus) means you ran out of memory and the OOM killer
killed the cc1plus process.  Unlikely to be a GCC error.

[Bug c++/91658] g++: internal compiler error: Killed (program cc1plus)

2019-09-05 Thread ivan.chow2 at aecom dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91658

--- Comment #6 from Ivan Chow  ---
Thanks for helping out.

Please see attached file.

-Original Message-
From: rguenth at gcc dot gnu.org [mailto:gcc-bugzi...@gcc.gnu.org] 
Sent: Thursday, September 5, 2019 5:27 AM
To: Chow, Ivan (Aiken)
Subject: [Bug c++/91658] g++: internal compiler error: Killed (program cc1plus)

https://urldefense.proofpoint.com/v2/url?u=https-3A__gcc.gnu.org_bugzilla_show-5Fbug.cgi-3Fid-3D91658&d=DwIFaQ&c=TQzoP61-bYDBLzNd0XmHrw&r=1l2NCl9J2IRlx158OleV8UxhxKZcl07nghTppK8NHRQ&m=hPpUJ8SjyZ-_Gyee0DtgtqaQ-P6DJxXr9R7inMT8d9E&s=b-5JPjlduRkOaYl5cY6Q8Jjg-y_77tTYgI23-PWhkCI&e=
 

--- Comment #5 from Richard Biener  ---
Please attach preprocessed source, it's impossible to debug this with the
missing include file (and the files that file might include).

[Bug c++/91658] g++: internal compiler error: Killed (program cc1plus)

2019-09-05 Thread ivan.chow2 at aecom dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91658

--- Comment #7 from Ivan Chow  ---
Sorry.  I didn't know the limit of the size of the file in the email.

Please see attached file with gzip compressed.  

Thanks for helping out.


-Original Message-
From: gcc-bugzi...@gcc.gnu.org [mailto:gcc-bugzi...@gcc.gnu.org] 
Sent: Thursday, September 5, 2019 7:09 AM
To: Chow, Ivan (Aiken)
Subject: RE: [Bug c++/91658] g++: internal compiler error: Killed (program
cc1plus)

The file you are trying to attach is 5493 kilobytes (KB) in size. Attachments
cannot be more than 1000 KB. We recommend that you compress your attachment,
e.g. using gzip, bzip2 or xz. See also the guide to testcase reduction for more
hints. Alternately, if your attachment is an image, you could convert it to a
compressible format like JPG or PNG and try again. 

Chow, Ivan wrote:
> 
> Thanks for helping out.
> 
> Please see attached file.
> 
> -Original Message-
> From: rguenth at gcc dot gnu.org [mailto:gcc-bugzi...@gcc.gnu.org] 
> Sent: Thursday, September 5, 2019 5:27 AM
> To: Chow, Ivan (Aiken)
> Subject: [Bug c++/91658] g++: internal compiler error: Killed (program 
> cc1plus)
> 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__gcc.gnu.org_bugzilla_show-5Fbug.cgi-3Fid-3D91658&d=DwIFaQ&c=TQzoP61-bYDBLzNd0XmHrw&r=1l2NCl9J2IRlx158OleV8UxhxKZcl07nghTppK8NHRQ&m=hPpUJ8SjyZ-_Gyee0DtgtqaQ-P6DJxXr9R7inMT8d9E&s=b-5JPjlduRkOaYl5cY6Q8Jjg-y_77tTYgI23-PWhkCI&e=
>  
> 
> --- Comment #5 from Richard Biener  ---
> Please attach preprocessed source, it's impossible to debug this with the
> missing include file (and the files that file might include).

[Bug c++/91658] g++: internal compiler error: Killed (program cc1plus)

2019-09-05 Thread ivan.chow2 at aecom dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91658

--- Comment #8 from Ivan Chow  ---
I compiled a 'different' indexing_op.cc and and it is ok.  cpp1plus does not
crash.

Please see attachment.   Indexing_op.ccpp2

I did a "diff" with the other after cc1plus processed file.  The differences
are attached in this email also.It seems the "omp.h" files in different
locations made the file different and caused the compiler to crash.

Thanks!



-Original Message-
From: Chow, Ivan (Aiken) 
Sent: Thursday, September 5, 2019 7:14 AM
To: 'gcc-bugzi...@gcc.gnu.org'
Subject: RE: [Bug c++/91658] g++: internal compiler error: Killed (program
cc1plus)


Sorry.  I didn't know the limit of the size of the file in the email.

Please see attached file with gzip compressed.  

Thanks for helping out.


-Original Message-
From: gcc-bugzi...@gcc.gnu.org [mailto:gcc-bugzi...@gcc.gnu.org]
Sent: Thursday, September 5, 2019 7:09 AM
To: Chow, Ivan (Aiken)
Subject: RE: [Bug c++/91658] g++: internal compiler error: Killed (program
cc1plus)

The file you are trying to attach is 5493 kilobytes (KB) in size. Attachments
cannot be more than 1000 KB. We recommend that you compress your attachment,
e.g. using gzip, bzip2 or xz. See also the guide to testcase reduction for more
hints. Alternately, if your attachment is an image, you could convert it to a
compressible format like JPG or PNG and try again. 

Chow, Ivan wrote:
> 
> Thanks for helping out.
> 
> Please see attached file.
> 
> -Original Message-
> From: rguenth at gcc dot gnu.org [mailto:gcc-bugzi...@gcc.gnu.org]
> Sent: Thursday, September 5, 2019 5:27 AM
> To: Chow, Ivan (Aiken)
> Subject: [Bug c++/91658] g++: internal compiler error: Killed (program 
> cc1plus)
> 
> https://urldefense.proofpoint.com/v2/url?u=https-3A__gcc.gnu.org_bugzi
> lla_show-5Fbug.cgi-3Fid-3D91658&d=DwIFaQ&c=TQzoP61-bYDBLzNd0XmHrw&r=1l
> 2NCl9J2IRlx158OleV8UxhxKZcl07nghTppK8NHRQ&m=hPpUJ8SjyZ-_Gyee0DtgtqaQ-P
> 6DJxXr9R7inMT8d9E&s=b-5JPjlduRkOaYl5cY6Q8Jjg-y_77tTYgI23-PWhkCI&e=
> 
> --- Comment #5 from Richard Biener  --- 
> Please attach preprocessed source, it's impossible to debug this with 
> the missing include file (and the files that file might include).