logo       

[GHC] #953: panic in ghci for lseek ffi import statement: msg#00159

lang.haskell.glasgow.bugs

Subject: [GHC] #953: panic in ghci for lseek ffi import statement

#953: panic in ghci for lseek ffi import statement
---------------------------------+------------------------------------------
Reporter: rwxr-xr-x@xxxxxx | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 6.4.2
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: x86 | Os: Linux
---------------------------------+------------------------------------------
{{{
{-# OPTIONS_GHC -fglasgow-exts #-}

import System.Posix.Types
import Foreign.C

foreign import ccall safe "unistd.h lseek" foo :: CInt -> COff -> CInt ->
IO COff

{-
save as bug.hs, then run ghci bug.hs
my results:
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.4.2, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.

Loading package base-1.0 ... linking ... done.
Compiling Main ( bug.hs, interpreted )
ghc-6.4.2: panic! (the `impossible' happened, GHC version 6.4.2):
ByteCodeFFI.mkMarshalCode_wrk(x86) L_

bonus information:
- uname:
Linux nora 2.6.15-gentoo-r1 #9 PREEMPT Sun Feb 5 02:47:05 CET 2006 i686
AMD Athlon(tm) 64 Processor 3200+ GNU/Linux

- gcc:
Reading specs from /usr/lib/gcc/i386-pc-linux-gnu/3.4.6/specs
Configured with: /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/configure
--prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.4.6
--includedir=/usr/lib/gcc/i386-pc-linux-gnu/3.4.6/include
--datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.4.6 --mandir=/usr/share
/gcc-data/i386-pc-linux-gnu/3.4.6/man --infodir=/usr/share/gcc-data/i386-
pc-linux-gnu/3.4.6/info --with-gxx-include-dir=/usr/lib/gcc/i386-pc-linux-
gnu/3.4.6/include/g++-v3 --host=i386-pc-linux-gnu --build=i386-pc-linux-
gnu --disable-altivec --enable-nls --without-included-gettext --with-
system-zlib --disable-checking --disable-werror --disable-libunwind-
exceptions --disable-multilib --disable-libgcj --enable-
languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-
__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)

-}
}}}

--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/953>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise