From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11842 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 18:24:35 +0200 Message-ID: <1503591875.12219.37.camel@wwcom.ch> References: <1503574748.12219.16.camel@wwcom.ch> <20170824161710.GW1627@brightrain.aerifal.cx> 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 1503591894 21294 195.159.176.226 (24 Aug 2017 16:24:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2017 16:24:54 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-11855-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 24 18:24:50 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 1dkuw0-00051O-6V for gllmg-musl@m.gmane.org; Thu, 24 Aug 2017 18:24:44 +0200 Original-Received: (qmail 11792 invoked by uid 550); 24 Aug 2017 16:24:49 -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 11762 invoked from network); 24 Aug 2017 16:24:48 -0000 X-Virus-Scanned: by amavisd-new-2.10.1 (20141025) (Debian) at wwcom.ch In-Reply-To: <20170824161710.GW1627@brightrain.aerifal.cx> X-Mailer: Evolution 3.24.4 Xref: news.gmane.org gmane.linux.lib.musl.general:11842 Archived-At: Hi Rich I think I've found a problem in the way Asterisk is using pjsip today (or in pjproject itself: I'm not sure whether the function in question just shouldn't be used from several threads at the same time or whether they accidentialy didn't make it threadsafe): There is a possibility that several threads could use the same pjproject function at the same time which uses gethostbyname... This can cause memory corruptions in lots of different ways. As the startup issues I had were as well crashes while allocation memory it's not impossible that the fix I've made for pjsip will solve this problem as well... Will let you know. Best regards, Pirmin Am Donnerstag, den 24.08.2017, 12:17 -0400 schrieb Rich Felker: > On Thu, Aug 24, 2017 at 01:39:08PM +0200, Pirmin Walthert wrote: > > Hello > > > > First thing: http://git.musl-libc.org/cgit/musl/commit/?id=6476b813 > > 5760 > > 659b25c93ff9308425ca98a9e777 seems to break Asterisk compatibilty. > > This commit should not affect code that didn't error-out from missing > symbols before. Is it possible you have a module Asterisk is trying > to > load, which it previously silently (or with a warning you didn't > notice) failed to load, but which now loads and tries to run despite > having unresolved symbols? One thing you could try is changing all > dlopen calls in Asterisk from RTLD_LAZY to RTLD_NOW and see if the > problem goes away. If so that doesn't necessarily mean Asterisk is > broken; it could be a bug in lazy binding on musl's side. But it will > help narrow down the cause. > > Rich