Opened 19 years ago

Closed 19 years ago

#5048 closed defect (fixed)

BUG: ghc: Segmentation fault in System.[Cmd.]system in interpreted mode

Reported by: richardmueller@… Owned by: gwright@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

Source-File segfault.hs:

import System main = system "echo hallo"

Command line:

interpreted mode (fails):

ghc segfault.hs -e 'main'

Segmentation fault

compiled mode (works):

ghc segfault.hs && ./a.out

hallo

The simplest form to reproduce the error is:

ghc -e 'System.system "echo hallo"'

Change History (6)

comment:1 Changed 19 years ago by gwright@…

Status: newassigned

There are known issues with segfaults on OS X under ghc 6.4. 6.4.1 should be released tomorrow, so this should be checked again after the new portfile is uploaded.

If it still happens with the new compiler let me know but also file a bug report on the ghc bugs list.

-Greg

comment:2 Changed 19 years ago by toby@…

Owner: changed from darwinports-bugs@… to gwright@…
Status: assignednew

comment:3 Changed 19 years ago by gwright@…

Status: newassigned

I'll take a look at this, bug it should probably be reported to the ghc bugs list.

Greg

comment:4 Changed 19 years ago by gwright@…

Works for me on 6.4.1. If I don't hear otherwise I will close this bug in a few days.

-Greg

comment:5 Changed 19 years ago by mww@…

Summary: ghc: Segmentation fault in System.[Cmd.]system in interpreted modeBUG: ghc: Segmentation fault in System.[Cmd.]system in interpreted mode

comment:6 Changed 19 years ago by gwright@…

Resolution: fixed
Status: assignedclosed

I don't see this bug in 6.4.1 and as no one has spoken up, I am closing it.

Greg

Note: See TracTickets for help on using tickets.