This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS _NOT_SUPPORTED_BY_FILE_MANAGER
Type: crash Stage: resolved
Components: macOS Versions: Python 3.1, Python 3.2, Python 2.7, Python 2.6
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: aahz, ronaldoussoren
Priority: normal Keywords: easy

Created on 2010-02-09 18:56 by aahz, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue-7895-platform.txt ronaldoussoren, 2010-07-11 10:16
Messages (3)
msg99136 - (view) Author: Aahz (aahz) * (Python triager) Date: 2010-02-09 18:56
On OSX 10.6/Snow Leopard, using platform.mac_ver() in a subprocess
created with fork() but not calling exec() will cause a crash with
USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER

You may need to be also running in GUI mode.

Ronald Oussouren says that you can get the same info from
/System/Library/CoreServices/SystemVersion.plist
msg109982 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-07-11 10:16
I've attached a patch for python 3.2 that uses plistlib to read the XML file.  This should also work with python 2.7.

I want to commit this in the near future, but don't have time right now to apply the patch to all 4 active branches and do testing.

(The patch also includes a unittests that checks that mac_ver doesn't crash)
msg111303 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-07-23 12:46
Fixed in r83075 (3.2), r83084 (3.1), r83085 (2.7), r83086 (2.6)
History
Date User Action Args
2022-04-11 14:56:57adminsetgithub: 52143
2010-07-23 12:46:07ronaldoussorensetstatus: open -> closed

messages: + msg111303
stage: patch review -> resolved
2010-07-23 10:15:08ronaldoussorensetkeywords: + easy
2010-07-11 10:16:39ronaldoussorensetfiles: + issue-7895-platform.txt
resolution: accepted
messages: + msg109982

stage: test needed -> patch review
2010-02-09 22:33:53ronaldoussorensetversions: + Python 2.6, Python 3.1, Python 2.7, Python 3.2
2010-02-09 20:41:06floxsetpriority: normal
title: Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS_NOT_SUPPORTED_BY_FILE_MANAGER -> Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS _NOT_SUPPORTED_BY_FILE_MANAGER
2010-02-09 18:56:35aahzcreate