[Bug 1034776] Re: /sbin/start hung in __GI___poll

James Hunt 1034776 at bugs.launchpad.net
Thu Aug 9 13:24:58 UTC 2012


This is not an upstart bug, but a configuration issue: your oident.conf
is invalid since:

1) OIDENT_OPTIONS is guaranteed to always be unset since you cannot
source options in a pre-start and have them apply to the script stanza
since each stanza is run as a separate process.

2) Since OIDENT_OPTIONS is unset and since you have specified 'expect
fork', Upstart will follow the PID of the first call to 'logger' in your
script stanza.

Also, your 'start on' condition might be too permissive since Upstart
will attempt to run the job when every net device comes up - is that
what you want? Finally, when developing a new job, don't use respawn:
make sure the job works correctly before introducing it.

Please read the following sections of the Upstart Cookbook:

- http://upstart.ubuntu.com/cookbook/#expect
- http://upstart.ubuntu.com/cookbook/#using-expect-with-script-sections
- http://upstart.ubuntu.com/cookbook/#precepts-for-creating-a-job-configuration-file



** Changed in: upstart (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/1034776

Title:
  /sbin/start hung in  __GI___poll

Status in “upstart” package in Ubuntu:
  Invalid

Bug description:
  I'm converting the oidentd sysv-init script to an upstart job. Whilst
  testing it I've been experiencing a hang when trying to start or stop
  the job, but only after I've started and stopped the job successfully
  several times already.

  The issue seems to involve DBus - I see
  _dbus_connection_block_pending_call() in the stack back-trace.

  (gdb) bt full
  #0  0x00007f4235fe3ac8 in __GI___poll (fds=0x7fff21c7c160, nfds=1, timeout=<optimised out>)
      at ../sysdeps/unix/sysv/linux/poll.c:83
          resultvar = 18446744073709551100
          oldtype = <optimised out>
          result = <optimised out>
  #1  0x00007f42362ddde0 in socket_do_iteration (transport=0x7f4236e48d20, flags=6, timeout_milliseconds=<optimised out>)
      at ../../dbus/dbus-transport-socket.c:1125
          socket_transport = 0x7f4236e48d20
          poll_fd = {fd = 3, events = 1, revents = 0}
          poll_res = <optimised out>
          poll_timeout = <optimised out>
  #2  0x00007f42362dcccd in _dbus_transport_do_iteration (transport=0x7f4236e48d20, flags=<optimised out>, 
      timeout_milliseconds=<optimised out>) at ../../dbus/dbus-transport.c:974
  No locals.
  #3  0x00007f42362c7c05 in _dbus_connection_do_iteration_unlocked (connection=0x7f4236e49380, pending=<optimised out>, flags=6, 
      timeout_milliseconds=-1) at ../../dbus/dbus-connection.c:1215
  No locals.
  #4  0x00007f42362c90ac in _dbus_connection_block_pending_call (pending=0x7f4236e499a0) at ../../dbus/dbus-connection.c:2471
          start_tv_sec = 1561
          start_tv_usec = 549439
          tv_sec = 1561
          tv_usec = 549597
          status = DBUS_DISPATCH_DATA_REMAINS
          connection = 0x7f4236e49380
          client_serial = 2
          timeout = 0x0
          timeout_milliseconds = -1
          elapsed_milliseconds = <optimised out>
  #5  0x00007f4236b4cd1e in ?? ()
  No symbol table info available.
  #6  0x00007f4236716717 in ?? () from /lib/x86_64-linux-gnu/libnih.so.1
  No symbol table info available.
  #7  0x00007f4236716b83 in nih_command_parser () from /lib/x86_64-linux-gnu/libnih.so.1
  No symbol table info available.
  #8  0x00007f4236b49699 in main ()
  No symbol table info available.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1034776/+subscriptions




More information about the foundations-bugs mailing list