From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id uLURMOuEX2U3iw0AWB0awg (envelope-from ) for ; Thu, 23 Nov 2023 11:59:23 -0500 Received: by simark.ca (Postfix, from userid 112) id C174C1E0D2; Thu, 23 Nov 2023 11:59:23 -0500 (EST) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id B2F721E091 for ; Thu, 23 Nov 2023 11:59:21 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 33067385783E for ; Thu, 23 Nov 2023 16:59:21 +0000 (GMT) Received: from tardis.lost-in-space.net (tardis.lost-in-space.net [5.226.144.243]) by sourceware.org (Postfix) with ESMTPS id 8B4D93858C2B for ; Thu, 23 Nov 2023 16:59:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8B4D93858C2B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=simon-woerner.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simon-woerner.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8B4D93858C2B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=5.226.144.243 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700758746; cv=none; b=PDb58lqcwWtBXO7GcZ21/S7ymO4SgYnu/WHU/f1FQxmuN4yvxmbDV7lEdu2mAqF3Z66VxyktPGcwOUVA4N81tegpZX9YXLL0o9DHtHNHj45kjPHcCE4DCdho3//GvFpV9XXwjcMKBo4uBB0QwnMgUwN7XuTa5/jHUqQYodrPT/0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700758746; c=relaxed/simple; bh=95E25AlfPezHYMntvjCPKBR8/yVlXCuxc9Nno19UBbc=; h=MIME-Version:Date:From:Message-ID:Subject:To; b=hzRmufcUvqBQRtJk5Afdvbn04W6/QdUpiVZA4IA7tcaIlejzXn7xOnJvcQPzGh+ouIzBFkBZJrfyki76vtQnodrK/LAekZS8HiNma9pzMuSxyDS484FQRk75DhcFUq/YGeoiOuV9TLjeLKtL4Dvp8+mPP+aHWDsukIRAZqBQIQo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from webmail.brief.guru (brief.guru [2a00:6340:2010:8000:d3::1]) by tardis (OpenSMTPD) with ESMTPSA id c9a1d3b4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 23 Nov 2023 16:59:00 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 23 Nov 2023 16:59:00 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: mail@simon-woerner.de Message-ID: <3416bc2b089a15a83427f4bf17d4bc9fb7ecdaf1@simon-woerner.de> TLS-Required: No Subject: Re: Assertion `idx >= 0 && idx < num_fields ()' failed. To: "Simon Marchi" , "Tom Tromey" Cc: gdb@sourceware.org In-Reply-To: <90c85e81-940c-4fff-ba76-5c416934ad23@simark.ca> References: <90c85e81-940c-4fff-ba76-5c416934ad23@simark.ca> <87wmu9hhu5.fsf@tromey.com> <77df76a0525202bbbad9520a0467a5075efbd12c@brn.li> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" > Can you give some steps to reproduce, Sure, tested on an Arch Linux but this should work on any recent Linux di= stribution: ``` # dependencies: # wget zstd python3 gdb libpixman binutils # get target binary wget 'https://pixeldrain.com/u/EAUpLuPj?dl=3D1' -O prebuilt.tar.zst tar -xvf prebuilt.tar.zst # or build from source (requires rust and some dependencies) git clone https://github.com/fuzzware-fuzzer/hoedur.git cd hoedur cargo build --bin hoedur-arm cd target/debug # get target input/config file wget 'https://pixeldrain.com/u/FqoekVRY?dl=3D1' -O reproducer.corpus.tar.= zst echo 'root: {}' > log.yml=20 #=20get gef (not sure which gdb command used by gef triggers the crash) wget https://github.com/hugsy/gef/raw/2023.08/gef.py # run reproducer LD_LIBRARY_PATH=3D. gdb --nx --args ./hoedur-arm --log-config ./log.yml -= -import-config ./reproducer.corpus.tar.zst run-corpus ./reproducer.corpus= .tar.zst gdb) start gdb) b cpu # for an unrelated autocomplete crash gdb) b cpu_handle_exception gdb) source gef.py gdb) r # crash after `cpu_handle_exception` breakpoint ``` Regards, Simon W=C3=B6rner November 23, 2023 at 17:01, "Simon Marchi" wrote: >=20 >=20On 11/23/23 07:11, mail@simon-woerner.de wrote: >=20 >=20>=20 >=20> >=20 >=20> > Which gdb are you using? I wonder if the problem has already been > > > fixed. > > >=20 >=20>=20 >=20>=20=20 >=20> I'm using the latest version: > >=20=20 >=20> ``` > > $ gdb --version > > GNU gdb (GDB) 13.2 > > [...] > > ``` > >=20 >=20 > Can you give some steps to reproduce, so that someone has a chance to > start debugging the problem? Otherwise, it's virtually impossible to > know what happens. >=20 >=20Simon >