<div dir='auto'><div>Hi,</div><div dir="auto">the problem is difficult.</div><div dir="auto">Squid starts, shows a segmentation fault and continues working normally.</div><div dir="auto">Squid forks a worker child and probably this child works, but the parent process dies with segmentation fault. There is no sign of this segmention fault in the cache log.</div><div dir="auto">Only this failure (permission denied) of setresuid (setresuid(-1,0,-1) in tools.cc).</div><div dir="auto">The segmentation fault occurs even when calling squid -k parse. </div><div dir="auto"><br></div><div dir="auto">Should i try to produce a coredump of a squid -k parse run?</div><div dir="auto"><br></div><div dir="auto">I'm no freebsd guy. Maybe the problem lies in a different implementation of setresuid in freebsd (compared to Linux).</div><div dir="auto"><br><div dir="auto">Thanks for trying to help me</div><div dir="auto"><br></div><div dir="auto"><br><div class="elided-text" dir="auto">Am 23.07.2024 09:03 schrieb Francesco Chemolli <gkinkie@gmail.com>:<br type="attribution"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi Anton,<br>
no, segmentation fault shouldn't happen at any time.<br>
Could you try to follow the instructions at<br>
https://wiki.squid-cache.org/SquidFaq/BugReporting#crashes-and-core-dumps<br>
?<br>
What are the last lines in the cache.log when the segmentation fault happens?<br>
Thanks</p>
<p dir="ltr">On Tue, Jul 23, 2024 at 3:12 AM Anton Kornexl <anton.kornexl@miex.cc> wrote:<br>
><br>
> Hello,<br>
><br>
> I have tested the two installations further<br>
><br>
> Opnsense 23.x with squid 6.6 on freebsd 13.2-Release-p9 produces the<br>
> same segmentation fault, but it does not popup as red window in the<br>
> dashboard.<br>
><br>
> I have set "debug_options ALL,5" in squid.conf:<br>
><br>
> I have found the following lines in cache.log (grep _suid cache.log)<br>
><br>
> 2024/07/22 17:26:52.186 kid1| 21,3| tools.cc(625) enter_suid:<br>
> enter_suid: PID 29145 taking root privileges<br>
> 2024/07/22 17:26:52.186 kid1| 21,31 tools.cc(629) enter_suid:<br>
> enter_suid: setresuid failed: (1) Operation not permitted<br>
> 2024/07/22 17:26:52.186 kid1| 21,3| tools.cc(561) leave suid: leave<br>
> suid: PID 29145 called<br>
> 2024/07/22 17:26:52.187 kid1| 21,31 tools.cc(625) enter_suid:<br>
> enter_suid: PID 29145 taking root privileges<br>
> 2024/07/22 17:26:52.187 kid1| 21,3| tools.cc(629) enter_suid:<br>
> enter_suid: setresuid failed: (1) Operation not permitted<br>
> 2024/07/22 17:26:52.187 kid1| 21,31 tools.cc(561) leave_suid: leave<br>
> suid: PID 29145 called<br>
> 2024/07/22 17:26:52.187 kid1| 21,31 tools.cc(625) enter_suid:<br>
> enter_suid: PID 29145 taking root privileges<br>
> 2024/07/22 17:26:52.187 kid1l 21,31 tools.cc(629) enter_suid:<br>
> enter_suid: setresuid failed: (1) Operation not permitted<br>
> 2024/07/22 17:26:52.187 kid1| 21,31 tools.cc(561) leave_suid: leave<br>
> suid: PID 29145 called<br>
> 2024/07/22 17:26:52.187 kid1l 21,31 tools.cc(561) leave_suid:<br>
> leave_suid: PID 29648 called<br>
> 2024/07/22 17:26:52.187 kid1l 21,31 tools.cc(651) no_suid: no_suid: PID<br>
> 29648 giving up root privileges forever<br>
><br>
> maybe this is the cause of the "segmentation fault".<br>
><br>
> The difference between the installations 23.x and 24.x is the alerting<br>
> of this segmentaion fault in the dashboard of opnsense.<br>
><br>
> But what ist the cause of this "Operation not permitted"<br>
><br>
> yours<br>
><br>
> Anton Kornexl<br>
><br>
> Am 22.07.2024 um 11:03 schrieb Anton Kornexl:<br>
> > Hello<br>
> ><br>
> > i try to use squid (6.10) with opnsense 24.x on freebsd<br>
> > 13-2-Release-p11.<br>
> ><br>
> > It produces a "segmentation fault" at start and restart but the<br>
> > process runs.<br>
> ><br>
> > The "segmentation fault" occurs even with squid -k parse.<br>
> ><br>
> > A "service squid reload" runs OK, but a "service squid restart"<br>
> > produces this Segmentation fault.<br>
> ><br>
> > The problem did not exist with opnsense 23.x and an older squid.<br>
> ><br>
> > How can I debug this error probably in the parse part?<br>
> ><br>
> > yours<br>
> ><br>
> > Anton Kornexl<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > squid-users mailing list<br>
> > squid-users@lists.squid-cache.org<br>
> > https://lists.squid-cache.org/listinfo/squid-users<br>
><br>
> _______________________________________________<br>
> squid-users mailing list<br>
> squid-users@lists.squid-cache.org<br>
> https://lists.squid-cache.org/listinfo/squid-users<br><br></p>
<p dir="ltr">-- <br>
Francesco<br>
_______________________________________________<br>
squid-users mailing list<br>
squid-users@lists.squid-cache.org<br>
https://lists.squid-cache.org/listinfo/squid-users<br>
</p>
</blockquote></div><br></div></div></div>