Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #58579 > unrolled thread
| Started by | John Ladasky <john_ladasky@sbcglobal.net> |
|---|---|
| First post | 2013-11-06 10:15 -0800 |
| Last post | 2013-11-10 17:50 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.python
Py 3.3.2, MacBookPro, segmentation fault, GCC issue? John Ladasky <john_ladasky@sbcglobal.net> - 2013-11-06 10:15 -0800
Re: Py 3.3.2, MacBookPro, segmentation fault, GCC issue? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-06 18:37 +0000
Re: Py 3.3.2, MacBookPro, segmentation fault, GCC issue? John Ladasky <john_ladasky@sbcglobal.net> - 2013-11-06 12:47 -0800
Re: Py 3.3.2, MacBookPro, segmentation fault, GCC issue? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-11-06 21:07 +0000
Re: Py 3.3.2, MacBookPro, segmentation fault, GCC issue? Laurent Pointal <laurent.pointal@free.fr> - 2013-11-10 17:50 +0100
| From | John Ladasky <john_ladasky@sbcglobal.net> |
|---|---|
| Date | 2013-11-06 10:15 -0800 |
| Subject | Py 3.3.2, MacBookPro, segmentation fault, GCC issue? |
| Message-ID | <886de52b-4324-42c2-b088-fb03116c2575@googlegroups.com> |
I am trying to help a student of mine install Python 3 on his MacBook Pro. The installation succeeds. However, upon opening the Python interpreter, he can only execute one Python command successfully. On the second command, the interpreter crashes, giving the error "Segmentation fault: 11". I have installed Python 3 on Linux and on Windows before, but I have no prior experience with Macs. I know that OSX is Unix-like, but I'm sure that there are significant differences between the Linux that I normally use and OSX. My student's computer is configured as follows: MacBook Pro, 2.5 GHz Intel Core i5, 4 GB RAM 1600 MHz DDR3, OS X 10.9. We installed the Python 3.3.2 Mac OS X 64-bit/32-bit x86-64/i386 Installer (for Mac OS X 10.6 and later) from http://python.org/download. The Python interpreter reported the following when it was opened: Python 3.3.2 : d047928ae3f6, May 13 2013, 13:52:24 GCC 4.2.1 (Apple Inc. build 5666) (dot3) on darwin I do not know exactly how the Mac installer works. It seemed to operate quickly. It reported very little about what work it was actually doing. Does it install pre-compiled binaries, or does it actually build Python locally from source code? GCC 4.2.1 strikes me as OLD. According to http://gcc.gnu.org/releases.html, it was released in 2007! I would guess that the segfault is occurring because the Python interpreter was compiled using an outdated GCC. First question: did this outdated compiler execute its work at python.org (seems unlikely), or on my student's computer (seems more likely, though still rather absurd)? Follow-up questions: if I need a more current GCC for my student's Mac, how do I obtain it? And are there any backwards-compatibility issues I might need to worry about if I do upgrade? From my Linux experience, upgrading GCC has never caused problems. But I want to be cautious, since this isn't my computer I'll be playing with, but someone else's. Thanks for any advice you may have.
[toc] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-11-06 18:37 +0000 |
| Message-ID | <mailman.2088.1383763093.18130.python-list@python.org> |
| In reply to | #58579 |
On 06/11/2013 18:15, John Ladasky wrote: > I am trying to help a student of mine install Python 3 on his MacBook Pro. The installation succeeds. However, upon opening the Python interpreter, he can only execute one Python command successfully. On the second command, the interpreter crashes, giving the error "Segmentation fault: 11". > > I have installed Python 3 on Linux and on Windows before, but I have no prior experience with Macs. I know that OSX is Unix-like, but I'm sure that there are significant differences between the Linux that I normally use and OSX. > > My student's computer is configured as follows: MacBook Pro, 2.5 GHz Intel Core i5, 4 GB RAM 1600 MHz DDR3, OS X 10.9. We installed the Python 3.3.2 Mac OS X 64-bit/32-bit x86-64/i386 Installer (for Mac OS X 10.6 and later) from http://python.org/download. > > The Python interpreter reported the following when it was opened: > > Python 3.3.2 : d047928ae3f6, May 13 2013, 13:52:24 > GCC 4.2.1 (Apple Inc. build 5666) (dot3) on darwin > > I do not know exactly how the Mac installer works. It seemed to operate quickly. It reported very little about what work it was actually doing. Does it install pre-compiled binaries, or does it actually build Python locally from source code? GCC 4.2.1 strikes me as OLD. According to http://gcc.gnu.org/releases.html, it was released in 2007! I would guess that the segfault is occurring because the Python interpreter was compiled using an outdated GCC. > > First question: did this outdated compiler execute its work at python.org (seems unlikely), or on my student's computer (seems more likely, though still rather absurd)? > > Follow-up questions: if I need a more current GCC for my student's Mac, how do I obtain it? And are there any backwards-compatibility issues I might need to worry about if I do upgrade? From my Linux experience, upgrading GCC has never caused problems. But I want to be cautious, since this isn't my computer I'll be playing with, but someone else's. > > Thanks for any advice you may have. > http://bugs.python.org/issue18458 -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | John Ladasky <john_ladasky@sbcglobal.net> |
|---|---|
| Date | 2013-11-06 12:47 -0800 |
| Message-ID | <149f4f97-3012-447c-a7ca-26b5cfef01d9@googlegroups.com> |
| In reply to | #58582 |
Thanks, Mark. Reading through the information in your link, I appear to have encountered an actual bug specific to Python 3.3.2 and OS X 10.9. And it appears that the 3.3.3 version of Python that fixes this bug is still in beta. And that I can have my student download the working version from here: http://www.python.org/download/releases/3.3.3/ Does that all sound correct?
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-11-06 21:07 +0000 |
| Message-ID | <mailman.2090.1383772062.18130.python-list@python.org> |
| In reply to | #58586 |
On 06/11/2013 20:47, John Ladasky wrote: > Thanks, Mark. > > Reading through the information in your link, I appear to have encountered an actual bug specific to Python 3.3.2 and OS X 10.9. And it appears that the 3.3.3 version of Python that fixes this bug is still in beta. And that I can have my student download the working version from here: > > http://www.python.org/download/releases/3.3.3/ > > Does that all sound correct? > Very close :) The 3.3.3 version is actually a release candidate. In other words if no problems get reported it'll get a full release, if there are problems there may be a second release candidate depending on the severity. That's all down to the release manager. As your student appears to be up the creek without a paddle and has a hole in the bottom of the canoe, I suggest you get them going with this release. Slight aside, would you please quote context when you reply, TIA. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Laurent Pointal <laurent.pointal@free.fr> |
|---|---|
| Date | 2013-11-10 17:50 +0100 |
| Message-ID | <527fb973$0$13986$426a74cc@news.free.fr> |
| In reply to | #58579 |
John Ladasky wrote: > I am trying to help a student of mine install Python 3 on his MacBook Pro. <zip> > Follow-up questions: if I need a more current GCC for my student's Mac, > how do I obtain it? And are there any backwards-compatibility issues I > might need to worry about if I do upgrade? From my Linux experience, > upgrading GCC has never caused problems. But I want to be cautious, since > this isn't my computer I'll be playing with, but someone else's. AFAIK Apple stop delivering new gcc when it goes to GPL3 licence. In place, they use llvm compiler tool. See discussions and links in http://stackoverflow.com/questions/9353444/how-to-use-install-gcc-on-mac-os-x-10-8-xcode-4-4 There may be other solutions, but you should prefer ask in a specific MacOS usenet group. A+ > > Thanks for any advice you may have. -- Laurent POINTAL - laurent.pointal@laposte.net
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web