From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14162 invoked from network); 26 Jun 2020 17:18:20 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 26 Jun 2020 17:18:20 -0000 Received: (qmail 28951 invoked by alias); 26 Jun 2020 17:18:14 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: Sender: zsh-workers@zsh.org X-Seq: 46125 Received: (qmail 8170 invoked by uid 1010); 26 Jun 2020 17:18:14 -0000 X-Qmail-Scanner-Diagnostics: from wout1-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25850. spamassassin: 3.4.4. Clear:RC:0(64.147.123.24):SA:0(-2.6/5.0):. Processed in 0.770243 secs); 26 Jun 2020 17:18:14 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeluddguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkjghfofggtgfgsehtqhdttdertdejnecuhfhrohhmpeffrghn ihgvlhcuufhhrghhrghfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqe enucggtffrrghtthgvrhhnpefhtdetfeehveeutdehuddtieefgeettedtjedtffehudei ieejleetteekudetheenucfkphepjeelrddujeeirdefledrieelnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhs hhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Date: Fri, 26 Jun 2020 17:17:35 +0000 From: Daniel Shahaf To: Roman Perepelitsa Cc: Petr =?UTF-8?B?xaDFpWFzdG7DvQ==?= , Zsh hackers list Subject: zsh/lldb (was: Re: [BUG] Zsh crashes when using autocomplete because of memory unsafety (double free)) Message-ID: <20200626171735.13aa91c4@tarpaulin.shahaf.local2> In-Reply-To: References: <00cb28e8-004e-2c8c-e02d-6063f4079c1d@soptik.tech> <20200626162405.4a7d28c1@tarpaulin.shahaf.local2> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Roman Perepelitsa wrote on Fri, 26 Jun 2020 18:32 +0200: > On Fri, Jun 26, 2020 at 6:24 PM Daniel Shahaf wr= ote: > > > > % alias a=3D'""' > > 16: ./Src/Zle/compcore.c:1678: expecting 'x' at offset -1 of "x""" =20 >=20 > (digression) >=20 > Does lldb start automatically when zsh crashes on you machine? No, it doesn't. I ran =C2=ABlldb /srv/zsh/bin/zsh=C2=BB and typed =C2=ABr= =C2=BB to launch zsh, and trimmed that part of the output before posting. I also trimmed the value of $abs_srcdir and a few other things. And in any case, the message above is a DPUTS(); it has nothing to do with whether zsh was run under a debugger or not. Although, come to think of it, I'm not sure where that "16:" at the start of the line is from. > How did you configure it this way? Cheers, Daniel P.S. Double digression: How do I invoke lldb in a way that'll cause it to run the target automatically? I'm looking for something along the lines of =C2=ABlldb --foo r -- /path/to/zsh=C2=BB, where =C2=ABr=C2=BB is t= he lldb command for starting the target. I've tried -o and -s and they do start zsh, but the tty settings are wrong (^D doesn't work, for example).