Bug 1044336 - OSError: [Errno 9] Bad file descriptor
Summary: OSError: [Errno 9] Bad file descriptor
Keywords:
Status: CLOSED DUPLICATE of bug 1103450
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Bohuslav "Slavek" Kabrda
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c7727fafeeed70b0616f5a65db1...
: 1044706 1056315 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-18 06:43 UTC by Persona non grata
Modified: 2014-10-13 14:11 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-13 14:11:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: anaconda-tb (338.66 KB, text/plain)
2013-12-18 06:43 UTC, Persona non grata
no flags Details
File: anaconda.log (5.18 KB, text/plain)
2013-12-18 06:44 UTC, Persona non grata
no flags Details
File: environ (405 bytes, text/plain)
2013-12-18 06:44 UTC, Persona non grata
no flags Details
File: lsblk_output (2.39 KB, text/plain)
2013-12-18 06:44 UTC, Persona non grata
no flags Details
File: nmcli_dev_list (7.45 KB, text/plain)
2013-12-18 06:44 UTC, Persona non grata
no flags Details
File: os_info (375 bytes, text/plain)
2013-12-18 06:44 UTC, Persona non grata
no flags Details
File: program.log (48.13 KB, text/plain)
2013-12-18 06:44 UTC, Persona non grata
no flags Details
File: storage.log (122.16 KB, text/plain)
2013-12-18 06:44 UTC, Persona non grata
no flags Details
File: syslog (119.64 KB, text/plain)
2013-12-18 06:44 UTC, Persona non grata
no flags Details
File: ifcfg.log (1.77 KB, text/plain)
2013-12-18 06:44 UTC, Persona non grata
no flags Details

Description Persona non grata 2013-12-18 06:43:45 UTC
Version-Release number of selected component:
anaconda-20.25.15-1

The following was filed automatically by anaconda:
anaconda 20.25.15-1 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/subprocess.py", line 1299, in _execute_child
    os.close(errpipe_read)
  File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/site-packages/blivet/util.py", line 40, in _run_program
    preexec_fn=chroot, cwd=root, env=env)
  File "/usr/lib/python2.7/site-packages/blivet/util.py", line 56, in run_program
    return _run_program(*args, **kwargs)[0]
  File "/usr/lib/python2.7/site-packages/blivet/udev.py", line 86, in udev_settle
    util.run_program(["udevadm", "settle", "--timeout=300"])
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 745, in _preTeardown
    udev_settle()
  File "/usr/lib/python2.7/site-packages/blivet/devices.py", line 756, in teardown
    if not self._preTeardown(recursive=recursive):
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 3053, in findExistingInstallations
    device.teardown()
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 427, in reset
    self.roots = findExistingInstallations(self.devicetree)
  File "/usr/lib/python2.7/site-packages/blivet/__init__.py", line 142, in storageInitialize
    storage.reset()
  File "/usr/lib64/python2.7/threading.py", line 764, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/threads.py", line 192, in run
    threading.Thread.run(self, *args, **kwargs)
OSError: [Errno 9] Bad file descriptor

Additional info:
cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=initrd.img inst.stage2=hd:LABEL=Fedora\x2020\x20x86_64 rd.live.check quiet BOOT_IMAGE=vmlinuz 
executable:     /sbin/anaconda
hashmarkername: anaconda
kernel:         3.11.10-301.fc20.x86_64
product:        Fedora
release:        Cannot get release name.
type:           anaconda
version:        20

Comment 1 Persona non grata 2013-12-18 06:43:53 UTC
Created attachment 838126 [details]
File: anaconda-tb

Comment 2 Persona non grata 2013-12-18 06:44:00 UTC
Created attachment 838127 [details]
File: anaconda.log

Comment 3 Persona non grata 2013-12-18 06:44:02 UTC
Created attachment 838128 [details]
File: environ

Comment 4 Persona non grata 2013-12-18 06:44:06 UTC
Created attachment 838129 [details]
File: lsblk_output

Comment 5 Persona non grata 2013-12-18 06:44:13 UTC
Created attachment 838130 [details]
File: nmcli_dev_list

Comment 6 Persona non grata 2013-12-18 06:44:16 UTC
Created attachment 838131 [details]
File: os_info

Comment 7 Persona non grata 2013-12-18 06:44:18 UTC
Created attachment 838132 [details]
File: program.log

Comment 8 Persona non grata 2013-12-18 06:44:21 UTC
Created attachment 838133 [details]
File: storage.log

Comment 9 Persona non grata 2013-12-18 06:44:27 UTC
Created attachment 838134 [details]
File: syslog

Comment 10 Persona non grata 2013-12-18 06:44:30 UTC
Created attachment 838135 [details]
File: ifcfg.log

Comment 11 David Shea 2013-12-18 13:20:36 UTC
Please provide steps to reproduce this bug

Comment 12 David Shea 2013-12-18 21:11:46 UTC
*** Bug 1044706 has been marked as a duplicate of this bug. ***

Comment 13 Persona non grata 2013-12-18 22:01:32 UTC
Comment on attachment 838126 [details]
File: anaconda-tb



Hi
I'm not sure how to respond to these emails.

I was trying to install F20 Final and had to go through the pre install setup 3 times which necessitated rebooting to start the process again.  

I had difficulty finalising the target hdd partition setup. This failed so I restarted and went through it again and suddenly the bug problem popped up.

regards

Steven

Comment 14 Brian Lane 2013-12-20 19:52:39 UTC
I think this is a python bug.The failure is happening when errpipe_write is closed in the parent process. take a look at anaconda-tb for the local variables present when the TB happens.

Note, the blivet call to subprocess looks like this:

def _run_program(argv, root='/', stdin=None, env_prune=None):
     if env_prune is None:
         env_prune = []
 
     def chroot():
         if root and root != '/':
             os.chroot(root)
 
     with program_log_lock:
         program_log.info("Running... %s" % " ".join(argv))
 
         env = os.environ.copy()
         env.update({"LC_ALL": "C",
                     "INSTALL_PATH": root})
         for var in env_prune:
             env.pop(var, None)
 
         try:
             proc = subprocess.Popen(argv,
                                     stdin=stdin,
                                     stdout=subprocess.PIPE,
                                     stderr=subprocess.STDOUT,
                                     close_fds=True,
                                     preexec_fn=chroot, cwd=root, env=env)
 
             out = proc.communicate()[0]
             if out:
                 for line in out.splitlines():
                     program_log.info(line)
 
         except OSError as e:
             program_log.error("Error running %s: %s" % (argv[0], e.strerror))
             raise
 
         program_log.debug("Return code: %d" % proc.returncode)
 
     return (proc.returncode, out)

Comment 15 Orion Poplawski 2014-02-05 17:49:51 UTC
kickstart install reusing existing partitions

cmdline:        /usr/bin/python  /sbin/anaconda
cmdline_file:   initrd=/images/fedora-20-x86_64/initrd.img ksdevice=bootif lang= kssendmac text ks=http://10.10.10.1/cblr/svc/op/ks/system/palila BOOT_IMAGE=/images/fedora-20-x86_64/vmlinuz BOOTIF=01-b8-ac-6f-75-21-3a 
hashmarkername: anaconda
kernel:         3.11.10-301.fc20.x86_64
package:        anaconda-20.25.15-1
packaging.log:  
product:        Fedora
reason:         OSError: [Errno 9] Bad file descriptor
release:        Cannot get release name.
version:        20

Comment 16 Orion Poplawski 2014-02-05 18:06:45 UTC
Seems to be a race - tried again and it's working.

Comment 17 David Shea 2014-03-03 15:35:52 UTC
*** Bug 1056315 has been marked as a duplicate of this bug. ***

Comment 18 Persona non grata 2014-06-10 02:59:41 UTC

Hi Its quite some time ago since this happened and I an unable to provide any further info beyond what I said initially.

I'm sorry, but I am not a developer just an enthusiastic user.

regards

Steven

Comment 19 David Shea 2014-10-13 14:11:41 UTC

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


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