From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14862 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Crash using python in alpine with musl and confluent-kafka python library Date: Thu, 24 Oct 2019 20:34:53 -0400 Message-ID: <20191025003453.GS16318@brightrain.aerifal.cx> References: <50BB5C7D-48B1-41D2-AE5A-53D7C0AD49A5@tivo.com> 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="43034"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-14878-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 25 02:35:09 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 1iNnZM-000B4B-Fu for gllmg-musl@m.gmane.org; Fri, 25 Oct 2019 02:35:08 +0200 Original-Received: (qmail 30688 invoked by uid 550); 25 Oct 2019 00:35:06 -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 30670 invoked from network); 25 Oct 2019 00:35:05 -0000 Content-Disposition: inline In-Reply-To: <50BB5C7D-48B1-41D2-AE5A-53D7C0AD49A5@tivo.com> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:14862 Archived-At: On Fri, Oct 25, 2019 at 12:14:29AM +0000, Richard Lee wrote: > /stuff # gdb python3 > GNU gdb (GDB) 8.3 > Copyright (C) 2019 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > Type "show copying" and "show warranty" for details. > This GDB was configured as "x86_64-alpine-linux-musl". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > . > Find the GDB manual and other documentation resources online at: > . > > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from python3... > (gdb) r -m audit_all_tombstones -b kafka.tec1.tivo.com -v > Starting program: /usr/local/bin/python3 -m audit_all_tombstones -b kafka.tec1.tivo.com -v > warning: Error disabling address space randomization: Operation not permitted > [New LWP 219] > [New LWP 220] > [New LWP 221] > [New LWP 222] > [New LWP 223] > [New LWP 224] > [New LWP 225] > [New LWP 226] > [New LWP 227] > [New LWP 228] > [New LWP 229] > [New LWP 230] > [New LWP 231] > [New LWP 232] > [New LWP 233] > [New LWP 234] > [New LWP 235] > [New LWP 236] > [New LWP 237] > [New LWP 238] > [New LWP 239] > [New LWP 240] > [New LWP 241] > [New LWP 242] > > Thread 3 "rdk:main" received signal SIGSEGV, Segmentation fault. > [Switching to LWP 220] > __bin_chunk (self=0x559c68375130) at src/malloc/malloc.c:456 > 456 src/malloc/malloc.c: No such file or directory. > (gdb) bt > #0 __bin_chunk (self=0x559c68375130) at src/malloc/malloc.c:456 > #1 0x00007fe8f0b04d92 in trim (self=self@entry=0x559c683750d0, n=) at src/malloc/malloc.c:281 > #2 0x00007fe8f0b05120 in malloc (n=) at src/malloc/malloc.c:328 > #3 0x00007fe8f0b05238 in realloc (p=, n=) at src/malloc/malloc.c:375 > #4 0x00007fe8ef963181 in ?? () from /usr/lib/librdkafka.so.1 > #5 0x00007fe8ef9631cc in ?? () from /usr/lib/librdkafka.so.1 > #6 0x00007fe8ef978770 in rd_kafka_ConfigResource_new () from /usr/lib/librdkafka.so.1 > #7 0x00007fe8ef97a514 in ?? () from /usr/lib/librdkafka.so.1 > #8 0x00007fe8ef977db5 in ?? () from /usr/lib/librdkafka.so.1 > #9 0x00007fe8ef977665 in ?? () from /usr/lib/librdkafka.so.1 > #10 0x00007fe8ef94513f in ?? () from /usr/lib/librdkafka.so.1 > #11 0x00007fe8ef9479e9 in ?? () from /usr/lib/librdkafka.so.1 > #12 0x00007fe8ef947a3c in ?? () from /usr/lib/librdkafka.so.1 > #13 0x00007fe8ef946356 in ?? () from /usr/lib/librdkafka.so.1 > #14 0x00007fe8ef9263f8 in ?? () from /usr/lib/librdkafka.so.1 > #15 0x00007fe8f0b32f94 in start_c11 (p=) at src/thread/pthread_create.c:203 > #16 0x00007fe8f0b3504d in __clone () at src/thread/x86_64/clone.s:22 > Backtrace stopped: frame did not save the PC Can you supplement this report with a disassembly of the crash point showing the faulting instruction? Based on the above, my first guess would be a stack overflow, and if not that, heap corruption from out of bound writes somewhere else. Having debug symbols for librdkafka.so.1 might also be useful; it could at least give an idea what's going on when it crashes. Rich