[MacPorts] #29496: Segmentation fault when building python27
#29496: Segmentation fault when building python27 -------------------------------+-------------------------------------------- Reporter: thomas@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: python27 -------------------------------+-------------------------------------------- When I run "sudo port install python27" on my 10.6.7 iMac here's what I get: {{{ :info:build /bin/sh: line 1: 60319 Segmentation fault DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1: CC='/usr/bin/gcc-4.2' LDSHARED='/usr/bin/gcc-4.2 -L/opt/local/lib -arch x86_64 -bundle -undefined dynamic_lookup -L/opt/local/lib -arch x86_64' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python.exe -E ./setup.py -q --no-user-cfg build }}} Attaching the python.exe crash log and main.log -- Ticket URL: <https://trac.macports.org/ticket/29496> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29496: Segmentation fault when building python27 -------------------------------+-------------------------------------------- Reporter: thomas@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: python27 -------------------------------+-------------------------------------------- Comment(by thomas@…): Since the crash is in ncurses, I should probably mention that I have the ncurses @5.9 port installed. -- Ticket URL: <https://trac.macports.org/ticket/29496#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29496: Segmentation fault when building python27 -------------------------------+-------------------------------------------- Reporter: thomas@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: python27 -------------------------------+-------------------------------------------- Changes (by cal@…): * cc: thomas@… (removed) * owner: macports-tickets@… => jwa@… Comment: You don't need to CC yourself. -- Ticket URL: <https://trac.macports.org/ticket/29496#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29496: Segmentation fault when building python27 -------------------------------+-------------------------------------------- Reporter: thomas@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: python27 -------------------------------+-------------------------------------------- Comment(by thomas@…): If you launch the command mentioned in main.log in gdb the backtrace is slightly more detailed: #0 0x000000010165db5f in _nc_trim_sgr0 () #1 0x0000000101659094 in tgetent () #2 0x000000010160fb82 in _rl_init_terminal_io () #3 0x00000001015f8350 in rl_initialize () #4 0x00000001015efa05 in setup_readline [inlined] () at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1/Modules/readline.c:899 #5 0x00000001015efa05 in initreadline () at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1/Modules/readline.c:1130 I've tried to reinstall the ncurses and readline ports, to no avail. -- Ticket URL: <https://trac.macports.org/ticket/29496#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29496: Segmentation fault when building python27 -------------------------------+-------------------------------------------- Reporter: thomas@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: python27 -------------------------------+-------------------------------------------- Comment(by thomas@…): With the proper formatting: (sorry!) {{{ #0 0x000000010165db5f in _nc_trim_sgr0 () #1 0x0000000101659094 in tgetent () #2 0x000000010160fb82 in _rl_init_terminal_io () #3 0x00000001015f8350 in rl_initialize () #4 0x00000001015efa05 in setup_readline [inlined] () at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1/Modules/readline.c:899 #5 0x00000001015efa05 in initreadline () at /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/work/Python-2.7.1/Modules/readline.c:1130 }}} -- Ticket URL: <https://trac.macports.org/ticket/29496#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29496: Segmentation fault when building python27 -------------------------------+-------------------------------------------- Reporter: thomas@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: python27 -------------------------------+-------------------------------------------- Comment(by mark.ritchie@…): I too hit this problem and was able to workaround it by using this variant:[[BR]] sudo port install python27 +universal As there are a bunch of dependencies which need to be updated to +universal, this took a while however it worked for me! ;-)[[BR]] My machine is a Mac Book Pro running OSX 10.6.7[[BR]] Hope that helps! [[BR]] M. -- Ticket URL: <https://trac.macports.org/ticket/29496#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29496: Segmentation fault when building python27 -------------------------------+-------------------------------------------- Reporter: thomas@… | Owner: jwa@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Keywords: | Port: python27 -------------------------------+-------------------------------------------- Comment(by thomas@…): Mark's instructions solved my problem. Feel free to close! Thanks, Thomas -- Ticket URL: <https://trac.macports.org/ticket/29496#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29496: Segmentation fault when building python27 --------------------------------+------------------------------------------- Reporter: thomas@… | Owner: jwa@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.2 Resolution: duplicate | Keywords: Port: python27 | --------------------------------+------------------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => duplicate Comment: Assuming this is the same as #29771. -- Ticket URL: <https://trac.macports.org/ticket/29496#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts