Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187597 - portage-2.1.3.2 intermittently crashes on x86-fbsd when fcntl() F_SETFL returns EAGAIN
Summary: portage-2.1.3.2 intermittently crashes on x86-fbsd when fcntl() F_SETFL retur...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 181949
  Show dependency tree
 
Reported: 2007-08-03 15:05 UTC by Joe Peterson (RETIRED)
Modified: 2007-08-03 19:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
zmedico's eagain.patch (eagain.patch,1.40 KB, patch)
2007-08-03 15:10 UTC, Joe Peterson (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Peterson (RETIRED) gentoo-dev 2007-08-03 15:05:44 UTC
Portage will give a python traceback intermittently on FreeBSD as follows:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 6378, in ?
    retval = emerge_main()
  File "/usr/bin/emerge", line 6372, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 5831, in action_build
    retval = mergetask.merge(pkglist, favorites, mtimedb)
  File "/usr/bin/emerge", line 3737, in merge
    prev_mtimes=ldpath_mtimes)
  File "/usr/lib/portage/pym/portage.py", line 4043, in doebuild
    alwaysdep=1, logfile=logfile)
  File "/usr/lib/portage/pym/portage.py", line 3177, in spawnebuild
retval=spawnebuild(actionmap[mydo]["dep"],actionmap,mysettings,debug,alwaysdep=alwaysdep,logfile=logfile)
  File "/usr/lib/portage/pym/portage.py", line 3177, in spawnebuild
retval=spawnebuild(actionmap[mydo]["dep"],actionmap,mysettings,debug,alwaysdep=alwaysdep,logfile=logfile)
  File "/usr/lib/portage/pym/portage.py", line 3182, in spawnebuild
    phase_retval = spawn(actionmap[mydo]["cmd"] % mydo, mysettings,
debug=debug, logfile=logfile, **kwargs)
  File "/usr/lib/portage/pym/portage.py", line 2439, in spawn
    fcntl.fcntl(f.fileno(), fcntl.F_SETFL, fd_flags[f])
IOError: [Errno 35] Resource temporarily unavailable

---

zmedico sent me a patch (attached next) that fixes this
Comment 1 Joe Peterson (RETIRED) gentoo-dev 2007-08-03 15:10:41 UTC
Created attachment 126812 [details, diff]
zmedico's eagain.patch

This patch seems to fix the issue - at least I got through an entire "emerge -e system" after applying it (whereas it would typically die 1/5 of the way in or so).
Comment 2 Zac Medico gentoo-dev 2007-08-03 19:44:33 UTC
Thanks, this is released in 2.1.3.3.