Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,332
    • Issues 4,332
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 370
    • Merge Requests 370
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #2272

Closed
Open
Opened May 08, 2008 by hpwei@trac-hpwei

internal error: getMBlock: mmap: Bad file number

I cut and paste the code from http://blog.moertel.com/articles/2004/03/13/concurrent-port-scanner-in-haskell

And compiled the resulting portscan.hs with both ghc-6.8.2 and ghc-6.6.1 on a host with Sun-Sparc [SunOS 5.10].

The following error occurred when the code was invoked.

portscan a_remote_sun_sparc_machine 1 1000
portscan: internal error: getMBlock: mmap: Bad file number
    (GHC version 6.6.1 for sparc_sun_solaris2)
    Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
Abort

[ note: same result for 6.8.2 ]

[ note: if the remote machine is a linux machine, then the code works. ]

--HP

Edited Mar 09, 2019 by Ian Lynagh <igloo@earth.li>
Assignee
Assign to
6.10 branch
Milestone
6.10 branch
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#2272