Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: SIGSEGV for programs attempting to write files they don't have access to



Greg Troxel wrote:
Staffan Thomén<duck%shangtai.net@localhost>  writes:

Still, both bacula and apache crashed every time after upgrading which
clearly wouldn't have my stupid mistakes.

Recompiling bacula-clientonly and apache24 on 9.0 fixed the crashing.

This seems like it is working around a bug, which is of course an
entirely sensible thing for you to do.

If you have pkgsrc bits from 8, and upgrade to 9, they should still
work.  However, once you rebuild any package, you are no longer in a
sound situation.

Did the crashes happen with 100% built-on-8 packages?


Yes. Both programs repeatedly crashed, even across (domU) reboots.

bacula-fd would crash with a memory fault when run with the -g flag ("set group" which is what the default rc.d file does) and apache's workers would crash on startup. I couldn't easily disable the uid/gid setting of apache to test that it also crashed when trying to run set(e)uid/set(e)gid.

Bacula:

Feb 15 21:53:48 www bacula-fd: Bacula interrupted by signal 11: Segmentation violation

Apache:

[Sat Feb 15 23:16:43.950617 2020] [mpm_event:notice] [pid 603:tid 140187597150208] AH00489: Apache/2.4.41 (Unix) OpenSSL/1.0.2k mod_fcgid/2.3.9 configured -- resuming normal operations [Sat Feb 15 23:16:43.950706 2020] [core:notice] [pid 603:tid 140187597150208] AH00094: Command line: '/usr/pkg/sbin/httpd' [Sat Feb 15 23:16:44.960157 2020] [core:notice] [pid 603:tid 140187597150208] AH00052: child pid 1029 exit signal Segmentation fault (11) [Sat Feb 15 23:16:44.960429 2020] [core:notice] [pid 603:tid 140187597150208] AH00052: child pid 232 exit signal Segmentation fault (11) [Sat Feb 15 23:16:44.960608 2020] [core:notice] [pid 603:tid 140187597150208] AH00052: child pid 963 exit signal Segmentation fault (11) [Sat Feb 15 23:16:44.960785 2020] [core:notice] [pid 603:tid 140187597150208] AH00052: child pid 1134 exit signal Segmentation fault (11) [Sat Feb 15 23:16:44.960885 2020] [cgid:error] [pid 603:tid 140187597150208] AH01239: cgid daemon process died, restarting [Sat Feb 15 23:16:44.961899 2020] [core:notice] [pid 603:tid 140187597150208] AH00052: child pid 811 exit signal Segmentation fault (11) [Sat Feb 15 23:16:44.961965 2020] [fcgid:error] [pid 603:tid 140187597150208] mod_fcgid: fcgid process manager died, restarting the server [Sat Feb 15 23:16:44.962143 2020] [mpm_event:notice] [pid 603:tid 140187597150208] AH00494: SIGHUP received. Attempting to restart

(loop)

Both were installed via pkgin from http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/8.1/All.

I could probably get a ktrace if that helps.

Staffan


Home | Main Index | Thread Index | Old Index