Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-130

qdrouterd with --daemon and --user options does not dump core.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.4
    • Container
    • None

    Description

      If qdroutered is started with --daemon and --user options, and then is killed with SIGABRT or crashes, it does not produce a core file. Note both --daemon and --user are reqiured to produce the problem, either alone does not. Tested on RHEL6 and Fedora 21 as follows:

      Send core files in /tmp, since --daemon will set current directory to /

      # echo /tmp/core.%e.%p > /proc/sys/kernel/core_pattern
      

      Verify we do get a core file with just --daemon

      # qdrouterd --daemon
      # pkill -e -6 qdrouterd
      qdrouterd killed (pid 11482)
      # ls /tmp/core*
      /tmp/core.qdrouterd.11482
      

      Now add --user

      # rm /tmp/core*
      # qdrouterd --daemon --user aconway
      # pkill -e -6 qdrouterd
      qdrouterd killed (pid 11432)
      # ls /tmp/core*
      ls: cannot access /tmp/core*: No such file or directory
      

      Attachments

        1. qdrouterd
          2 kB
          Alan Conway

        Activity

          People

            aconway Alan Conway
            aconway Alan Conway
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: