Ticket #5808 (closed bug: wontfix)

Opened 16 months ago

Last modified 16 months ago

nofib/spectral/hartel/transform is crashing with -fllvm (LLVM 2.7)

Reported by: simonmar Owned by: dterei
Priority: high Milestone: 7.4.2
Component: Compiler (LLVM) Version: 7.4.1-rc1
Keywords: Cc:
Operating System: Linux Architecture: x86
Type of failure: Runtime crash Difficulty: Unknown
Test Case: nofib/spectral/hartel/transform Blocked By:
Blocking: Related Tickets:

Description

From the i386/Linux nightly builder:

==nofib== transform: time to run transform follows...
../../../runstdtest/runstdtest ./transform  -o1 transform.stdout -o1 transform.stdout  -ghc-timing     500;   ../../../runstdtest/runstdtest ./transform  -o1 transform.stdout -o1 transform.stdout  -ghc-timing     500;   ../../../runstdtest/runstdtest ./transform  -o1 transform.stdout -o1 transform.stdout  -ghc-timing     500;   ../../../runstdtest/runstdtest ./transform  -o1 transform.stdout -o1 transform.stdout  -ghc-timing     500;   ../../../runstdtest/runstdtest ./transform  -o1 transform.stdout -o1 transform.stdout  -ghc-timing     500;
Command exited with non-zero status 139
0.00user 0.00system 0:00.00elapsed 133%CPU (0avgtext+0avgdata 6192maxresident)k
0inputs+8outputs (0major+635minor)pagefaults 0swaps
././transform 500 < /dev/null
**** expected exit status 0 not seen ; got 139
././transform 500 < /dev/null
expected stderr not matched by reality
--- /playpen/tmp/no_stderr21429	2012-01-23 06:20:50.000000000 +0000
+++ /playpen/tmp/runtest21429.2	2012-01-23 06:20:50.000000000 +0000
@@ -0,0 +1 @@
+Segmentation fault

Change History

Changed 16 months ago by simonmar

  • os changed from Unknown/Multiple to Linux
  • architecture changed from Unknown/Multiple to x86

Changed 16 months ago by dterei

OK I'll take a look when I get time. Thanks for letting me know.

Changed 16 months ago by dterei

Is this still happening? I can't replicate locally. What LLVM version is it? I've tested with 2.7, 2.8 and 3.0, unless 2.9 has a problem...

Changed 16 months ago by simonmar

Yup, still happening here.

$ uname -a
Linux cam-02-unx 2.6.32-28-generic-pae #55-Ubuntu SMP Mon Jan 10 22:34:08 UTC 2011 i686 GNU/Linux
$ llvmc --version
Low Level Virtual Machine (http://llvm.org/):
  llvm version 2.7 ( 2.7-0ubuntu1)
  Optimized build.
  Built Apr 28 2010 (14:16:19).
  Host: i386-pc-linux-gnu
  Host CPU: pentium4

  Registered Targets:
    (none)

This build.mk should do it:

GhcStage1HcOpts = -H64m -O
GhcStage2HcOpts = -H64m -O2
GhcLibWays = v
GhcLibHcOpts = -H32m -O2 -dcore-lint
StripLibraries = YES
SplitObjs = YES

SRC_HC_OPTS += 
EXTRA_PACKAGES = 
HaveLibGmp = NO

NoFibHcOpts =  -rtsopts -O2 -fllvm
NoFibSubDirs = imaginary spectral real
NoFibWays =    

Changed 16 months ago by dterei

  • status changed from new to closed
  • resolution set to wontfix
  • summary changed from nofib/spectral/hartel/transform is crashing with -fllvm to nofib/spectral/hartel/transform is crashing with -fllvm (LLVM 2.7)

OK can reproduce. This only happens with LLVM 2.7. any higher versions are fine. It's either LLVM's fault or the manglers fault. Either way I'm not going to fix it given LLVM 3.0 is the current release and by the time this fix was released in GHC there is a good chance LLVM 3.1 will be out. I think my time is better spent on other things than trying to support 4 llvm versions. Could you upgrade LLVM on the test machines please?

I'll have GHC issue a warning or error though if LLVM is an unsupported version.

Changed 16 months ago by simonmar

Ok, thanks for looking at it.

Note: See TracTickets for help on using tickets.