Re: Apache httpd 2.4.49 port will not launch on ElCap

2021-10-17 Thread Bill Cole

On 2021-09-24 at 16:53:21 UTC-0400 (Fri, 24 Sep 2021 16:53:21 -0400)
Bill Cole 
is rumored to have said:


On 2021-09-22 at 16:47:41 UTC-0400 (Wed, 22 Sep 2021 22:47:41 +0200)
Bjarne D Mathiesen 
is rumored to have said:


Bill Cole wrote:
I'm wondering if anyone else has encountered this and if anyone has 
a sense of whether this is really a MacPorts-specific problem or if 
it is (as I suspect but have not been able to confirm) a problem 
with httpd.


I'm running apache 2.4.49 on
* 10.6.8
* 10.15.7
without any issues


That brackets the problem a bit.

Given the odd failure ("crashed on child side of fork pre-exec" with a 
segfault) I suspect it is something specific to the platform, e.g. 
compiler version, shared library versions, etc. and I'm experimenting 
with rebuilding it in different ways to  see if I can find a way to 
make it work.


Currently running with '-X' as a workaround (doesn't fork...)


Closing the loop here:

Rebuilding httpd and everything it recursively depends on with clang-10 
on the target system didn't touch the problem. Reverting to .48 didn't 
touch the problem(!) Limping along and waiting for the .51 update 
resolved the problem. I did not test .50, which lasted just a few days. 
I'm not up to analyzing all the flux in the httpd code between those 
versions, but there are enough core and mpm fixes that I'm satisfied 
with vague handwaving about something jostling an optimization in the 
wrong/right place and for 2 minor versions breaking it on one obsolete 
platform.



--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire


Re: Apache httpd 2.4.49 port will not launch on ElCap

2021-09-24 Thread Bill Cole

On 2021-09-22 at 16:47:41 UTC-0400 (Wed, 22 Sep 2021 22:47:41 +0200)
Bjarne D Mathiesen 
is rumored to have said:


Bill Cole wrote:
I'm wondering if anyone else has encountered this and if anyone has a 
sense of whether this is really a MacPorts-specific problem or if it 
is (as I suspect but have not been able to confirm) a problem with 
httpd.


I'm running apache 2.4.49 on
* 10.6.8
* 10.15.7
without any issues


That brackets the problem a bit.

Given the odd failure ("crashed on child side of fork pre-exec" with a 
segfault) I suspect it is something specific to the platform, e.g. 
compiler version, shared library versions, etc. and I'm experimenting 
with rebuilding it in different ways to  see if I can find a way to make 
it work.


Currently running with '-X' as a workaround (doesn't fork...)

--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire


Re: Apache httpd 2.4.49 port will not launch on ElCap

2021-09-22 Thread Bjarne D Mathiesen
Bill Cole wrote:
> I'm wondering if anyone else has encountered this and if anyone has a sense 
> of whether this is really a MacPorts-specific problem or if it is (as I 
> suspect but have not been able to confirm) a problem with httpd.

I'm running apache 2.4.49 on
* 10.6.8
* 10.15.7
without any issues

-- 
Bjarne D Mathiesen
Korsør ; Danmark ; Europa
---
denne besked er skrevet i et totalt M$-frit miljø
MacPro 2010 ; OpenCore + macOS 10.15.7 Catalina
2 x 3,46 GHz 6-Core Intel Xeon ; 256 GB 1333 MHz DDR3 ECC RDIMM
ATI Radeon RX 590 8 GB


Apache httpd 2.4.49 port will not launch on ElCap

2021-09-21 Thread Bill Cole
I've used the prebuilt binary and done a source build myself, it just won't 
launch.

A few startup messages are in the ErrorLog, but they don't note any reason for 
the crash.

The OS does manage to save crash reports when I try to start, all looking 
similar to the one below.

Googling about various specifics from the crash report (e.g. 
https://stackoverflow.com/questions/55286016/python-is-crashing-due-to-libdispatch-crashing-child-thread)
 makes me suspect that this has something to do with how httpd initializes 
itself. Telling bit is the "crashed on child side of fork pre-exec"

I'm wondering if anyone else has encountered this and if anyone has a sense of 
whether this is really a MacPorts-specific problem or if it is (as I suspect 
but have not been able to confirm) a problem with httpd.


Contents of crash report 
(/Library/Logs/DiagnosticReports/httpd_2021-09-21-122643_shiny.crash):

Process:   httpd [2068]
Path:  /opt/local/sbin/httpd
Identifier:httpd
Version:   0
Code Type: X86-64 (Native)
Parent Process:launchd [1]
Responsible:   httpd [2068]
User ID:   0

Date/Time: 2021-09-21 12:26:37.866 -0400
OS Version:Mac OS X 10.11.6 (15G22010)
Report Version:11
Anonymous UUID:DBCB60BF-452B-41AE-45BC-977D8F360144


Time Awake Since Boot: 3400 seconds

System Integrity Protection: enabled

Crashed Thread:0  Dispatch queue: com.apple.main-thread

Exception Type:EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:   KERN_INVALID_ADDRESS at 0x0110
Exception Note:EXC_CORPSE_NOTIFY

VM Regions Near 0x110:
-->
__TEXT 00010c8a1000-00010c8f6000 [  340K] r-x/rwx 
SM=COW  /opt/local/sbin/httpd

Application Specific Information:
crashed on child side of fork pre-exec

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libdispatch.dylib   0x7fff85630661 
_dispatch_queue_push_queue + 345
1   libdispatch.dylib   0x7fff8562eb06 
_dispatch_queue_wakeup_with_qos_slow + 126
2   libcorecrypto.dylib 0x7fff8a355ddc 
ccrng_CommonCrypto_generate + 309
3   libcommonCrypto.dylib   0x7fff8ea8648f 
CCRandomGenerateBytes + 28
4   libcrypto.1.1.dylib 0x00010f1f2efb 
rand_pool_acquire_entropy + 69
5   libcrypto.1.1.dylib 0x00010f1f204f 
rand_drbg_get_entropy + 364
6   libcrypto.1.1.dylib 0x00010f1f1296 RAND_DRBG_reseed + 
212
7   libcrypto.1.1.dylib 0x00010f1f16f3 RAND_DRBG_generate + 
407
8   libcrypto.1.1.dylib 0x00010f1f1fd5 
rand_drbg_get_entropy + 242
9   libcrypto.1.1.dylib 0x00010f1f1296 RAND_DRBG_reseed + 
212
10  libcrypto.1.1.dylib 0x00010f1f16f3 RAND_DRBG_generate + 
407
11  libcrypto.1.1.dylib 0x00010f1f1819 RAND_DRBG_bytes + 139
12  libssl.1.1.dylib0x00010f0878e1 SSL_CTX_new + 614
13  mod_ssl.so  0x00010f03aca2 ssl_init_ctx + 344
14  mod_ssl.so  0x00010f03a194 ssl_init_proxy_ctx + 
85
15  mod_ssl.so  0x00010f039e66 
ssl_init_ConfigureServer + 3896
16  mod_ssl.so  0x00010f038a03 ssl_init_Module + 802
17  httpd   0x00010c8a4521 ap_run_post_config + 
69
18  httpd   0x00010c8abb68 main + 2112
19  libdyld.dylib   0x7fff92f3f5ad start + 1

[remainder elided, including details of loaded dylibs and memory zone status]


-- 
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire