[MacPorts] #19510: dbus-daemon crashes (KERN_PROTECTION_FAILURE)

MacPorts noreply at macports.org
Wed Sep 23 02:43:05 PDT 2009


#19510: dbus-daemon crashes (KERN_PROTECTION_FAILURE)
----------------------------------+-----------------------------------------
  Reporter:  vinc17@…             |       Owner:  mcalhoun@…           
      Type:  defect               |      Status:  closed               
  Priority:  Normal               |   Milestone:                       
 Component:  ports                |     Version:  1.7.1                
Resolution:  fixed                |    Keywords:                       
      Port:  dbus                 |  
----------------------------------+-----------------------------------------

Comment(by macports@…):

 I can reproduce the issue with clean install of MacPorts 1.8.0 and dbus
 @1.2.14_0 under 10.5.8.


 As a new user of Mac, coming from linux I find macports very useful.
 Running Mac OS X 10.5.8 as updated automatically from Apple I downloaded
 MacPorts-1.8.0-10.5-Leopard.dmg, xcode313_2736_developerdvd.dmg,
 X11-2.4.0.dmg, installed all and performed port install gnome-games.

 Failing to handle preferences I found troubles with dbus, but did not
 consider them critical and installed also gimp. This failed as well, and
 the dbus troubles become concerning. Found various threads mentioning
 the launchctl issues, but so far they did not help.

 As next resort I removed all ports, rebooted and installed only dbus.
 Did this several times, and always end up with the same issue:

 {{{
 mac40:~ amk$ sudo port install -d dbus
 --->  Computing dependencies for dbus
 --->  Fetching dbus
 --->  Verifying checksum(s) for dbus
 --->  Extracting dbus
 --->  Applying patches to dbus
 --->  Configuring dbus
 --->  Building dbus
 --->  Staging dbus into destroot
 --->  Installing dbus @1.2.14_0
 --->  Activating dbus @1.2.14_0
 #################################################################################################
 # Startup items have been generated that will aid in
 # starting dbus with launchd. They are disabled
 # by default. Execute the following command to start them,
 # and to cause it to launch at startup:
 #
 # sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop.dbus-
 system.plist
 # launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-
 session.plist
 ##################################################################################################
 --->  Cleaning dbus
 mac40:~ amk$ sudo launchctl load -w /Library/LaunchDaemons/org.freedesktop
 .dbus-system.plist
 mac40:~ amk$ ps exauww | grep bus
 messagebus 18915   0.0  0.0   600132    636   ??  Ss    9:33PM   0:00.00
 /opt/local/bin/dbus-daemon --system --nofork
 amk      18921   0.0  0.0   601748    324 s000  R+    9:33PM   0:00.00
 grep bus
 +MANPATH=/opt/local/share/man:/usr/share/man:/usr/local/share/man:/usr/X11/share/man
 TERM=xterm SHELL=/bin/bash SSH_CLIENT=192.168.1.102 58460 22
 +SSH_TTY=/dev/ttys000 USER=amk SSH_AUTH_SOCK=/tmp/ssh-hMWFfWdU6e/agent.179
 MAIL=/var/mail/amk
 +PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
 PWD=/Users/amk SHLVL=1 HOME=/Users/amk LOGNAME=amk
 +SSH_CONNECTION=192.168.1.102 58460 192.168.1.104 22 _=/usr/bin/grep
 mac40:~ amk$ launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-
 session.plist
 launchctl:
 CFURLWriteDataAndPropertiesToResource(/Library/LaunchAgents/org.freedesktop
 .dbus-session.plist) failed: -10
 mac40:~ amk$
 mac40:~ amk$ port installed
 The following ports are currently installed:
   dbus @1.2.14_0 (active)
   expat @2.0.1_0 (active)
   pkgconfig @0.23_1 (active)

 mac40:~ amk$ cat /Library/LaunchAgents/org.freedesktop.dbus-session.plist
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
 "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
         <key>Label</key>
         <string>org.freedesktop.dbus-session</string>

         <key>ServiceIPC</key>
         <true/>

         <!-- bug in 10.4's launchd - on-demand loading does not work -->
         <key>OnDemand</key>
         <true />

         <key>Disabled</key>
         <true/>

         <key>ProgramArguments</key>
         <array>
                 <string>/opt/local/bin/dbus-daemon</string>
                 <string>--nofork</string>
                 <string>--session</string>
         </array>

         <key>Sockets</key>
         <dict>
                 <key>unix_domain_listener</key>
                 <dict>
                         <key>SecureSocketWithKey</key>
                         <string>DBUS_LAUNCHD_SESSION_BUS_SOCKET</string>
                 </dict>
         </dict>
 </dict>
 </plist>

 mac40:~ amk$ gdb /opt/local/bin/dbus-daemon
 GNU gdb 6.3.50-20050815 (Apple version gdb-966) (Tue Mar 10 02:43:13 UTC
 2009)
 Copyright 2004 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you
 are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type "show copying" to see the conditions.
 There is absolutely no warranty for GDB.  Type "show warranty" for
 details.
 This GDB was configured as "i386-apple-darwin"...Reading symbols for
 shared libraries .... done

 (gdb) r --nofork --session
 Starting program: /opt/local/bin/dbus-daemon --nofork --session
 Reading symbols for shared libraries +++. done

 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
 0x00030b9a in _dbus_server_new_for_launchd ()
 (gdb) where
 #0  0x00030b9a in _dbus_server_new_for_launchd ()
 #1  0x000319e5 in _dbus_server_listen_platform_specific ()
 #2  0x00030028 in dbus_server_listen ()
 #3  0x000052e5 in bus_context_new ()
 #4  0x0001681d in main ()
 (gdb)
 mac40:~ amk$ uname -a
 Darwin mac40.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01
 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386
 }}}

 All my googling ended up with users failing to run the daemons in correct
 order or as correct user, but I do not see what did I miss with the new
 install.
 An update above in this ticket contains /opt/local/bin/daemondo in the
 LaunchAgents
 file, but I relied on the file as delivered with the most recent port.

 I resolved my problem by installing fink. Not really preferred because
 most stable
 ports have older version, including gimp. But older versions working are
 generally
 better than recent failing, I am sorry I need to stay with fink for now.
 The process was
 also not straightforward, gnome-games missed dependency on gstreamer0.10
 -plugins-good
 and I had to apply patch from http://trac.macports.org/ticket/18955 to get
 libsdl compiled.
 http://www.finkproject.org/ seems down at the moment, would report there
 as well.

 Tried to reopen the issue as it is reproducible with recent versions of
 applicable items.
 Have no permission to change ticket fields, looks like I am a new user :-(

 I believe I had also clean config files, although cannot confirm this for
 sure.
 It is possible my first install broke something (created user messagebus,
 some python bindings were missing) and uninstall did not clean it up
 completely.
 Still I would expect the port at least to report a problem in this area
 during install.

-- 
Ticket URL: <http://trac.macports.org/ticket/19510#comment:40>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list