macports python crashing?
I am running a huge rebuild of my installed ports (evidently a lot of stuff depends on dbus-glib) and I keep getting an error (pops in the FInder/Aqua) that python has crashed. I'm not running python so I assume it's part of the rebuilding (though I know MacPorts uses tcl). It's calling the MacPorts python, not the system one, further convincing me it's part of the port rebuilding. Date/Time: 2007-01-31 22:55:06.877 -0800 OS Version: 10.4.8 (Build 8L127) Report Version: 4 Command: python Path: /opt/local/bin/python Parent: sh [14238] Version: ??? (???) PID: 14426 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000004 Thread 0 Crashed: 0 libpython2.4.dylib 0x0258ce90 PyDict_GetItemString + 48 (dictobject.c:504) 1 _gnome.so 0x005ef184 init_gnome + 92 2 org.python.python 0x002bb1e4 _PyImport_LoadDynamicModule + 196 (importdl.c:54) 3 org.python.python 0x002b9638 import_submodule + 424 (import.c: 2267) 4 org.python.python 0x002b98b0 load_next + 288 (import.c:2087) 5 org.python.python 0x002b9f54 PyImport_ImportModuleEx + 532 (import.c:1922) 6 org.python.python 0x00287ec8 builtin___import__ + 104 (bltinmodule.c:45) 7 org.python.python 0x0020e0c4 PyObject_Call + 52 (abstract.c:1796) 8 org.python.python 0x00291970 PyEval_CallObjectWithKeywords + 272 (ceval.c:3431) 9 org.python.python 0x0029637c PyEval_EvalFrame + 14060 (ceval.c: 2020) 10 org.python.python 0x002992d4 PyEval_EvalCodeEx + 2196 (ceval.c: 2736) 11 org.python.python 0x00299480 PyEval_EvalCode + 48 (ceval.c:490) 12 org.python.python 0x002b8070 PyImport_ExecCodeModuleEx + 304 (import.c:632) 13 org.python.python 0x002b8570 load_source_module + 1008 (import.c:910) 14 org.python.python 0x002b9008 load_package + 360 (import.c:965) 15 org.python.python 0x002b9638 import_submodule + 424 (import.c: 2267) 16 org.python.python 0x002b98b0 load_next + 288 (import.c:2087) 17 org.python.python 0x002b9f54 PyImport_ImportModuleEx + 532 (import.c:1922) 18 org.python.python 0x00287ec8 builtin___import__ + 104 (bltinmodule.c:45) 19 org.python.python 0x0020e0c4 PyObject_Call + 52 (abstract.c:1796) 20 org.python.python 0x00291970 PyEval_CallObjectWithKeywords + 272 (ceval.c:3431) 21 org.python.python 0x0029637c PyEval_EvalFrame + 14060 (ceval.c: 2020) 22 org.python.python 0x002992d4 PyEval_EvalCodeEx + 2196 (ceval.c: 2736) 23 org.python.python 0x00299480 PyEval_EvalCode + 48 (ceval.c:490) 24 org.python.python 0x002c3d58 PyRun_FileExFlags + 216 (pythonrun.c:1266) 25 org.python.python 0x002c3f90 PyRun_SimpleFileExFlags + 448 (pythonrun.c:860) 26 org.python.python 0x002cfb38 Py_Main + 2744 (main.c:493) 27 python 0x000028ec _start + 760 28 python 0x000025f0 start + 48 Thread 0 crashed with PPC Thread State 64: srr0: 0x000000000258ce90 srr1: 0x000000000000d030 vrsave: 0x0000000000000000 cr: 0x44244224 xer: 0x0000000000000004 lr: 0x000000000258ce88 ctr: 0x0000000090130fc0 r0: 0x000000000258ce88 r1: 0x00000000bfffd550 r2: 0x0000000000000000 r3: 0x0000000000059390 r4: 0x00000000005f5386 r5: 0x000000000000000f r6: 0x0000000000000000 r7: 0x000000004f626a65 r8: 0x0000000000059368 r9: 0x000000000006e000 r10: 0x0000000000059390 r11: 0x00000000003269cc r12: 0x00000000000593b2 r13: 0x00000000ffffffff r14: 0x0000000000000000 r15: 0x00000000ffffffff r16: 0x0000000000016b74 r17: 0x0000000000062650 r18: 0x0000000000061dc8 r19: 0x0000000000000000 r20: 0x0000000000000000 r21: 0x0000000000308d48 r22: 0x0000000000066630 r23: 0x00000000003294ac r24: 0x00000000bfffd6b0 r25: 0x00000000bfffdba0 r26: 0x00000000005ef128 r27: 0x00000000bfffd6b0 r28: 0x0000000000000000 r29: 0x0000000000000000 r30: 0x0000000000059390 r31: 0x000000000258ce70 Binary Images Description: 0x1000 - 0x3fff python /opt/local/bin/python 0x46000 - 0x48fff libgthread-2.0.0.dylib /opt/local/lib/ libgthread-2.0.0.dylib 0xa4000 - 0xe4fff libgobject-2.0.0.dylib /opt/local/lib/ libgobject-2.0.0.dylib 0xfb000 - 0xfcfff libgmodule-2.0.0.dylib /opt/local/lib/ libgmodule-2.0.0.dylib 0x205000 - 0x302fff org.python.python 2.4a0 (2.2) /opt/local/ Library/Frameworks/Python.framework/Versions/2.4/Python 0x573000 - 0x591fff _gobject.so /opt/local/lib/python2.4/site- packages/gtk-2.0/gobject/_gobject.so 0x5ee000 - 0x5f5fff _gnome.so /opt/local/lib/python2.4/site- packages/gtk-2.0/gnome/_gnome.so 0x705000 - 0x7b7fff libglib-2.0.0.dylib /opt/local/lib/ libglib-2.0.0.dylib 0x7d2000 - 0x7dafff libintl.8.dylib /opt/local/lib/libintl.8.dylib 0x7f3000 - 0x7fcfff libpopt.0.dylib /opt/local/lib/libpopt.0.dylib 0x1008000 - 0x1101fff libiconv.2.dylib /opt/local/lib/libiconv.2.dylib 0x1152000 - 0x1161fff libgnome-2.0.dylib /opt/local/lib/ libgnome-2.0.dylib 0x1188000 - 0x1299fff libxml2.2.dylib /opt/local/lib/libxml2.2.dylib 0x14d2000 - 0x14f1fff libdbus-glib-1.2.dylib /opt/local/lib/libdbus- glib-1.2.dylib 0x14fe000 - 0x1554fff libdbus-1.3.dylib /opt/local/lib/ libdbus-1.3.dylib 0x156b000 - 0x15a5fff libssl.0.9.8.dylib /opt/local/lib/libssl. 0.9.8.dylib 0x15bb000 - 0x16bcfff libcrypto.0.9.8.dylib /opt/local/lib/ libcrypto.0.9.8.dylib 0x1728000 - 0x173afff libz.1.dylib /opt/local/lib/libz.1.dylib 0x173e000 - 0x173ffff libORBitCosNaming-2.0.dylib /opt/local/lib/ libORBitCosNaming-2.0.dylib 0x1753000 - 0x1758fff libesd.0.dylib /opt/local/lib/libesd.0.dylib 0x176f000 - 0x17bffff libbonobo-2.0.dylib /opt/local/lib/ libbonobo-2.0.dylib 0x2008000 - 0x2014fff libhowl.0.dylib /opt/local/lib/libhowl.0.dylib 0x2157000 - 0x217dfff libaudiofile.0.dylib /opt/local/lib/ libaudiofile.0.dylib 0x21fe000 - 0x224cfff libgnomevfs-2.0.dylib /opt/local/lib/ libgnomevfs-2.0.dylib 0x2355000 - 0x2365fff libbonobo-activation.4.dylib /opt/local/lib/ libbonobo-activation.4.dylib 0x2372000 - 0x239bfff libgconf-2.4.dylib /opt/local/lib/ libgconf-2.4.dylib 0x2407000 - 0x243dfff libORBit-2.0.dylib /opt/local/lib/ libORBit-2.0.dylib 0x254a000 - 0x2646fff libpython2.4.dylib /opt/local/lib/ libpython2.4.dylib 0x8fe00000 - 0x8fe51fff dyld 45.3 /usr/lib/dyld 0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib 0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/ libmathCommon.A.dylib 0x907ba000 - 0x90893fff com.apple.CoreFoundation 6.4.6 (368.27) / System/Library/Frameworks/CoreFoundation.framework/Versions/A/ CoreFoundation 0x908de000 - 0x909e0fff libicucore.A.dylib /usr/lib/libicucore.A.dylib 0x90a3a000 - 0x90abefff libobjc.A.dylib /usr/lib/libobjc.A.dylib 0x90ae8000 - 0x90b58fff com.apple.framework.IOKit 1.4 (???) /System/ Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x90b6e000 - 0x90b80fff libauto.dylib /usr/lib/libauto.dylib 0x9110d000 - 0x9111bfff libz.1.dylib /usr/lib/libz.1.dylib 0x913e8000 - 0x91410fff com.apple.SystemConfiguration 1.8.3 /System/ Library/Frameworks/SystemConfiguration.framework/Versions/A/ SystemConfiguration 0x91423000 - 0x9142efff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib 0x9143f000 - 0x914bafff com.apple.audio.CoreAudio 3.0.4 /System/ Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x92d7e000 - 0x92e6cfff libiconv.2.dylib /usr/lib/libiconv.2.dylib 0x94b07000 - 0x94b78fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib 0x94f73000 - 0x94f90fff libresolv.9.dylib /usr/lib/libresolv.9.dylib Model: PowerBook6,3, BootROM 4.7.7f0, 1 processors, PowerPC G4 (3.3), 800 MHz, 640 MB Graphics: ATI Mobility Radeon 9200, ATY,RV280M9+, AGP, 32 MB Memory Module: DIMM0/BUILT-IN, 128 MB, built-in, built-in Memory Module: DIMM1/J31, 512 MB, DDR SDRAM, PC2700U-25330 AirPort: AirPort Extreme, 405.1 (3.90.34.0.p18) Modem: MicroDash, UCJ, V.92, 1.0F, APPLE VERSION 2.6.6 Network Service: AirPort, AirPort, en1 Parallel ATA Device: MATSHITACD-RW CW-8123, Parallel ATA Device: TOSHIBA MK3021GAS, 27.94 GB -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem? -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem?
On 1/31/07, Paul Beard <paulbeard@gmail.com> wrote:
I am running a huge rebuild of my installed ports (evidently a lot of stuff depends on dbus-glib) and I keep getting an error (pops in the FInder/Aqua) that python has crashed. I'm not running python so I assume it's part of the rebuilding (though I know MacPorts uses tcl).
If you tried "sudo port upgrade -R dbus", you may have run out of memory at some point (see my previous post). That tends to corrupt running machine state. Try rebooting. (It worked for me, when things like Firefox and Dashboard widgets started dying.) Oh, on that note -- is there a sensible way to avoid having anything other than the actual package installation step run as root? If I had any sense I would have asked that before the first time I typed "port install". Cheers, - Michael
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jan 31, 2007, at 11:41 PM, Michael K. Edwards wrote:
If you tried "sudo port upgrade -R dbus", you may have run out of memory at some point (see my previous post). That tends to corrupt running machine state. Try rebooting. (It worked for me, when things like Firefox and Dashboard widgets started dying.)
I'm running on a very undersized system (640 Mb maxed out) and while it bogs down and swaps like mad, applications don't get dumped. I just wonder at why there is a python process in the mix at all, given that MacPorts' infrastructure is all tcl. from what I can gather, it's not dying from lack of memory but some other error. - -- Paul Beard contact info: www.paulbeard.org/paulbeard.vcf pictures: http://www.flickr.com/photos/pdb206/ Are you trying to win an argument or solve a problem? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) iD8DBQFFwhL2fHLPwpj1/JQRAnNXAJ9epZTapdRqxA9f096F3NWuB+q6+ACfb1Me m7G2sVqvaCkaGOQGB5nxJ0I= =hzeK -----END PGP SIGNATURE-----
Port itself doesn't call python. Perhaps you're installing a piece of software that runs python as part of its build process? On Feb 1, 2007, at 2:10 AM, Paul Beard wrote:
I am running a huge rebuild of my installed ports (evidently a lot of stuff depends on dbus-glib) and I keep getting an error (pops in the FInder/Aqua) that python has crashed. I'm not running python so I assume it's part of the rebuilding (though I know MacPorts uses tcl).
It's calling the MacPorts python, not the system one, further convincing me it's part of the port rebuilding.
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
Not really. The /opt/local directory hierarchy is root:admin, and the work directories exist as part of this hierarchy, so simply creating the work directory requires root privileges. This is in general a Good Thing, as it means unprivileged users can't build their own packages through port. You could go and modify the /opt/local/var/db/ dports/build tree to be user-writable, at which point you can *build* software without sudo (using, say, port destroot <software>, though you'd have to install dependencies first or it will try to do so and fail at installation), and then install it with sudo. If you set the entire /opt/local tree to be user-writable, you should be able to fully install stuff without sudo, as long as it doesn't go out of that tree (a common exception that comes to mind is stuff that installs in /Applications/DarwinPorts). I assume you're concerned about random software build processes being run with root privileges, yes? It seems to me the best solution is to run the actual configure/build/destroot steps themselves in an unprivileged child process (after ensuring that the extracted source is user-writable). Is that what you'd be interested in seeing? On Feb 1, 2007, at 2:41 AM, Michael K. Edwards wrote:
Oh, on that note -- is there a sensible way to avoid having anything other than the actual package installation step run as root? If I had any sense I would have asked that before the first time I typed "port install".
-- Kevin Ballard http://kevin.sb.org eridius@macports.org http://www.tildesoft.com
participants (3)
-
Kevin Ballard
-
Michael K. Edwards
-
Paul Beard