From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11840 Path: news.gmane.org!.POSTED!not-for-mail From: Pirmin Walthert Newsgroups: gmane.linux.lib.musl.general Subject: Re: gethostbyname2.c / 6476b8135760659b25c93ff9308425ca98a9e777 breaking asterisk 13 compatibility Date: Thu, 24 Aug 2017 15:09:47 +0200 Message-ID: <1503580187.12219.25.camel@wwcom.ch> References: <1503574748.12219.16.camel@wwcom.ch> <20170824155827.0606f740@vostro.util.wtbts.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1503580205 13466 195.159.176.226 (24 Aug 2017 13:10:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2017 13:10:05 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-11853-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 24 15:09:58 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1dkrtV-00039H-2w for gllmg-musl@m.gmane.org; Thu, 24 Aug 2017 15:09:57 +0200 Original-Received: (qmail 7617 invoked by uid 550); 24 Aug 2017 13:10:01 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 7599 invoked from network); 24 Aug 2017 13:10:01 -0000 X-Virus-Scanned: by amavisd-new-2.10.1 (20141025) (Debian) at wwcom.ch In-Reply-To: <20170824155827.0606f740@vostro.util.wtbts.net> X-Mailer: Evolution 3.24.4 Xref: news.gmane.org gmane.linux.lib.musl.general:11840 Archived-At: Hi Timo Thanks, we use Asterisk 13 since months on about 100 VM's with musl, we have only one strange issue that leads to a crashes from time to time, especially when using PickupChan. Somehow I couldn't reproduce the crash when using only hostnames in FROM headers that I'd put into /etc/hosts (but as it is hard to reproduce anyway it's not sure whether this is really the reason). However I've seen that some pjsip functions used in the multihomed module (in asterisk 13 at least) are using gethostbyname (not gethostbyname_r). I'm waiting for feedback from the asterisk team whether it's possible that several threads are using the multihomed code at the same time. Asterisk 14 has some changes in the resolver, so maybe that's the reason why Asterisk 14 isn't affected. Best regards, Pirmin Am Donnerstag, den 24.08.2017, 15:58 +0300 schrieb Timo Teras: > On Thu, 24 Aug 2017 13:39:08 +0200 > Pirmin Walthert wrote: > > > First thing: > > http://git.musl-libc.org/cgit/musl/commit/?id=6476b8135760 > > 659b25c93ff9308425ca98a9e777 seems to break Asterisk compatibilty. > > Asterisk crashes on every startup while loading modules. Using > > musl-git combined with the latest dynlink.c version before this > > commit works fine. (1.1.16 has some startup crashes as well because > > of the bug fixed with 27b3fd68f67b674440d21ea7ca5cf918d2e1559f). > > I am using asterisk 14 just fine on Alpine linux with current musl > git > master. We needed few patches though. Maybe those help you too: > https://git.alpinelinux.org/cgit/aports/tree/main/asterisk > > Though, some issues might be relevant to specific modules. > > Timo