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,334
    • Issues 4,334
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 369
    • Merge Requests 369
  • 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
  • #3516

Closed
Open
Opened Sep 15, 2009 by Sergei Trofimovich@trofiReporter

[PATCH] ppc64: broken 'foreign import wrapper'

Attaching simple testcase failing horribly on ppc64:

amd64 test output:

$ ./dist/build/fct/fct
C call:[result = 105]

C call with registered C callback function:C(72)C(33)[result = 735]

C call with registered Hs-C callback function:H(72)H(33)[result = 735]

TEST PASSED

ppc64 test output:

$ dist/build/fct/fct
C call:[result = 105]

C call with registered C callback function:C(72)C(33)[result = 735]

C call with registered Hs-C callback function:[result = 105]

Segmentation fault

As you see C call with registered Hs-C callback function called not a registered function, but something strange. There is no even registered callback (glo_cb == 0).

Trac metadata
Trac field Value
Version 6.10.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Edited Mar 09, 2019 by Sergei Trofimovich
Assignee
Assign to
6.12.2
Milestone
6.12.2
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#3516