gcc: Internal error: Segmentation fault (program cc1)

Bug #150527 reported by vlk
6
Affects Status Importance Assigned to Milestone
gcc-4.1 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: gcc-4.1

this error message is always shown when i try to compile any program with gcc (gcc-4.1)
(gcc-4.2 is OK)
i'm using today updated ubuntu gutsy

Revision history for this message
Matthias Klose (doko) wrote :

- can you compile the code on another machine (same software versions). It might be hardware problem.
- please attach the preprocessed source code.

Changed in gcc-4.1:
status: New → Incomplete
Revision history for this message
memartin (memartin) wrote :

Same here when I try to compile Gutsy linux-source-2.6.22 Kernel. Issuing 'make oldconfig' or 'make menuconfig' leaves me with the beforementiones error.

My Machine is a ThinkPad T42 with a Pentium M (Dothan) 1.7GHz.

Email me if you got further questions.

Revision history for this message
memartin (memartin) wrote :

BTW: Worked around it by changing the target of symlink /usr/bin/gcc from /usr/bin/gcc-4.1 to /usr/bin/gcc-4.2

Didn't compile enough since then to say whether it's a real 'solution'

Revision history for this message
Matthias Klose (doko) wrote :

apparently this is now fixed in gcc-4.2, which is the default gcc in hardy

Changed in gcc-4.1:
status: Incomplete → Fix Released
Revision history for this message
Arie Skliarouk (skliarie) wrote :

On my ubuntu 8.04 x86_64 the following command segfaults

/usr/lib/gcc/x86_64-linux-gnu/4.2.3/cc1

I am reporting it because /usr/bin/cpp-4.2 invokes it and reports following problem:
Internal error: Segmentation fault (program cc1)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-4.2/README.Bugs>.

This does not happen on i386 binary of the same version.

Revision history for this message
Matthias Klose (doko) wrote :

> Please submit a full bug report.
> See <URL:http://gcc.gnu.org/bugs.html> for instructions.
> For Debian GNU/Linux specific bug reporting instructions, see
> <URL:file:///usr/share/doc/gcc-4.2/README.Bugs>.

please attach the preprocessed source and the options used to build

Revision history for this message
Arie Skliarouk (skliarie) wrote :

No options whatsoever. Just running the binary causes segfault. strace is not informative.

root@builder64:~# dpkg -l | grep g++-4.2
ii g++-4.2 4.2.3-2ubuntu7 The GNU C++ compiler
ii g++-4.2-multilib 4.2.3-2ubuntu7 The GNU C++ compiler (multilib files)
root@builder64:~#
root@builder64:~# debsums g++-4.2
/usr/share/doc/gcc-4.2-base/C++/README.C++ OK
/usr/share/doc/gcc-4.2-base/C++/changelog.gz OK
/usr/bin/g++-4.2 OK
/usr/lib/gcc/x86_64-linux-gnu/4.2/cc1plus OK
root@builder64:~#

I don't know whether it is related, but the machine is a virtual server that runs under openvz virtualization technology.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.