From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13911 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Kemper Newsgroups: gmane.linux.lib.musl.general Subject: Re: Asterisk 16 segmentation fault Date: Sat, 2 Mar 2019 18:16:42 +0100 Message-ID: <20190302171641.GA1760@darth.lan> References: <20190228202751.GB31965@darth.lan> <20190228211901.GJ21289@port70.net> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="255584"; mail-complaints-to="usenet@blaine.gmane.org" To: musl@lists.openwall.com Original-X-From: musl-return-13927-gllmg-musl=m.gmane.org@lists.openwall.com Sat Mar 02 18:16:58 2019 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.89) (envelope-from ) id 1h08Fu-0014PT-L7 for gllmg-musl@m.gmane.org; Sat, 02 Mar 2019 18:16:58 +0100 Original-Received: (qmail 17570 invoked by uid 550); 2 Mar 2019 17:16:56 -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 17552 invoked from network); 2 Mar 2019 17:16:55 -0000 Content-Disposition: inline In-Reply-To: <20190228211901.GJ21289@port70.net> X-Provags-ID: V03:K1:+hWOF3W9i/bLv+KgCnRHLD6jAV0NZKBhIaFJ2sG+8LFc0Ph+4BI +6p9qdtSaRknzJ0T4R/Xr9b8jRs0k9LH4Xobb/FVaDpw+5j7fgS4sDCV0saL4exjM4MKzsb x5omhGDmY9ZKcj6Y9Dhl7CjwPCXf//wVD4p6n1YzfDTrLnw+dnebTXEFApUSTrFnHi8+6lx tkl2N2ZvX1Qjgu/M8uacg== X-UI-Out-Filterresults: notjunk:1;V03:K0:B1OQZMtZtBs=:ME6/2Vt+CgX7ZG43PvcDtT QDL/KKtb6pPkTKcr5pqGA10ueMt5dLHaW6JJhbsdmwJB0FnJsX2zn9agYTl/ZtR5riWbB2Lwq kWk9Yrfq9TSPA07JIsQfzNUbZnefLNyMUdnzfRcWAGrnwkCgHnDUyc2PjlbXIoAl9D+pGauBV avuYeuywqe3YaOEFD42860xGPHZhQmjxh+37sCxznWEnI3Qn0Ay4MjXbUILYx0IQ77XAhlnc9 TrZf+Ho0BMfvdfhiRgvHvE25qUqkAVDOA1UP0Q38bdvAjUTg75SbeCVH6eXjh+ob4sKKOvXaU NGkjv99UfrPww0ajz4+mNbGwiSC7qezzfDUouHiavaalJ0n/lCQFi6c6503YiMfpIccvX5z5w LdTIdWjeQMjICaaMoLb9x1P6EJ29ac6PX6EERWISAuGPSIq5DBur/gB3k0tmGeouhENuX3aAh n113cjr96l3HkBPHbT/UuUDcFJJ1kcXZK1Soq34hsyJzS2mokVFiiIp72LRZbS1mqPq4Z/Ded MWmJULSZArdEd/2osjlfnQKvWW4XDSeMoTA1Hsd3n9HsaLOPEBBsQ6EDWbCXNZEMrnfzmcQ7+ /Y4kKjBFKBWGp4fj2UZ5Nz5NWzXT+2J2qS37sINx7S8pJMhCP/nOLsVRhLHWWFtrv7QtDu8wA vzzMJ7cCjrMK/y+lsSDidbmhVf0NTGSMKZkT9zrhrZWytqc5N5uZFgozWOM2+z/j/cP8U+k/L ss1cTm7iJ4CGOCKjjuo6t7x5AL9Ew0BV70xsVo9GpxdfOPayBK/RUrYZRAEQRZ6a9aEbMnYS Xref: news.gmane.org gmane.linux.lib.musl.general:13911 Archived-At: On Thu, Feb 28, 2019 at 10:19:02PM +0100, Szabolcs Nagy wrote: > e.g. the segfault can be avoided by > > - const char *dlerror_msg = ast_strdupa(dlerror()); > + const char *dlerror_msg = dlerror(); dlerror_msg = ast_strdupa(dlerror_msg ? dlerror_msg : ""); > > but we would need to know what this code is trying to do > (and how it worked before) for a proper fix. Hello Szabolcs, This seems to work. I was able to compile and run asterisk with this (and make some phone calls). I will raise a bug report upstream for this and point them here. I'm not going to raise a pull request with your patch as upstream's handling of pull requests includes signing some agreement etc. I'll just point them to this thread and see what comes out of it. Thanks again! Kind regards, Seb