Closed g4jc closed 2 years ago
I'm not sure how to fix this either, or what the problem is. If you ever figure it out, I'll review the patch.
this patch is also need for alpine linux but i dont tested cos i still make builds test with courier-mta
Use -Wl,-z,stack-size=1024768
to increase thread stack size to 1MiB.
If someone gets around to submitting a concrete patch or a PR, I'll review it.
I've been trying to get Cone working on my Gentoo-musl system, but there are a number of issues. I currently have the following patches in my local tree and I got it compiled and linking, but then it crashes.
To get it compiling:
Fix
adwt
andwaitpid
undefined:Hardcode
-ltinfo
as Gentoo ships terminal info in a separate binary than ncurses (better would be to check for this usingAC_SEARCH_LIBS([keypad],[tinfow])
or similar, but I couldn't figure out how to this smoothly using the existing autoconf config):I also attempted to fix the build without libidn, but gave up and installed the dependency after seeing a bunch of linker errors to
idna_to_unicode_8z8z
and friends inlibs/tcpd/libcouriertls.c
.Once I got it compiled, it crashes immediately upon execution:
This appears to be stack corruption:
Possibly caused by the fact default stack size for musl-libc is 128kb, however I'm unsure how to fix that.