From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11835 Path: news.gmane.org!.POSTED!not-for-mail From: Pirmin Walthert Newsgroups: gmane.linux.lib.musl.general Subject: gethostbyname2.c / 6476b8135760659b25c93ff9308425ca98a9e777 breaking asterisk 13 compatibility Date: Thu, 24 Aug 2017 13:39:08 +0200 Message-ID: <1503574748.12219.16.camel@wwcom.ch> 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 1503574771 14540 195.159.176.226 (24 Aug 2017 11:39:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 Aug 2017 11:39:31 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-11848-gllmg-musl=m.gmane.org@lists.openwall.com Thu Aug 24 13:39:27 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 1dkqTq-0003Km-8G for gllmg-musl@m.gmane.org; Thu, 24 Aug 2017 13:39:22 +0200 Original-Received: (qmail 32156 invoked by uid 550); 24 Aug 2017 11:39:25 -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 32106 invoked from network); 24 Aug 2017 11:39:22 -0000 X-Virus-Scanned: by amavisd-new-2.10.1 (20141025) (Debian) at wwcom.ch X-Mailer: Evolution 3.24.4 Xref: news.gmane.org gmane.linux.lib.musl.general:11835 Archived-At: Hello 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). Second: I'm currently debugging a strange memory corruption problem and have just had a look at the gethostbyname2.c code: I was wondering: why is it safe to do free(h) on the initial run when *h has not been static struct hostent *h; size_t size = 63; struct hostent *res; int err; do { free(h); Best regards, Pirmin