[GHC] #1918: Trying to execute a binary created on another machine prints "floating point exception"

GHC trac at galois.com
Thu Nov 22 10:38:08 EST 2007


#1918: Trying to execute a binary created on another machine prints "floating
point exception"
----------------------+-----------------------------------------------------
 Reporter:  grzegorz  |          Owner:       
     Type:  bug       |         Status:  new  
 Priority:  normal    |      Milestone:       
Component:  Compiler  |        Version:  6.8.1
 Severity:  normal    |       Keywords:       
 Testcase:            |   Architecture:  x86  
       Os:  Linux     |  
----------------------+-----------------------------------------------------
 I compile a simple program on one linux machine and when I try to execute
 it on a similar linux machine it just prints "floating point exception"


 {{{
 [gchrupala at pg-219 ~]$ uname -a
 Linux pg-219 2.6.22.9-61.fc6 #1 SMP Thu Sep 27 18:48:03 EDT 2007 i686 i686
 i386 GNU/Linux
 [gchrupala at pg-219 ~]$ ./ghc-new/bin/ghc --version
 The Glorious Glasgow Haskell Compilation System, version 6.8.1
 [gchrupala at pg-219 ~]$ cat Hello.hs
 main = putStrLn "Hello"
 [gchrupala at pg-219 ~]$ ./ghc-new/bin/ghc --make Hello.hs
 [1 of 1] Compiling Main             ( Hello.hs, Hello.o )
 Linking Hello ...
 [gchrupala at pg-219 ~]$ ./Hello
 Hello
 [gchrupala at pg-219 ~]$ scp Hello grzegorz at zag:
 Hello
 100%  366KB 366.4KB/s   00:00
 [gchrupala at pg-219 ~]$ ssh grzegorz at zag
 [grzegorz at zag ~]$ uname -a
 Linux zag.computing.dcu.ie 2.6.12-1.1381_FC3 #1 Fri Oct 21 03:46:55 EDT
 2005 i686 i686 i386 GNU/Linux
 [grzegorz at zag ~]$ ./Hello
 Floating point exception

 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1918>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list