Re: Core dump of crashing service program

2022-08-14 Thread Liviu Nicoara
I am replying to this after the fact to clarify things. On Tue, Aug 9, 2022 at 12:16 PM Laurent Bercot wrote: > In order to change this default, you need to modify stage 1. This > is dangerous, so pay attention to typos. > After running s6-linux-init-maker and installing the result, edit > y

Re: Core dump of crashing service program

2022-08-13 Thread Jeff
> In order to change this default, you need to modify stage 1. after that all child processes will use these settings as default. > After that, if your services still cannot create coredumps, then it > means the kernel sets the hard limit at 0, and that will be more > difficult to work around. (

Re: Core dump of crashing service program

2022-08-09 Thread Guillermo
> * https://wiki.artixlinux.org/Main/LocalUserServicesOns6 More specifically, this: * https://wiki.artixlinux.org/Main/LocalUserServicesOns6#Complete_s6_supervision_.28optional.29

Re: Core dump of crashing service program

2022-08-09 Thread Guillermo
El mar, 9 ago 2022 a las 9:27, Liviu Nicoara escribió: > >> Your earlier posts do not mention s6-rc, though, only s6, so I'm not >> sure if the system that you are dealing with is using it. > > Yep, s6 and s6-rc (artix w/ s6). Will do my own homework. Oh, Artix. They have official support for s6 +

Re: Core dump of crashing service program

2022-08-09 Thread Liviu Nicoara
On Tue, Aug 9, 2022 at 12:16 PM Laurent Bercot wrote: > > >... Yes, > >my system uses s6-linux-init and I am using s6-rc as a service manager. > >... > With s6-l-i, since the supervision tree is started very early, and > s6-svscan is pid 1, all the services are started with the default > re

Re: Core dump of crashing service program

2022-08-09 Thread Laurent Bercot
I converted all my arch boxes to artix a while ago, and I opted for s6 after reading the "why another supervision suite" page. All is peachy and I never used a display manager (starting my graphical window manager from the console) until I decided to start using ly, which has no s6 support. Yes

Re: Core dump of crashing service program

2022-08-09 Thread Alexis
Liviu Nicoara writes: It's actually pretty cool. It is a oneshot service that runs all sysctl settings in /etc/sysctl.d. System is artix. Ah okay. i'm on Gentoo, using OpenRC (but still hoping to move to using s6 eventually, as i used to do on Void, once i find enough tuits ...), and the

Re: Core dump of crashing service program

2022-08-09 Thread Liviu Nicoara
On Tue, Aug 9, 2022 at 4:51 AM Laurent Bercot wrote: > > > > Well, to answer your questions, we'd have to know more details about > your setup and what exactly you are doing. > > Are you using a distribution? Which one? How are you launching the > s6 supervision tree: is it the first thing wh

Re: Core dump of crashing service program

2022-08-09 Thread Liviu Nicoara
On Mon, Aug 8, 2022 at 10:51 PM Guillermo wrote: > G:El lun, 8 ago 2022 a las 16:23, Liviu Nicoara escribió: > > > > You bundle the s6-rc atomic services.that you want up when you enter > (an equivalent of) runlevel 5. If when you say "runlevel 5" you are > thinking of Debian or something like it

Re: Core dump of crashing service program

2022-08-09 Thread Liviu Nicoara
On Mon, Aug 8, 2022 at 8:09 PM Alexis wrote: > > Liviu Nicoara writes: > > > ... > > i'm not sure why there's a sysctl service on your system, but > initial kernel parameters such as kernel.core_pattern should be > able to be set via the sysctl.conf file, as well as (at least for > Linux kernels

Re: Core dump of crashing service program

2022-08-09 Thread Laurent Bercot
I continue to be confused about how to enable the core ulimit upon boot, before s6-svscan starts. AFAICT, the sysctl service (which starts after s6-svscan) can configure only one parameter, core_pattern, with which I can only set a location. That is good but not enough. The needed ulimit invoca

Re: Core dump of crashing service program

2022-08-08 Thread Guillermo
G:El lun, 8 ago 2022 a las 16:23, Liviu Nicoara escribió: > > I know next to zero about runlevels and the > initialization orchestra. What is the correct way to get s6 to give me > something that looks like runlevel 5 (a graphical display manager)? From my > reading, is via bundles and I get the co

Re: Core dump of crashing service program

2022-08-08 Thread Alexis
Liviu Nicoara writes: AFAICT, the sysctl service (which starts after s6-svscan) can configure only one parameter, core_pattern, with which I can only set a location. That is good but not enough. The needed ulimit invocation wherever I put it comes in later by which time s6-svscan is alrea

Re: Core dump of crashing service program

2022-08-08 Thread Liviu Nicoara
> > - By default, s6 services are started with their cwd set in the > service directory. Check there, you may have a coredump. > I managed to figure that one out. No dumps there. But ... > > - Depending on how and when you start the supervision tree, the run > scripts may not be inheriting th

Re: Core dump of crashing service program

2022-08-08 Thread Laurent Bercot
Hi, I am working on a service and a part of this work is investigating a crash that occurs only when the service program is launched via exec from the service run script. My initial thought was to inspect the coredump but none is created although I have verified that both my user and root can crea