[
https://issues.apache.org/jira/browse/DISPATCH-130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390988#comment-14390988
]
Ken Giusti edited comment on DISPATCH-130 at 4/1/15 5:05 PM:
-------------------------------------------------------------
I've been able to get dumping of setuid processes (qdrouterd -d --user qpidd
specifically) on my RHEL 6 and RHEL 7 boxes.
I added the following to /etc/sysctl.conf:
fs.suid_dumpable = 2
and to /etc/security/limits.conf:
* soft core unlimited
(that's an asterisk as the first character above - for some reason that forces
a bullet format!)
then
cat "/tmp/core.%e.%p" > /proc/sys/kernel/core_pattern
I was able to use kill -6 to cause qdrouterd to dump core into the /tmp
directory.
was (Author: kgiusti):
I've been able to get dumping of setuid processes (qdrouterd -d --user qpidd
specifically) on my RHEL 6 and RHEL 7 boxes.
I added the following to /etc/sysctl.conf:
fs.suid_dumpable = 2
and to /etc/security/limits.conf:
* soft core unlimited
then
cat "/tmp/core.%e.%p" > /proc/sys/kernel/core_pattern
I was able to use kill -6 to cause qdrouterd to dump core into the /tmp
directory.
> qdrouterd with --daemon and --user options does not dump core.
> --------------------------------------------------------------
>
> Key: DISPATCH-130
> URL: https://issues.apache.org/jira/browse/DISPATCH-130
> Project: Qpid Dispatch
> Issue Type: Bug
> Components: Container
> Affects Versions: 0.3
> Reporter: Alan Conway
> Assignee: Ken Giusti
> Fix For: 0.4
>
>
> 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 /
> {noformat}
> # echo /tmp/core.%e.%p > /proc/sys/kernel/core_pattern
> {noformat}
> Verify we do get a core file with just --daemon
> {noformat}
> # qdrouterd --daemon
> # pkill -e -6 qdrouterd
> qdrouterd killed (pid 11482)
> # ls /tmp/core*
> /tmp/core.qdrouterd.11482
> {noformat}
> Now add --user
> {noformat}
> # 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
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]