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=0.2 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 11192 invoked from network); 24 Sep 2023 04:48:44 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 24 Sep 2023 04:48:44 -0000 Received: from mail-ed1-f50.google.com ([209.85.208.50]) by 9front; Sun Sep 24 00:44:52 -0400 2023 Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-530fa34ab80so12912542a12.0 for <9front@9front.org>; Sat, 23 Sep 2023 21:44:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695530688; x=1696135488; darn=9front.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zjeK6j8MS1jwO7nIbGN4LlTNPBSqp15zBsGMP2ab2PM=; b=cjcKmP+ugK6UMo8AeYtHnJFZOOqWwin/31IV6vJTorPtm/oZyk5UsY1ZTW/u8KmRe2 eJq/Bv6bTs4FUOVIOuWo82bStBakgwpNhF13nr9p25nPeJ1RJIcpUJiKOjiL7i1eGqht 7ePxKTzLJo6cSoGott+tkZuJzXM2vaGpOYXS9Z1HfFmINjEkckT7B4MspQAh1A2t/zux ml+6bDELkkl7XD4cp6TbQauc4jiyW1lOgfEH8bzbSHbNcHvh+Pj49dEI626nOl5P9om9 2olt6c7v8ItKPCTAJ3PfO3hE8Kuq9AenMNiGHwbi6WRM35thMerrd+NtFZn1a3N8vt5S jbIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695530688; x=1696135488; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zjeK6j8MS1jwO7nIbGN4LlTNPBSqp15zBsGMP2ab2PM=; b=pA1GdWCQjyP0xMgX4kFCY2VSxAoslW6eLK+mI/DNf1zfDFUHxyxwEXPSWiNSRSchWS PrhVf4ozGS7RjagXZiZU0Jwb10OF0nYL3xGPylWfoXOt4QD4Bh/w8zJcO8K3841yHUBw cWzzVxa6NT/ypbEXvOo6byV6wU9NRTH5eGTra6mla9+shbo9VEoREBcmU2nvJS7mJs4x 3d3x3fYYRwMepFN0NH8QFhHNzbXU7yLqXLhJvs1omaPr3LcgGx9nAewPKzak3rY/XE5h N5qgcoVb3D0NOiC4bn9FDk3OsfWFjhLU5gYeQolmJofUF8aV2sdeFZ0dYqetsnAZQuK6 RZEg== X-Gm-Message-State: AOJu0YxpwPIG8uBhel2uE70oY4tn+0qOeRPKi4E240MtjorJ77nb1xQ0 oFBu70gAS2hogkLh7Pb4cYUo8xPYNsqhbJ2yDLvsbkOdVxg= X-Google-Smtp-Source: AGHT+IERbGlXbphikvUCKq1wu2fYoie5wAEYetcAH6BlrliVPNxE45oyq7o+MUrSgL2TScee3FBs0NQoYm49MPqbYM8= X-Received: by 2002:a05:6402:40c2:b0:530:ec02:babd with SMTP id z2-20020a05640240c200b00530ec02babdmr9599622edb.9.1695530688393; Sat, 23 Sep 2023 21:44:48 -0700 (PDT) MIME-Version: 1.0 References: <8ea3b9d6-c797-179b-cf09-860ebbb4ade5@sdf.org> <5bd1f3ec-58ee-9618-fbfe-caefe906e1f4@sdf.org> <0e548cd8-4376-de24-6a78-000f0d98beb0@sdf.org> <931efd84-9713-5263-02ca-8dc5a93e8304@sdf.org> In-Reply-To: <931efd84-9713-5263-02ca-8dc5a93e8304@sdf.org> From: Amavect Date: Sat, 23 Sep 2023 23:44:32 -0500 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: stateless dependency TOR over SVG full-stack engine Subject: Re: [9front] 9Front Drawterm Code 139 Sig 11 SIGSEGV Reply-To: 9front@9front.org Precedence: bulk On Sat, Sep 23, 2023 at 6:24=E2=80=AFPM Dmad wrote: > #3 0x0000000000226cdf in incref (r=3D0x0) at chan.c:57 You have a null pointer dereference. Digging into this a bit, kern/chan.c:847: incref(&path->ref); ref is the first member of path, and path is not dereferenced, so the question is where c->path is set to null. A path of "./dev/label" results in namec()'s default case to be taken. kern/chan.c:1222: c =3D up->dot; up->dot appears to be defined in _syschdir(). We know that chdir failed, so something happened. kern/sysfile:628: validaddr(name, 1, 0); c =3D namec(name, Atodir, 0, 0); cclose(up->dot); up->dot =3D c; Note that the validaddr() is a no-op macro on drawterm, but an actual function on 9front. If that would detect a problem, then maybe drawterm should have it. Perhaps someone else has a better idea of kernel internals, and how they parallel to drawterm. > Was not able to get a bt stack after compiling with additional CFLAGs Clearly a crash didn't happen with -O0. Were you able to login and start typing commands into drawterm? For fun, I installed FreeBSD on Qemu and compiled drawterm. No issues logging onto my server, but I don't know how to trigger a chdir failure. Thanks, Amavect