Bug 2155800 - ghc fails epollCreate with invalid argument on i386
Summary: ghc fails epollCreate with invalid argument on i386
Keywords:
Status: CLOSED DUPLICATE of bug 2155825
Alias: None
Product: Fedora
Classification: Fedora
Component: ghc
Version: rawhide
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2152821
TreeView+ depends on / blocked
 
Reported: 2022-12-22 12:33 UTC by Dridi Boukelmoune
Modified: 2022-12-26 12:48 UTC (History)
1 user (show)

Fixed In Version: glibc-2.36.9000-19.fc38
Clone Of:
Environment:
Last Closed: 2022-12-26 12:46:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dridi Boukelmoune 2022-12-22 12:33:01 UTC
Description of problem:

Trying to run ghc on i686 rawhide (f38) consistently fails with the following error message:

> epollCreate: invalid argument (Invalid argument)

First observed on a scratch build for ShellCheck 0.9:

https://koji.fedoraproject.org/koji/taskinfo?taskID=95610181

The same scratch build on f37 succeeds:

https://koji.fedoraproject.org/koji/taskinfo?taskID=95612202

Version-Release number of selected component (if applicable):

ghc-compiler-8.10.7-121.fc37.i686 (this is f38/rawhide)

How reproducible:

Always, no matter the command line arguments.

Steps to Reproduce:

Just run a ghc command, with or without arguments.

Additional info:

I was able to reproduce it locally with mock. It may simply need a rebuild after a dependency changed on f38.

According to multiple strace'd executions the error is caused by a negative size passed to epoll_create():

> epoll_create(-224406580) = -1 EINVAL (Invalid argument)
> epoll_create(-224640052) = -1 EINVAL (Invalid argument)
> epoll_create(-224885812) = -1 EINVAL (Invalid argument)

The first size is the one showing up the most over multiple executions.

Comment 1 Jens Petersen 2022-12-23 08:42:42 UTC
Hmm this is a bit concerning, even though i686 is no longer a blocking arch.

Comment 2 Jens Petersen 2022-12-23 08:47:46 UTC
Rawhide error:

+ ghc --make -package Cabal -no-user-package-db -dynamic Setup
epollCreate: invalid argument (Invalid argument)
error: Bad exit status from /var/tmp/rpm-tmp.YzEthl (%build)

Comment 3 Jens Petersen 2022-12-23 09:37:21 UTC
The biggest changes in the buildroot from f37 to f38 seem to be:

glibc: 2.36-8.fc37 -> 2.36.9000-18.fc38
libffi: 3.4.2-9.fc37 -> 3.4.4-1.fc38
redhat-rpm-config: 228-1.fc37 -> 235-1.fc38

Comment 4 Jens Petersen 2022-12-26 12:46:59 UTC

*** This bug has been marked as a duplicate of bug 2155825 ***

Comment 5 Jens Petersen 2022-12-26 12:48:45 UTC
This looks fixed by glibc-2.36.9000-19.fc38.i686


Note You need to log in before you can comment on or make changes to this bug.