GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-12-05T21:07:53Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/176fileExist throws exception when file does not exist2019-12-05T21:07:53ZnobodyfileExist throws exception when file does not exist```
In ghc 6.0.1 function fileExist incorrectly throws exception
when file does not exist.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version ...```
In ghc 6.0.1 function fileExist incorrectly throws exception
when file does not exist.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.0.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | hslibs/posix |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"fileExist throws exception when file does not exist","status":"New","operating_system":"","component":"hslibs/posix","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"simonmar"},"version":"6.0.1","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nIn ghc 6.0.1 function fileExist incorrectly throws exception \nwhen file does not exist. \n}}}","type_of_failure":"OtherFailure","blocking":[]} -->Simon MarlowSimon Marlowhttps://gitlab.haskell.org/ghc/ghc/-/issues/175SIGSEGV in Text.Regex2019-07-07T19:19:17ZremitSIGSEGV in Text.Regex```
Hi all,
while writing a little download-some-weblog-program I
encountered what appears to be a memory management
bug in Text.Regex of ghc-6.0.1.
Both 6.0 and 6.0.1 crash. I didn't try other versions yet.
possible interesting infor...```
Hi all,
while writing a little download-some-weblog-program I
encountered what appears to be a memory management
bug in Text.Regex of ghc-6.0.1.
Both 6.0 and 6.0.1 crash. I didn't try other versions yet.
possible interesting information can be found at:
http://home.wanadoo.nl/remi.turk/tmp/LJGet/core.bz2
http://home.wanadoo.nl/remi.turk/tmp/LJGet/grepHref.bz2
http://home.wanadoo.nl/remi.turk/tmp/LJGet/grepHref.hs
If I need to provide additional information or isolate
the problem into a smaller code-fragment, please let me
know.
Happy hacking,
Remi
some gdb-info:
{- gdb copyright info... -}
Program terminated with signal 11, Segmentation fault.
{- reading symbols from... -}
#0 chunk_free (ar_ptr=0x0, p=0x4045cbf8) at malloc.c:3049
3049 malloc.c: No such file or directory.
(gdb) info stack
#0 chunk_free (ar_ptr=0x0, p=0x4045cbf8) at malloc.c:3049
#1 0x400f883e in __libc_free (mem=0x4045cc00) at
malloc.c:3023
#2 0x40132fd2 in __regfree (preg=0x40205058) at
regex.c:5866
#3 0x805720f in s686_info ()
#4 0x805a4f0 in s4zy_ret ()
#5 0x4c58308 in ?? ()
Cannot access memory at address 0x99548be
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.0.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | hslibs/text |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"SIGSEGV in Text.Regex","status":"New","operating_system":"","component":"hslibs/text","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"simonmar"},"version":"6.0.1","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nHi all,\n\nwhile writing a little download-some-weblog-program I\nencountered what appears to be a memory management\nbug in Text.Regex of ghc-6.0.1.\n\nBoth 6.0 and 6.0.1 crash. I didn't try other versions yet.\n\npossible interesting information can be found at:\n\nhttp://home.wanadoo.nl/remi.turk/tmp/LJGet/core.bz2\nhttp://home.wanadoo.nl/remi.turk/tmp/LJGet/grepHref.bz2\nhttp://home.wanadoo.nl/remi.turk/tmp/LJGet/grepHref.hs\n\nIf I need to provide additional information or isolate\nthe problem into a smaller code-fragment, please let me\nknow.\n\nHappy hacking,\nRemi\n\nsome gdb-info:\n\n{- gdb copyright info... -}\nProgram terminated with signal 11, Segmentation fault.\n{- reading symbols from... -}\n#0 chunk_free (ar_ptr=0x0, p=0x4045cbf8) at malloc.c:3049\n3049\tmalloc.c: No such file or directory.\n(gdb) info stack\n#0 chunk_free (ar_ptr=0x0, p=0x4045cbf8) at malloc.c:3049\n#1 0x400f883e in __libc_free (mem=0x4045cc00) at\nmalloc.c:3023\n#2 0x40132fd2 in __regfree (preg=0x40205058) at\nregex.c:5866\n#3 0x805720f in s686_info ()\n#4 0x805a4f0 in s4zy_ret ()\n#5 0x4c58308 in ?? ()\nCannot access memory at address 0x99548be\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->Simon MarlowSimon Marlowhttps://gitlab.haskell.org/ghc/ghc/-/issues/174SunOS 5.8: lib/HSunix.o: unknown symbol `sendfile'2019-07-07T19:19:17ZsternhausSunOS 5.8: lib/HSunix.o: unknown symbol `sendfile'```
hello.
on SunOS 5.8, with a fresh compiled ghc (configure
-prefix=/home/xxx/local && make)
and the some for the precompiled version,
i getting the following error.
any ideas or help?
thx in advance, klaus
-----
> ghci-6...```
hello.
on SunOS 5.8, with a fresh compiled ghc (configure
-prefix=/home/xxx/local && make)
and the some for the precompiled version,
i getting the following error.
any ideas or help?
thx in advance, klaus
-----
> ghci-6.0.1 -package unix
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.0.1, for
Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base ... linking ... done.
Loading package unix ... linking ...
/home/xxx/local/lib/HSunix.o: unknown symbol `sendfile'
ghc-6.0.1: panic! (the `impossible' happened, GHC version
6.0.1):
can't load package `unix'
-----
or in the long form
> ghci-6.0.1 -v -package unix
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.0.1, for
Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Glasgow Haskell Compiler, Version 6.0.1, for Haskell 98,
compiled by GHC version 6.0
Using package config file:
/home/xxx/local/lib/ghc-6.0.1/package.conf
==================== Packages
====================
Package
{name = "data",
auto = False,
import_dirs =
["/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/data"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSdata"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["haskell98", "lang", "util"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "unix",
auto = True,
import_dirs = ["/home/xxx/local/lib/ghc-6.0.1/imports"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSunix"],
extra_libraries = ["HSunix_cbits", "dl"],
include_dirs = [],
c_includes = ["HsUnix.h"],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "base",
auto = True,
import_dirs = ["/home/xxx/local/lib/ghc-6.0.1/imports"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSbase"],
extra_libraries = ["HSbase_cbits"],
include_dirs = [],
c_includes = ["HsBase.h"],
package_deps = ["rts"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "rts",
auto = False,
import_dirs = [],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSrts"],
extra_libraries = ["m", "gmp", "dl"],
include_dirs = ["/home/xxx/local/lib/ghc-6.0.1/include"],
c_includes = ["Stg.h"],
package_deps = [],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts =
["-u",
"GHCziBase_Izh_static_info",
"-u",
"GHCziBase_Czh_static_info",
"-u",
"GHCziFloat_Fzh_static_info",
"-u",
"GHCziFloat_Dzh_static_info",
"-u",
"GHCziPtr_Ptr_static_info",
"-u",
"GHCziWord_Wzh_static_info",
"-u",
"GHCziInt_I8zh_static_info",
"-u",
"GHCziInt_I16zh_static_info",
"-u",
"GHCziInt_I32zh_static_info",
"-u",
"GHCziInt_I64zh_static_info",
"-u",
"GHCziWord_W8zh_static_info",
"-u",
"GHCziWord_W16zh_static_info",
"-u",
"GHCziWord_W32zh_static_info",
"-u",
"GHCziWord_W64zh_static_info",
"-u",
"GHCziStable_StablePtr_static_info",
"-u",
"GHCziBase_Izh_con_info",
"-u",
"GHCziBase_Czh_con_info",
"-u",
"GHCziFloat_Fzh_con_info",
"-u",
"GHCziFloat_Dzh_con_info",
"-u",
"GHCziPtr_Ptr_con_info",
"-u",
"GHCziPtr_FunPtr_con_info",
"-u",
"GHCziStable_StablePtr_con_info",
"-u",
"GHCziBase_False_closure",
"-u",
"GHCziBase_True_closure",
"-u",
"GHCziPack_unpackCString_closure",
"-u",
"GHCziIOBase_stackOverflow_closure",
"-u",
"GHCziIOBase_heapOverflow_closure",
"-u",
"GHCziIOBase_NonTermination_closure",
"-u",
"GHCziIOBase_BlockedOnDeadMVar_closure",
"-u",
"GHCziIOBase_Deadlock_closure",
"-u",
"GHCziWeak_runFinalizzerBatch_closure",
"-u",
"__stginit_Prelude"],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "haskell98",
auto = True,
import_dirs = ["/home/xxx/local/lib/ghc-6.0.1/imports"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HShaskell98"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "network",
auto = True,
import_dirs = ["/home/xxx/local/lib/ghc-6.0.1/imports"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSnetwork"],
extra_libraries = ["nsl", "socket"],
include_dirs = [],
c_includes = ["HsNet.h"],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "haskell-src",
auto = True,
import_dirs = ["/home/xxx/local/lib/ghc-6.0.1/imports"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HShaskell-src"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["base", "haskell98"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "readline",
auto = True,
import_dirs = ["/home/xxx/local/lib/ghc-6.0.1/imports"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSreadline"],
extra_libraries = ["readline", "ncurses"],
include_dirs = [],
c_includes = ["HsReadline.h"],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "lang",
auto = False,
import_dirs =
["/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/lang"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSlang"],
extra_libraries = ["HSlang_cbits"],
include_dirs = [],
c_includes = ["HsLang.h"],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "concurrent",
auto = False,
import_dirs =
["/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/concurrent"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSconcurrent"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "posix",
auto = False,
import_dirs =
["/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/posix"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSposix"],
extra_libraries = ["HSposix_cbits", "dl"],
include_dirs = [],
c_includes = ["HsPosix.h"],
package_deps = ["lang", "unix"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "util",
auto = False,
import_dirs =
["/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/util"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSutil"],
extra_libraries = ["HSutil_cbits"],
include_dirs = [],
c_includes = ["HsUtil.h"],
package_deps = ["lang", "concurrent", "readline",
"posix"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "text",
auto = False,
import_dirs =
["/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/text"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HStext"],
extra_libraries = ["HStext_cbits"],
include_dirs = [],
c_includes = ["HsText.h"],
package_deps = ["lang"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "net",
auto = False,
import_dirs =
["/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/net"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HSnet"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["network"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "hssource",
auto = False,
import_dirs =
["/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/hssource"],
source_dirs = [],
library_dirs = ["/home/xxx/local/lib/ghc-6.0.1"],
hs_libraries = ["HShssource"],
extra_libraries = [],
include_dirs = [],
c_includes = [],
package_deps = ["haskell-src"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Package
{name = "HToolkit",
auto = False,
import_dirs = ["/home/xxx/local/imports/HToolkit"],
source_dirs = [],
library_dirs =
["/home/xxx/local/lib/ghc-6.0.1",
"/home/xxx/local/lib"],
hs_libraries = ["HSToolkit"],
extra_libraries = ["mysqlclient"],
include_dirs = [],
c_includes = [],
package_deps = ["base"],
extra_ghc_opts = [],
extra_cc_opts = [],
extra_ld_opts = [],
framework_dirs = [],
extra_frameworks = []}
Hsc static flags: -static -fignore-interface-pragmas
-fomit-interface-pragmas -fdo-lambda-eta-expansion
-flet-no-escape
*** Parser:
*** Desugar:
*** Simplify:
*** CorePrep:
*** ByteCodeGen:
Loading package base ... linking ... done.
Loading package unix ... linking ...
/home/xxx/local/lib/ghc-6.0.1/HSunix.o: unknown symbol
`sendfile'
*** Deleting temp files
Deleting:
ghc-6.0.1: panic! (the `impossible' happened, GHC version
6.0.1):
can't load package `unix'
Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.0.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"SunOS 5.8: lib/HSunix.o: unknown symbol `sendfile'","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"simonmar"},"version":"6.0.1","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nhello. \n \non SunOS 5.8, with a fresh compiled ghc (configure \n-prefix=/home/xxx/local && make) \nand the some for the precompiled version, \ni getting the following error. \nany ideas or help? \n \nthx in advance, klaus \n----- \n> ghci-6.0.1 -package unix \n ___ ___ _ \n / _ \\ /\\ /\\/ __(_) \n / /_\\// /_/ / / | | GHC Interactive, version 6.0.1, for \nHaskell 98. \n/ /_\\\\/ __ / /___| | http://www.haskell.org/ghc/ \n\\____/\\/ /_/\\____/|_| Type :? for help. \n \nLoading package base ... linking ... done. \nLoading package unix ... linking ... \n/home/xxx/local/lib/HSunix.o: unknown symbol `sendfile' \nghc-6.0.1: panic! (the `impossible' happened, GHC version \n6.0.1): \n can't load package `unix' \n \n \n----- \nor in the long form \n> ghci-6.0.1 -v -package unix \n ___ ___ _ \n / _ \\ /\\ /\\/ __(_) \n / /_\\// /_/ / / | | GHC Interactive, version 6.0.1, for \nHaskell 98. \n/ /_\\\\/ __ / /___| | http://www.haskell.org/ghc/ \n\\____/\\/ /_/\\____/|_| Type :? for help. \n \nGlasgow Haskell Compiler, Version 6.0.1, for Haskell 98, \ncompiled by GHC version 6.0 \nUsing package config file: \n/home/xxx/local/lib/ghc-6.0.1/package.conf \n \n==================== Packages \n==================== \nPackage \n {name = \"data\", \n auto = False, \n import_dirs = \n [\"/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/data\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSdata\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"haskell98\", \"lang\", \"util\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"unix\", \n auto = True, \n import_dirs = [\"/home/xxx/local/lib/ghc-6.0.1/imports\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSunix\"], \n extra_libraries = [\"HSunix_cbits\", \"dl\"], \n include_dirs = [], \n c_includes = [\"HsUnix.h\"], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"base\", \n auto = True, \n import_dirs = [\"/home/xxx/local/lib/ghc-6.0.1/imports\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSbase\"], \n extra_libraries = [\"HSbase_cbits\"], \n include_dirs = [], \n c_includes = [\"HsBase.h\"], \n package_deps = [\"rts\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"rts\", \n auto = False, \n import_dirs = [], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSrts\"], \n extra_libraries = [\"m\", \"gmp\", \"dl\"], \n include_dirs = [\"/home/xxx/local/lib/ghc-6.0.1/include\"], \n c_includes = [\"Stg.h\"], \n package_deps = [], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = \n [\"-u\", \n \"GHCziBase_Izh_static_info\", \n \"-u\", \n \"GHCziBase_Czh_static_info\", \n \"-u\", \n \"GHCziFloat_Fzh_static_info\", \n \"-u\", \n \"GHCziFloat_Dzh_static_info\", \n \"-u\", \n \"GHCziPtr_Ptr_static_info\", \n \"-u\", \n \"GHCziWord_Wzh_static_info\", \n \"-u\", \n \"GHCziInt_I8zh_static_info\", \n \"-u\", \n \"GHCziInt_I16zh_static_info\", \n \"-u\", \n \"GHCziInt_I32zh_static_info\", \n \"-u\", \n \"GHCziInt_I64zh_static_info\", \n \"-u\", \n \"GHCziWord_W8zh_static_info\", \n \"-u\", \n \"GHCziWord_W16zh_static_info\", \n \"-u\", \n \"GHCziWord_W32zh_static_info\", \n \"-u\", \n \"GHCziWord_W64zh_static_info\", \n \"-u\", \n \"GHCziStable_StablePtr_static_info\", \n \"-u\", \n \"GHCziBase_Izh_con_info\", \n \"-u\", \n \"GHCziBase_Czh_con_info\", \n \"-u\", \n \"GHCziFloat_Fzh_con_info\", \n \"-u\", \n \"GHCziFloat_Dzh_con_info\", \n \"-u\", \n \"GHCziPtr_Ptr_con_info\", \n \"-u\", \n \"GHCziPtr_FunPtr_con_info\", \n \"-u\", \n \"GHCziStable_StablePtr_con_info\", \n \"-u\", \n \"GHCziBase_False_closure\", \n \"-u\", \n \"GHCziBase_True_closure\", \n \"-u\", \n \"GHCziPack_unpackCString_closure\", \n \"-u\", \n \"GHCziIOBase_stackOverflow_closure\", \n \"-u\", \n \"GHCziIOBase_heapOverflow_closure\", \n \"-u\", \n \"GHCziIOBase_NonTermination_closure\", \n \"-u\", \n \"GHCziIOBase_BlockedOnDeadMVar_closure\", \n \"-u\", \n \"GHCziIOBase_Deadlock_closure\", \n \"-u\", \n \"GHCziWeak_runFinalizzerBatch_closure\", \n \"-u\", \n \"__stginit_Prelude\"], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"haskell98\", \n auto = True, \n import_dirs = [\"/home/xxx/local/lib/ghc-6.0.1/imports\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HShaskell98\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"network\", \n auto = True, \n import_dirs = [\"/home/xxx/local/lib/ghc-6.0.1/imports\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSnetwork\"], \n extra_libraries = [\"nsl\", \"socket\"], \n include_dirs = [], \n c_includes = [\"HsNet.h\"], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"haskell-src\", \n auto = True, \n import_dirs = [\"/home/xxx/local/lib/ghc-6.0.1/imports\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HShaskell-src\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"base\", \"haskell98\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"readline\", \n auto = True, \n import_dirs = [\"/home/xxx/local/lib/ghc-6.0.1/imports\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSreadline\"], \n extra_libraries = [\"readline\", \"ncurses\"], \n include_dirs = [], \n c_includes = [\"HsReadline.h\"], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"lang\", \n auto = False, \n import_dirs = \n [\"/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/lang\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSlang\"], \n extra_libraries = [\"HSlang_cbits\"], \n include_dirs = [], \n c_includes = [\"HsLang.h\"], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"concurrent\", \n auto = False, \n import_dirs = \n \n[\"/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/concurrent\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSconcurrent\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"posix\", \n auto = False, \n import_dirs = \n [\"/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/posix\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSposix\"], \n extra_libraries = [\"HSposix_cbits\", \"dl\"], \n include_dirs = [], \n c_includes = [\"HsPosix.h\"], \n package_deps = [\"lang\", \"unix\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"util\", \n auto = False, \n import_dirs = \n [\"/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/util\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSutil\"], \n extra_libraries = [\"HSutil_cbits\"], \n include_dirs = [], \n c_includes = [\"HsUtil.h\"], \n package_deps = [\"lang\", \"concurrent\", \"readline\", \n\"posix\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"text\", \n auto = False, \n import_dirs = \n [\"/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/text\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HStext\"], \n extra_libraries = [\"HStext_cbits\"], \n include_dirs = [], \n c_includes = [\"HsText.h\"], \n package_deps = [\"lang\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"net\", \n auto = False, \n import_dirs = \n[\"/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/net\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HSnet\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"network\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"hssource\", \n auto = False, \n import_dirs = \n \n[\"/home/xxx/local/lib/ghc-6.0.1/hslibs-imports/hssource\"], \n source_dirs = [], \n library_dirs = [\"/home/xxx/local/lib/ghc-6.0.1\"], \n hs_libraries = [\"HShssource\"], \n extra_libraries = [], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"haskell-src\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \nPackage \n {name = \"HToolkit\", \n auto = False, \n import_dirs = [\"/home/xxx/local/imports/HToolkit\"], \n source_dirs = [], \n library_dirs = \n [\"/home/xxx/local/lib/ghc-6.0.1\", \n\"/home/xxx/local/lib\"], \n hs_libraries = [\"HSToolkit\"], \n extra_libraries = [\"mysqlclient\"], \n include_dirs = [], \n c_includes = [], \n package_deps = [\"base\"], \n extra_ghc_opts = [], \n extra_cc_opts = [], \n extra_ld_opts = [], \n framework_dirs = [], \n extra_frameworks = []} \n \n \nHsc static flags: -static -fignore-interface-pragmas \n-fomit-interface-pragmas -fdo-lambda-eta-expansion \n-flet-no-escape \n*** Parser: \n*** Desugar: \n*** Simplify: \n*** CorePrep: \n*** ByteCodeGen: \nLoading package base ... linking ... done. \nLoading package unix ... linking ... \n/home/xxx/local/lib/ghc-6.0.1/HSunix.o: unknown symbol \n`sendfile' \n*** Deleting temp files \nDeleting: \nghc-6.0.1: panic! (the `impossible' happened, GHC version \n6.0.1): \n can't load package `unix' \n \nPlease report it as a compiler bug to \nglasgow-haskell-bugs@haskell.org, \nor http://sourceforge.net/projects/ghc/. \n}}}","type_of_failure":"OtherFailure","blocking":[]} -->Simon MarlowSimon Marlowhttps://gitlab.haskell.org/ghc/ghc/-/issues/173rts_getBool: not a Bool2019-07-07T19:19:18Znobodyrts_getBool: not a Bool```
On ghc 5.04.1 on redhat 7.x I have a C program which
calls Haskell thorugh the FFI. It compiles and runs
correctly. However on ghc 5.04.3 with Mandrake 9.0 (ie
gcc 3.2) the same program fails with
main: fatal error: rts_getBool: not...```
On ghc 5.04.1 on redhat 7.x I have a C program which
calls Haskell thorugh the FFI. It compiles and runs
correctly. However on ghc 5.04.3 with Mandrake 9.0 (ie
gcc 3.2) the same program fails with
main: fatal error: rts_getBool: not a Bool
All my functions return Bool to signify failure or success.
If I replace them by Int, then the program works again
on Mandrake.
To contact me, sengan `dot` baring-gould `at` ia
`period` nsc `full-stop` com
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ---------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedNoReason |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"rts_getBool: not a Bool","status":"New","operating_system":"","component":"None","related":[],"milestone":"","resolution":"ResolvedNoReason","owner":{"tag":"OwnedBy","contents":"simonmar"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nOn ghc 5.04.1 on redhat 7.x I have a C program which\ncalls Haskell thorugh the FFI. It compiles and runs\ncorrectly. However on ghc 5.04.3 with Mandrake 9.0 (ie\ngcc 3.2) the same program fails with\n\nmain: fatal error: rts_getBool: not a Bool\n\nAll my functions return Bool to signify failure or success.\nIf I replace them by Int, then the program works again\non Mandrake.\n\nTo contact me, sengan `dot` baring-gould `at` ia\n`period` nsc `full-stop` com\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->Simon MarlowSimon Marlowhttps://gitlab.haskell.org/ghc/ghc/-/issues/172Wrong line count in parsec under linux on dos-style files2019-07-07T19:19:18ZnobodyWrong line count in parsec under linux on dos-style files```
Parsec doubles the line count (reported e.g. in a parse error) when run (at least on a linux box) on DOS-style files (with DOS-style newlines)
I have GHC 6.0
My e-mail address is nick.name@inwind.it
Bye
Vincenzo Ciancia
```
<det...```
Parsec doubles the line count (reported e.g. in a parse error) when run (at least on a linux box) on DOS-style files (with DOS-style newlines)
I have GHC 6.0
My e-mail address is nick.name@inwind.it
Bye
Vincenzo Ciancia
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | hslibs/text |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Wrong line count in parsec under linux on dos-style files","status":"New","operating_system":"","component":"hslibs/text","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nParsec doubles the line count (reported e.g. in a parse error) when run (at least on a linux box) on DOS-style files (with DOS-style newlines)\n\nI have GHC 6.0\n\nMy e-mail address is nick.name@inwind.it\n\nBye\n\nVincenzo Ciancia\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/171ghci panics2019-07-07T19:19:18ZIavor S. Diatchkighci panics```
hello,
i seem to be getting a panic from ghci on a very simple
program. apologies if this is not a bug, but something
wrong with my installation. this is on linux (mandrake
9.1), and i just installed the rpm for redhat available
fr...```
hello,
i seem to be getting a panic from ghci on a very simple
program. apologies if this is not a bug, but something
wrong with my installation. this is on linux (mandrake
9.1), and i just installed the rpm for redhat available
from the site. the same problem was happening with the
binary distribution as well.
this is what happens:
diatchki@chara: Haskell >ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version
6.0, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package base ... linking ... done.
Prelude> let Just x = Nothing in x
ghc-6.0: panic! (the `impossible' happened, GHC version
6.0):
getLinkDeps No iface for [<pkg>]GHCziErr
Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
bye
iavor
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Driver |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"ghci panics","status":"New","operating_system":"","component":"Driver","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nhello,\ni seem to be getting a panic from ghci on a very simple\nprogram. apologies if this is not a bug, but something\nwrong with my installation. this is on linux (mandrake\n9.1), and i just installed the rpm for redhat available\nfrom the site. the same problem was happening with the\nbinary distribution as well.\nthis is what happens:\n\ndiatchki@chara: Haskell >ghci\n ___ ___ _\n / _ \\ /\\ /\\/ __(_)\n / /_\\// /_/ / / | | GHC Interactive, version\n6.0, for Haskell 98.\n/ /_\\\\/ __ / /___| | http://www.haskell.org/ghc/\n\\____/\\/ /_/\\____/|_| Type :? for help.\n\nLoading package base ... linking ... done.\nPrelude> let Just x = Nothing in x\nghc-6.0: panic! (the `impossible' happened, GHC version\n6.0):\n getLinkDeps No iface for [<pkg>]GHCziErr\n\nPlease report it as a compiler bug to\nglasgow-haskell-bugs@haskell.org,\nor http://sourceforge.net/projects/ghc/.\n\nbye\niavor\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/170warning: implicit declaration of function foo2019-07-07T19:19:18Znobodywarning: implicit declaration of function foo```
Hi,
when I compile a simple program with a function
imported from C using -fffi -O, I get the following:
warning: implicit declaration of function 'foo'
the imported function simply returns its argument
multiplied by two.
if I c...```
Hi,
when I compile a simple program with a function
imported from C using -fffi -O, I get the following:
warning: implicit declaration of function 'foo'
the imported function simply returns its argument
multiplied by two.
if I compile it without -O option, everything is fine, but
with the -O option it gives the warning and when I run
the program it gives the wrong result ( 1.0 for any
number)
Thanks.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ---------------- |
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedNoReason |
| Component | Compiler (FFI) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"warning: implicit declaration of function foo","status":"New","operating_system":"","component":"Compiler (FFI)","related":[],"milestone":"","resolution":"ResolvedNoReason","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nHi,\n\nwhen I compile a simple program with a function \nimported from C using -fffi -O, I get the following:\nwarning: implicit declaration of function 'foo'\n\nthe imported function simply returns its argument \nmultiplied by two.\n\nif I compile it without -O option, everything is fine, but \nwith the -O option it gives the warning and when I run \nthe program it gives the wrong result ( 1.0 for any \nnumber)\n\nThanks.\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/169Panic (non-exhaustive pattern in compiler)2019-07-07T19:19:19ZxbiffPanic (non-exhaustive pattern in compiler)```
The following module strangely fails to compile with
GHC 6.0 (it works with GHC 5.02.2, I did not try any
other version).
----
module Bug where
pair t = (t, t)
a = (pair 'x', undefined)
b = a
----
ghc-6.0: panic! (the `impossible' ...```
The following module strangely fails to compile with
GHC 6.0 (it works with GHC 5.02.2, I did not try any
other version).
----
module Bug where
pair t = (t, t)
a = (pair 'x', undefined)
b = a
----
ghc-6.0: panic! (the `impossible' happened, GHC version
6.0):
coreSyn/CoreUtils.lhs:1188: Non-exhaustive patterns in
function isCrossDllArg
The error also happens when 'x' is replaced by a
non-empty list or string, and when it is replaced by a
numeral constant with an explicit type. Compilation
works when 'x' is replaced by an integer with no type
specification, or by a type contructor with no literal
in it (i.e. [] or Nothing). It also works when the
declaration « b = a » is removed, or when « pair 'x' »
is replaced by « ('x', 'x') », or when « (pair 'x',
undefined) » is replaced by « pair 'x' ».
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Panic (non-exhaustive pattern in compiler)","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nThe following module strangely fails to compile with\nGHC 6.0 (it works with GHC 5.02.2, I did not try any\nother version).\n\n----\nmodule Bug where\npair t = (t, t)\na = (pair 'x', undefined)\nb = a\n----\n\nghc-6.0: panic! (the `impossible' happened, GHC version\n6.0):\ncoreSyn/CoreUtils.lhs:1188: Non-exhaustive patterns in\nfunction isCrossDllArg\n\nThe error also happens when 'x' is replaced by a\nnon-empty list or string, and when it is replaced by a\nnumeral constant with an explicit type. Compilation\nworks when 'x' is replaced by an integer with no type\nspecification, or by a type contructor with no literal\nin it (i.e. [] or Nothing). It also works when the\ndeclaration « b = a » is removed, or when « pair 'x' »\nis replaced by « ('x', 'x') », or when « (pair 'x',\nundefined) » is replaced by « pair 'x' ».\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/168GHCi removes source files!!2019-07-07T19:19:19ZdleijenGHCi removes source files!!```
GHCi removes source files on windows under
certain circumstances! Of course, this is very
bad when it actually happens.
It happens when loading a source file in a
subdirectory, i.e.
> ghci -package wx wx\HelloWorld.hs
[snip]
Loadi...```
GHCi removes source files on windows under
certain circumstances! Of course, this is very
bad when it actually happens.
It happens when loading a source file in a
subdirectory, i.e.
> ghci -package wx wx\HelloWorld.hs
[snip]
Loading package wx ... linking ... done.
Compiling Main ( wx/HelloWorld.hs, interpreted )
Ok, modules loaded: Main.
*Main> :q
Leaving GHCi.
>ghci -package wx wx\HelloWorld.hs
[snip]
Loading package wx ... linking ... done.
can't find file `wx\HelloWorld.hs'
It only happens when using the normal windows prompt.
It doesn't happen when using 'bash' (with cygwin).
Nice bug for an interpreter :-)
-- Daan.
(daanleijen@xs4all.nl)
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ----------------- |
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | highest |
| Resolution | ResolvedDuplicate |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"GHCi removes source files!!","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedDuplicate","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nGHCi removes source files on windows under\ncertain circumstances! Of course, this is very\nbad when it actually happens.\n\nIt happens when loading a source file in a\nsubdirectory, i.e.\n\n> ghci -package wx wx\\HelloWorld.hs\n[snip]\nLoading package wx ... linking ... done.\nCompiling Main ( wx/HelloWorld.hs, interpreted )\nOk, modules loaded: Main.\n*Main> :q\nLeaving GHCi.\n\n>ghci -package wx wx\\HelloWorld.hs\n[snip]\nLoading package wx ... linking ... done.\ncan't find file `wx\\HelloWorld.hs'\n\n\nIt only happens when using the normal windows prompt.\nIt doesn't happen when using 'bash' (with cygwin).\n\nNice bug for an interpreter :-)\n -- Daan.\n\n(daanleijen@xs4all.nl)\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/167File deleted2019-07-07T19:19:19ZnobodyFile deleted```
When compiling a file with errors, the file gets deleted!
Running WinXP
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | ...```
When compiling a file with errors, the file gets deleted!
Running WinXP
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"File deleted","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nWhen compiling a file with errors, the file gets deleted!\nRunning WinXP\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/166ghc-pkg --list-packages-local is the wrong choice2019-07-07T19:19:19Zas49ghc-pkg --list-packages-local is the wrong choice```
I guess adding the --list-packages-local flag to
ghc-pkg wasn't a good thing afterall since
--list-packages is now useless:
~:$ ghc-pkg --list-packages
option `--list-packages' is ambiguous; could be one of:
-l --list-packages ...```
I guess adding the --list-packages-local flag to
ghc-pkg wasn't a good thing afterall since
--list-packages is now useless:
~:$ ghc-pkg --list-packages
option `--list-packages' is ambiguous; could be one of:
-l --list-packages List packages in all
config files
-L --list-packages-local List packages in the
specified config file
Could the "local" option be changed to
--list-local-packages? It scans better anyway.
Thanks,
Axel.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Build System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"ghc-pkg --list-packages-local is the wrong choice","status":"New","operating_system":"","component":"Build System","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nI guess adding the --list-packages-local flag to\nghc-pkg wasn't a good thing afterall since\n--list-packages is now useless:\n\n~:$ ghc-pkg --list-packages\noption `--list-packages' is ambiguous; could be one of:\n -l --list-packages List packages in all\nconfig files\n -L --list-packages-local List packages in the\nspecified config file\n\nCould the \"local\" option be changed to\n--list-local-packages? It scans better anyway.\n\nThanks,\nAxel.\n\n\n\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/165hsc2hs fails to link intermediate program2019-07-07T19:19:20Zas49hsc2hs fails to link intermediate program```
On Mac OS X 10.2.6 and the binary package of ghc 6.00 I
get the following linker error when running hsc2hs on a
trivial program:
ld: Undefined symbols:
_Main_zdmain_closure
It seems that hsc2hs uses ghc now by default to compile ...```
On Mac OS X 10.2.6 and the binary package of ghc 6.00 I
get the following linker error when running hsc2hs on a
trivial program:
ld: Undefined symbols:
_Main_zdmain_closure
It seems that hsc2hs uses ghc now by default to compile the
C program. That doesn't seem to be the problem, though,
since it worked with ghc 5.04.
Axel.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"hsc2hs fails to link intermediate program","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nOn Mac OS X 10.2.6 and the binary package of ghc 6.00 I \nget the following linker error when running hsc2hs on a \ntrivial program:\n\nld: Undefined symbols:\n_Main_zdmain_closure\n\nIt seems that hsc2hs uses ghc now by default to compile the \nC program. That doesn't seem to be the problem, though, \nsince it worked with ghc 5.04.\n\nAxel.\n\n\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/164bad warning for parallel list comprehension2019-07-07T19:19:20Znobodybad warning for parallel list comprehension```
this piece of code:
module ParComp where
t :: [(Char,Char)]
t = [ (a,b) | a <- "foo" | b <- "bar" ]
will generate this warning:
ParComp.hs:4: Warning: Defined but not used: b
ParComp.hs:4: Warning: Defined but not used: a
This i...```
this piece of code:
module ParComp where
t :: [(Char,Char)]
t = [ (a,b) | a <- "foo" | b <- "bar" ]
will generate this warning:
ParComp.hs:4: Warning: Defined but not used: b
ParComp.hs:4: Warning: Defined but not used: a
This is on Linux ghc version 6.0
Brett Letner
bletner@galois.com
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"bad warning for parallel list comprehension","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nthis piece of code:\n\nmodule ParComp where\n\nt :: [(Char,Char)]\nt = [ (a,b) | a <- \"foo\" | b <- \"bar\" ]\n\nwill generate this warning:\nParComp.hs:4: Warning: Defined but not used: b\n\nParComp.hs:4: Warning: Defined but not used: a\n\nThis is on Linux ghc version 6.0\n\nBrett Letner\nbletner@galois.com\n\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/163Error in compile deletes the sourcefile2019-07-07T19:19:20ZnobodyError in compile deletes the sourcefile```
If I try to compile a source file (any .hs file) and the
compiler returns an error (any error), the source file
gets deleted.
The compiler however, returns me to the "Prelude>"
cursor and still accepts commands
To recompile, I h...```
If I try to compile a source file (any .hs file) and the
compiler returns an error (any error), the source file
gets deleted.
The compiler however, returns me to the "Prelude>"
cursor and still accepts commands
To recompile, I have to save the file again from my
editor.
When the compilation is successful, the sourcefile is still
there.
I'm using the latest GHCi 6.0 on a WinXP sp 1 machine.
best regards
Jon Malmquist
d01jm@efd.lth.se
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Error in compile deletes the sourcefile","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nIf I try to compile a source file (any .hs file) and the \ncompiler returns an error (any error), the source file \ngets deleted.\n\nThe compiler however, returns me to the \"Prelude>\" \ncursor and still accepts commands\n\nTo recompile, I have to save the file again from my \neditor.\n\nWhen the compilation is successful, the sourcefile is still \nthere.\n\nI'm using the latest GHCi 6.0 on a WinXP sp 1 machine.\n\nbest regards\nJon Malmquist\nd01jm@efd.lth.se\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/162why delete?2019-07-07T19:19:20Znobodywhy delete?```
if there are some errors in the souce file, after loading
to GHCi, the file is deleted, why, it is cruel.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------...```
if there are some errors in the souce file, after loading
to GHCi, the file is deleted, why, it is cruel.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"why delete?","status":"New","operating_system":"","component":"None","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nif there are some errors in the souce file, after loading \nto GHCi, the file is deleted, why, it is cruel.\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/161GHCi breaks the terminal2019-07-07T19:19:20ZhampusrGHCi breaks the terminal```
After running ghci the terminal does not work exactly
as it should: Running "su" does no longer work for some
unknown reason (su stops after reading the first
character of the password). This happens with ghc 5.04
as well as 6.0 and ...```
After running ghci the terminal does not work exactly
as it should: Running "su" does no longer work for some
unknown reason (su stops after reading the first
character of the password). This happens with ghc 5.04
as well as 6.0 and current CVS-version, both in xterm
and console. This only seem to be a problem with my
Linux/Debian installation, I cannot reproduce the
problem on Solaris.
Also some minor spelling :) According to the CVS
users-guide the reverse of -frules-off is the very same
-frules-off.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"GHCi breaks the terminal","status":"New","operating_system":"","component":"None","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"simonmar"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nAfter running ghci the terminal does not work exactly\nas it should: Running \"su\" does no longer work for some\nunknown reason (su stops after reading the first\ncharacter of the password). This happens with ghc 5.04\nas well as 6.0 and current CVS-version, both in xterm\nand console. This only seem to be a problem with my\nLinux/Debian installation, I cannot reproduce the\nproblem on Solaris.\n\nAlso some minor spelling :) According to the CVS\nusers-guide the reverse of -frules-off is the very same\n-frules-off.\n\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->Simon MarlowSimon Marlowhttps://gitlab.haskell.org/ghc/ghc/-/issues/160ghc failed to build ghc2021-03-22T06:17:57Znobodyghc failed to build ghc```
I tried building the ghc v6.0 source using ghc and it
failed. I tried both ghc v6.0 and ghc v5.04.2 compilers.
Platform: Linux RedHat v9.0
Memory: 194MB
CPU: Celeron 466
GHC Compiler: v6.0 (Linux binary tar)
...```
I tried building the ghc v6.0 source using ghc and it
failed. I tried both ghc v6.0 and ghc v5.04.2 compilers.
Platform: Linux RedHat v9.0
Memory: 194MB
CPU: Celeron 466
GHC Compiler: v6.0 (Linux binary tar)
v5.04.2 (Linux RedHat RPM)
GNU tool chain: Default RH v9.0 installation.
Configure options: --with-x --enable-src-tree-haddock
--enable-objectio
The compilation died while linking ghc-pkg.bin
The error message is:
libHSrts.a (RtsFlags.o) (.text + 0xf1): In function
'splitRtsFlags':
undefined reference to '__ctype_b'
Both v6.0 and v5.04.2 compilers gave the same error
message.
Regards
Tee Teoh
tty4@hotmail.com
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ---------------- |
| Version | 6.0 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedNoReason |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"ghc failed to build ghc","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedNoReason","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"6.0","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nI tried building the ghc v6.0 source using ghc and it\nfailed. I tried both ghc v6.0 and ghc v5.04.2 compilers.\n\nPlatform: Linux RedHat v9.0\nMemory: 194MB\nCPU: Celeron 466\nGHC Compiler: v6.0 (Linux binary tar)\n v5.04.2 (Linux RedHat RPM)\nGNU tool chain: Default RH v9.0 installation.\n\nConfigure options: --with-x --enable-src-tree-haddock\n--enable-objectio\n\nThe compilation died while linking ghc-pkg.bin\n\nThe error message is:\n\nlibHSrts.a (RtsFlags.o) (.text + 0xf1): In function\n'splitRtsFlags': \n undefined reference to '__ctype_b'\n\nBoth v6.0 and v5.04.2 compilers gave the same error\nmessage. \n\nRegards\n\nTee Teoh\ntty4@hotmail.com\n\n\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/159The impossible happened2019-07-07T19:19:21ZrjmhThe impossible happened```
Using GHC version 6, I loaded a compiled module into
GHCi, then changed directory and tried to call a
function. Error message:
panic! (the `impossible´happened, GHC version 6.0):
loadObj: failed
I'm attaching the source ...```
Using GHC version 6, I loaded a compiled module into
GHCi, then changed directory and tried to call a
function. Error message:
panic! (the `impossible´happened, GHC version 6.0):
loadObj: failed
I'm attaching the source of the module in case you need
it.
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | None |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"The impossible happened","status":"New","operating_system":"","component":"None","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nUsing GHC version 6, I loaded a compiled module into \nGHCi, then changed directory and tried to call a \nfunction. Error message:\n\npanic! (the `impossible´happened, GHC version 6.0):\n\n loadObj: failed\n\nI'm attaching the source of the module in case you need \nit.\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/158Non-exhaultive patterns from derived Read2021-08-09T18:05:22ZnobodyNon-exhaultive patterns from derived Read```
When switching from GHC 5.04.1 to 6.0 I started getting
a load of warnings like these:
source/SDL/Types.hs:33:
Warning: Pattern match(es) are non-exhaustive
In a pattern binding in
a 'do' expre...```
When switching from GHC 5.04.1 to 6.0 I started getting
a load of warnings like these:
source/SDL/Types.hs:33:
Warning: Pattern match(es) are non-exhaustive
In a pattern binding in
a 'do' expression:
Patterns not matched:
Text.Read.Lex.EOF
Text.Read.Lex.Rat _
Text.Read.Lex.Int _
Text.Read.Lex.Symbol _
...
The source in question looks like this
data Expected
= ExpectedType String
| ExpectedValue String
deriving (Read, Show)
It looks as though everything deriving Read causes this
warning (there are several such constructs in the file).
Deriving only Show does not. Found no mention of
change to behavior of derived reads in release notes or in
google.
Cheers,
Jason Feingold
jfeingol@haverford.edu
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ---------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedWon'tFix |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Non-exhaultive patterns from derived Read","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedWon'tFix","owner":{"tag":"OwnedBy","contents":"nobody"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nWhen switching from GHC 5.04.1 to 6.0 I started getting \na load of warnings like these:\n\n\n\n\n source/SDL/Types.hs:33:\n\n\n Warning: Pattern match(es) are non-exhaustive\n\n\n In a pattern binding in\n\n\n a 'do' expression:\n\n\n Patterns not matched:\n\n\n Text.Read.Lex.EOF\n\n\n Text.Read.Lex.Rat _\n\n\n Text.Read.Lex.Int _\n\n\n Text.Read.Lex.Symbol _\n\n\n ...\n\n\n\n\nThe source in question looks like this\n\n\n\n\ndata Expected\n\n\n\t= ExpectedType String\n\n\n\t| ExpectedValue String\n\n\n\tderiving (Read, Show)\n\n\n\n\nIt looks as though everything deriving Read causes this \nwarning (there are several such constructs in the file). \nDeriving only Show does not. Found no mention of \nchange to behavior of derived reads in release notes or in \ngoogle.\n\n\n\n\nCheers,\n\n\nJason Feingold\n\n\njfeingol@haverford.edu\n\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->nobodynobodyhttps://gitlab.haskell.org/ghc/ghc/-/issues/157openFileEx remove from GHC.Handle2019-07-07T19:19:21ZnobodyopenFileEx remove from GHC.Handle```
SimonM removed openFileEx from GHC.Handle (it is still
included, though deprecated in IOExts). It is still
imported from GHC.Handle and used in
fptools/ghc/compiler/utils/Binary.hs
My build on a CVS source checked out on 20th of ...```
SimonM removed openFileEx from GHC.Handle (it is still
included, though deprecated in IOExts). It is still
imported from GHC.Handle and used in
fptools/ghc/compiler/utils/Binary.hs
My build on a CVS source checked out on 20th of June
failed at stage2.
I've attached a trivial patch which worked on my build.
-nate (jnf21@cantab.net)
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------- |
| Version | None |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | ResolvedFixed |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"openFileEx remove from GHC.Handle","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"ResolvedFixed","owner":{"tag":"OwnedBy","contents":"simonmar"},"version":"None","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"{{{\nSimonM removed openFileEx from GHC.Handle (it is still \nincluded, though deprecated in IOExts). It is still \nimported from GHC.Handle and used in \nfptools/ghc/compiler/utils/Binary.hs\n\nMy build on a CVS source checked out on 20th of June\nfailed at stage2.\n\nI've attached a trivial patch which worked on my build.\n\n-nate (jnf21@cantab.net)\n\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->Simon MarlowSimon Marlow