Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bus error when calling .poll() on a closed Connection from multiprocessing.Pipe() #49820

Closed
amacleod mannequin opened this issue Mar 26, 2009 · 6 comments
Closed

Bus error when calling .poll() on a closed Connection from multiprocessing.Pipe() #49820

amacleod mannequin opened this issue Mar 26, 2009 · 6 comments
Labels
extension-modules C modules in the Modules dir

Comments

@amacleod
Copy link
Mannequin

amacleod mannequin commented Mar 26, 2009

BPO 5570
Nosy @benjaminp, @mallyvai

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2009-03-30.16:11:45.281>
created_at = <Date 2009-03-26.19:08:50.032>
labels = ['extension-modules']
title = 'Bus error when calling .poll() on a closed Connection from multiprocessing.Pipe()'
updated_at = <Date 2009-03-30.16:11:45.253>
user = 'https://bugs.python.org/amacleod'

bugs.python.org fields:

activity = <Date 2009-03-30.16:11:45.253>
actor = 'jnoller'
assignee = 'jnoller'
closed = True
closed_date = <Date 2009-03-30.16:11:45.281>
closer = 'jnoller'
components = ['Extension Modules']
creation = <Date 2009-03-26.19:08:50.032>
creator = 'amacleod'
dependencies = []
files = []
hgrepos = []
issue_num = 5570
keywords = []
message_count = 6.0
messages = ['84197', '84200', '84202', '84205', '84206', '84573']
nosy_count = 4.0
nosy_names = ['benjamin.peterson', 'jnoller', 'amacleod', 'mallyvai']
pr_nums = []
priority = 'high'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue5570'
versions = ['Python 2.6']

@amacleod
Copy link
Mannequin Author

amacleod mannequin commented Mar 26, 2009

Python 2.6.1 (r261:67515, Mar 26 2009, 14:44:39) 
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from multiprocessing import Pipe
>>> a, b = Pipe()
>>> a.close()
>>> a.poll()
Bus error

amacleod@cthulhu:~$ uname -a
Linux cthulhu 2.6.24-23-generic #1 SMP Mon Jan 26 01:04:16 UTC 2009
x86_64 GNU/Linux

I'm running Ubuntu 8.04 LTS, and just installed Python 2.6.1, compiling
from source.

@amacleod amacleod mannequin added the stdlib Python modules in the Lib dir label Mar 26, 2009
@mallyvai
Copy link
Mannequin

mallyvai mannequin commented Mar 26, 2009

Python 2.6.1 (r261:67515, Mar 22 2009, 05:39:39) 
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from multiprocessing import Pipe
>>> a, b = Pipe()
>>> a.close()
>>> a.poll()
Segmentation fault

Seems like this should raise an exception.

uname -a:
Linux mememy 2.6.24-23-generic #1 SMP Thu Feb 5 15:00:25 UTC 2009 i686
GNU/Linux

Compiled Python 2.6.1 from source.

@mallyvai mallyvai mannequin added extension-modules C modules in the Modules dir and removed stdlib Python modules in the Lib dir labels Mar 26, 2009
@jnoller
Copy link
Mannequin

jnoller mannequin commented Mar 26, 2009

See also:

http://svn.python.org/view?view=rev&revision=68768
http://bugs.python.org/issue3311

This was checked into trunk, I don't know if it was merged to 2.6.1

@jnoller
Copy link
Mannequin

jnoller mannequin commented Mar 26, 2009

OS/X, Python Trunk:

>>> from multiprocessing import Pipe
>>> a, b = Pipe()
>>> a.close()
>>> a.poll()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
IOError: handle out of range in select()
>>> 

2.6.1 Does not have the fix (I can segfault it here too). Ben, are we
planning a 2.6.2?

@benjaminp
Copy link
Contributor

2009/3/26 Jesse Noller <report@bugs.python.org>:

2.6.1 Does not have the fix (I can segfault it here too). Ben, are we
planning a 2.6.2?

Yes, I think around 3.1's release, but you'll have to ask Barry for sure.

@jnoller
Copy link
Mannequin

jnoller mannequin commented Mar 30, 2009

Merged back in CL 70721 on 26 maint

@jnoller jnoller mannequin closed this as completed Mar 30, 2009
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension-modules C modules in the Modules dir
Projects
None yet
Development

No branches or pull requests

1 participant