Segmentation fault happen when I was compiling 3.8.5 kernel

Bug #1164886 reported by Jan Kohoutek
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gcc
Fix Released
Medium
gcc-4.7 (Ubuntu)
Fix Released
High
Matthias Klose

Bug Description

/usr/src/linux-3.8.5$ sudo make
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
  CHK include/generated/uapi/linux/version.h
  CHK include/generated/utsrelease.h
  CALL scripts/checksyscalls.sh
  CHK include/generated/compile.h
  CC arch/x86/kernel/cpu/capflags.o
  CC arch/x86/kernel/cpu/perf_event.o
arch/x86/kernel/cpu/perf_event.c: In function ‘get_segment_base’:
arch/x86/kernel/cpu/perf_event.c:1887:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccj6Z7AH.out file, please attach this to your bugreport.
make[3]: *** [arch/x86/kernel/cpu/perf_event.o] Error 1
make[2]: *** [arch/x86/kernel/cpu] Error 2
make[1]: *** [arch/x86/kernel] Error 2
make: *** [arch/x86] Error 2

ProblemType: Crash
DistroRelease: Ubuntu 13.04
Package: cpp-4.7 4.7.2-23ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-16.26-generic 3.8.5
Uname: Linux 3.8.0-16-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
ApportVersion: 2.9.2-0ubuntu5
Architecture: amd64
Date: Fri Apr 5 10:11:37 2013
ExecutablePath: /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1
InstallationDate: Installed on 2013-02-05 (58 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
SourcePackage: gcc-4.7
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Jan Kohoutek (jan-kohoutek) wrote :
Revision history for this message
In , Doko-v (doko-v) wrote :

Created attachment 29808
preprocessed source

lowering to -O1 works around it. r197184 does work, r197476 not.

$ gcc -c -g -O2 perf_event.i arch/x86/kernel/cpu/perf_event.c: In function 'get_segment_base':
arch/x86/kernel/cpu/perf_event.c:1887:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.

(gdb) bt
#0 0x0000000000bd312d in ?? ()
#1 0x0000000000bd305e in ?? ()
#2 0x0000000000bd2c6b in ?? ()
#3 0x0000000000bd357d in ?? ()
#4 0x0000000000bd51b0 in deps_analyze_insn(deps_desc*, rtx_def*) ()
#5 0x0000000000bd5603 in sched_analyze(deps_desc*, rtx_def*, rtx_def*) ()
#6 0x0000000000760d12 in sched_rgn_compute_dependencies(int) ()
#7 0x00000000007635f2 in schedule_insns() ()
#8 0x0000000000763a41 in ?? ()
#9 0x000000000070b778 in execute_one_pass(opt_pass*) ()
#10 0x000000000070bad5 in execute_pass_list(opt_pass*) ()
#11 0x000000000070bae7 in execute_pass_list(opt_pass*) ()
#12 0x000000000070bae7 in execute_pass_list(opt_pass*) ()
#13 0x00000000007e5439 in tree_rest_of_compilation(tree_node*) ()
#14 0x0000000000592afa in ?? ()
#15 0x000000000059434c in cgraph_optimize() ()
#16 0x00000000005947fa in cgraph_finalize_compilation_unit() ()
#17 0x00000000004d44e8 in c_write_global_declarations() ()
#18 0x000000000079edce in toplev_main(int, char**) ()
#19 0x00007ffff670dea5 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#20 0x00000000004c3351 in _start ()

Revision history for this message
In , Doko-v (doko-v) wrote :

seen on x86_64-linux-gnu

Matthias Klose (doko)
Changed in gcc-4.7 (Ubuntu):
assignee: nobody → Matthias Klose (doko)
importance: Undecided → High
milestone: none → ubuntu-13.04-beta-2
status: New → Confirmed
Revision history for this message
In , Abel-i (abel-i) wrote :

See http://gcc.gnu.org/ml/gcc-patches/2013-04/msg00003.html. Either the backport of 56077 should be reverted or, if the ICE is coming from a different place, Maxim's patch is applied instead.

Changed in gcc:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
In , Doko-v (doko-v) wrote :

Reverting the backport for 56077 lets the file compile

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

fixed in 4.7.2-23ubuntu2, will need some time to build on all architectures, get from -proposed for x86 in 2h.

Changed in gcc-4.7 (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
In , Abel-i (abel-i) wrote :

Sure, then I'll revert the patch after testing -- Richi, are you fine with that?

Revision history for this message
In , Doko-v (doko-v) wrote :

backporting r190733 fixes the issue too, testsuite still running

Revision history for this message
In , Rguenther-suse (rguenther-suse) wrote :

"doko at gcc dot gnu.org" <email address hidden> wrote:

>
>http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56848
>
>--- Comment #5 from Matthias Klose <doko at gcc dot gnu.org> 2013-04-05
>12:30:38 UTC ---
>backporting r190733 fixes the issue too, testsuite still running

Please revert for 4.7.3 and re-apply for 4.7.3 with the additional backport.

Revision history for this message
In , Jakub-gcc (jakub-gcc) wrote :

(In reply to comment #6)
> "doko at gcc dot gnu.org" <email address hidden> wrote:
> Please revert for 4.7.3 and re-apply for 4.7.3 with the additional backport.

I guess you mean revert for 4.7.3 and re-apply for 4.7.4 with the additional backport ;)

Revision history for this message
In , Doko-v (doko-v) wrote :

the backport of r190733 doesn't show any regressions on x86_64-linux-gnu

Revision history for this message
In , Ebotcazou (ebotcazou) wrote :

This also affects Qemu.

Revision history for this message
In , Ebotcazou (ebotcazou) wrote :

Apparently the automatic xref didn't work, here is the commit:
  http://gcc.gnu.org/ml/gcc-cvs/2013-04/msg00244.html

Changed in gcc:
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-4.7 - 4.7.2-23ubuntu2

---------------
gcc-4.7 (4.7.2-23ubuntu2) raring; urgency=low

  * Fix PR middle-end/56848, reverting the fix for PR middle-end/56077.
    LP: #1164886.
 -- Matthias Klose <email address hidden> Fri, 05 Apr 2013 12:13:56 +0200

Changed in gcc-4.7 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
In , Rguenth (rguenth) wrote :

Fixed.

Changed in gcc:
status: Confirmed → Fix Released
Revision history for this message
In , Jackie-rosen (jackie-rosen) wrote :

*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

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.