[Pkg-systemd-maintainers] Bug#739071: Bug#739071: no core dumps and hard to diagnose

Antoine Beaupré anarcat at debian.org
Mon Feb 17 19:37:16 GMT 2014


On 2014-02-17 14:07:13, Michael Stapelberg wrote:
> Hi Antoine,
>
> Antoine Beaupré <anarcat at debian.org> writes:
>> I have tried to set a path for core dumps to make sure they are written:
>>
>>     sysctl kernel.core_pattern=/var/cache/core/%u-%e-%p-%s-%t.core
>>     mkdir /var/cache/core
>>     chmod 1777 /var/cache/core
>>
>> No effect: no core dump is created by tranmission.
> You need LimitCORE=infinity in your service file (which does the same as
> ulimit -c unlimited in sysv init scripts).

This was not very clear in the manpages I could find. All that
systemd.exec says is to refer to setrlimit(2) which is not very clear
that we can use the keyword "infinity". So maybe the bug is over
there. ;)

> With that setting, getting a core dump works fine on my machine,
> i.e. after installing transmission-daemon 2.81-1 and dropping the
> following file in
> /etc/systemd/system/transmission-daemon.service.d/fixes.conf:
>
> [Service]
> LimitCORE=infinity
> User=debian-transmission
>
> I get a core dump after running systemctl daemon-reload && systemctl
> restart transmission-daemon.service.
>
> Can you confirm that it works for you? Then I’ll close the bug.

I'll do my best to reproduce, thanks for the support!

A.

-- 
Ou bien Dieu voudrait supprimer le mal, mais il ne le peut pas
Ou bien Dieu pourrait supprimer le mal, mais il ne le veut pas.
                        - Sébastien Faure
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140217/3890d32c/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list