From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Simen =?UTF-8?Q?Endsj=C3=B8?= Newsgroups: gmane.emacs.bugs Subject: bug#70914: 29.3; Crashes often on Windows Date: Wed, 22 May 2024 06:35:58 +0200 Message-ID: References: <86msouxamh.fsf@gnu.org> <86h6f0wsbv.fsf@gnu.org> <86seyjtgvd.fsf@gnu.org> <86ttizjdwm.fsf@gnu.org> <86h6eykiuk.fsf@gnu.org> <86cypmji2l.fsf@gnu.org> <865xvadhsg.fsf@gnu.org> <861q5ycpv1.fsf@gnu.org> <86ed9yb2cg.fsf@gnu.org> <86y185ac0w.fsf@gnu.org> <86bk50a938.fsf@gnu.org> <861q5w9wgv.fsf@gnu.org> <86v8388g1w.fsf@gnu.org> <86seyc8f1c.fsf@gnu.org> <86h6er8dkd.fsf@gnu.org> <86bk4z81cu.fsf@gnu.org> <554078779.3957737.1716318331280@mail.yahoo.com> <984937837.4078826.1716352322860@mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000003d63c806190379d3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37604"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Corwin Brust , 70914@debbugs.gnu.org To: Hannes Domani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 22 06:38:24 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s9dk7-0009Uf-Vr for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 May 2024 06:38:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9djl-0000N6-MM; Wed, 22 May 2024 00:38:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9djh-0000M7-6Y for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 00:37:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s9djg-0005FX-R9 for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 00:37:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9djm-0005Mx-CV for bug-gnu-emacs@gnu.org; Wed, 22 May 2024 00:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simen =?UTF-8?Q?Endsj=C3=B8?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 May 2024 04:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70914 X-GNU-PR-Package: emacs Original-Received: via spool by 70914-submit@debbugs.gnu.org id=B70914.171635264320616 (code B ref 70914); Wed, 22 May 2024 04:38:02 +0000 Original-Received: (at 70914) by debbugs.gnu.org; 22 May 2024 04:37:23 +0000 Original-Received: from localhost ([127.0.0.1]:53227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9dj9-0005MS-9M for submit@debbugs.gnu.org; Wed, 22 May 2024 00:37:23 -0400 Original-Received: from mail-lf1-f43.google.com ([209.85.167.43]:47292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9dj7-0005MJ-MA for 70914@debbugs.gnu.org; Wed, 22 May 2024 00:37:22 -0400 Original-Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-51f3a49ff7dso8088208e87.2 for <70914@debbugs.gnu.org>; Tue, 21 May 2024 21:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716352570; x=1716957370; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=V8aeTetH/+H4BoSfyh9rD39IE+WjieoXH6+qn1y5u2Q=; b=HulcQV10Gwlj/C2EnVhpFqWpLdgAanNINQixsRg4MgqfHpwTmygrkstI3ivTBaUse4 mkIuIEYlQnVrPb7xvkKaYbd/F9MGrGiASieNRfNesC3+evWx+mIdV4z/Rcdn5gkxROJX VubU+9nBAqB7uha5FUlhTgSjT9rrcqdxq7+9j1PQyPu+RIi9RDECapq0kJe4s1P8eyWU G+09+c8NtujYW2fc6cIwgYGXirOXviSKwVTPEYQ8irB+v43TndjwslOy6wB+coHALibL v9Osk/Ksp5JydUspxfOqamh2yfYQerhEA+yrL/neCscrNhvwjRT9Ce8aWZ4jvMa+KiCl aMdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716352570; x=1716957370; h=cc: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=V8aeTetH/+H4BoSfyh9rD39IE+WjieoXH6+qn1y5u2Q=; b=J4qdj8yOYQBLKETI4OnLUcDc6AGuTpINekt60PGdNxxGgu3BkgCnc9rJbdAadb9DcT ofi6pWiX2wy2oPJtelI+Gu/pA/JgGl1/FhK0KpNAZtX50jBhvAkZ81yfp+Tv5dnQztqu TrYjUknyDB3kqDFXdAt9g9vtjB0CrE6coZZKZ2nAq8fLDb6vbY2DhVlAQpcxXZUQ210Z e+bofYbRp0IAyJWPz2WGorhYQUfH8qcOoB1Pal6RTavqhuMAcrkRJRzTxc5ScxyLGDTF DCglzF9RjHcINm43/QFDg/bp04xp+7xqPQo7rBomDUJcXgvSAJ+h7HX6iTwIEk5mLh5m zs3Q== X-Forwarded-Encrypted: i=1; AJvYcCXORj4pbnjdOZcy/0ygX+UjGNP3jWraxNhdDI1tdF56tNU1h67DTS/fkc8xEgs7orhRP4gmS3ru4RdTTuX3MnEq4QNejKI= X-Gm-Message-State: AOJu0Yya8AinvUaJUaWq+HfomyOxJD1yx8z9P3yaBJaFTwXef6y0vj5E SBjRhddmZbAkkcPD/RaulM0zLP6j1jSE0VjhzBHRH4hkY5b1EwESaX1oYei8Le0VCaveDDnjhqP fPi6CLhCZjO+Ry06QDDw5Suhctk0= X-Google-Smtp-Source: AGHT+IHafkQ1+tr2TvnzbLcBRVwHfaKjFjILB5xfMxDcJ4946G1b1pbcWEHZ7MNYNTLTHpL57fe9mX3p7I/VB4njVBQ= X-Received: by 2002:ac2:53a7:0:b0:521:533d:6367 with SMTP id 2adb3069b0e04-526bfc02b06mr334776e87.63.1716352569924; Tue, 21 May 2024 21:36:09 -0700 (PDT) In-Reply-To: <984937837.4078826.1716352322860@mail.yahoo.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285571 Archived-At: --0000000000003d63c806190379d3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > From reading just this source file I'm not sure emacs supports long paths= . > How long is your path? Maybe you can show what it looks like? D:/profiles/system.org On Wed, May 22, 2024, 06:32 Hannes Domani wrote: > Am Dienstag, 21. Mai 2024 um 22:32:04 MESZ hat Simen Endsj=C3=B8 < > simendsjo@gmail.com> Folgendes geschrieben: > > > Look at that! I tried running it twice, and it reported the same > location both > > times. > > > > This is when opening my "system.org" file. My D: is a VHD DevDrive > > (ReFs), but I have experiencing crashes since way before I migrated to = a > > DevDrive. > > > > I have some symlinked folders further down the tree too. And Developer > Mode > > enabled which allows me to register symlinks without admin rights. > > > > I have LongPathsEnabled, ref > > > https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-= limitation?tabs=3Dregistry > > > > Thread 1 received signal SIGSEGV, Segmentation fault. > > 0x0000000000000000 in ?? () > > (gdb) bt > > #0 0x0000000000000000 in ?? () > > #1 0x0000000000000000 in ?? () > > (gdb) reverse-stepi > > 0x00007ff7beeabe9d in get_volume_info (name=3D, > > pPath=3D) at w32.c:3502 > > 3502 } > > ^ > > (gdb) bt > > #0 0x00007ff7beeabe9d in get_volume_info (name=3D, > > pPath=3D) at w32.c:3502 > > #1 0x0000000000000000 in ?? () > > Backtrace stopped: not enough registers or memory available to > > unwind further > > From reading just this source file I'm not sure emacs supports long paths= . > How long is your path? Maybe you can show what it looks like? > > There might be a buffer overflow happening in get_volume_info(), this > line looks suspicious to me: > 3488 strncpy (temp, name, root_len); > > If it turns out the problem is not in get_volume_info(), you might have > to step further back with 'reverse-next' to see where it was called from. > > > Hannes > --0000000000003d63c806190379d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> From reading just t= his source file I'm not sure emacs supports long paths.
> How long is you= r path? Maybe you can show what it looks like?

D:/profiles/system.org<= /a>

=C2=A0Am Dienstag, 21. Mai 2024 um 22:32:04 MESZ hat Sime= n Endsj=C3=B8 <simendsjo@gmail.com> Folgendes geschrieben:

> Look at that! I tried running it twice, and it reported the same locat= ion both
> times.
>
> This is when opening my "system.org" file. My D: is a= VHD DevDrive
> (ReFs), but I have experiencing crashes since way before I migrated to= a
> DevDrive.
>
> I have some symlinked folders further down the tree too. And Developer= Mode
> enabled which allows me to register symlinks without admin rights.
>
> I have LongPathsEnabled, ref
> https://learn.microsoft.com/en-us/windows/win32/fileio/maxim= um-file-path-limitation?tabs=3Dregistry


>=C2=A0=C2=A0=C2=A0=C2=A0 Thread 1 received signal SIGSEGV, Segmentation= fault.
>=C2=A0=C2=A0=C2=A0=C2=A0 0x0000000000000000 in ?? ()
>=C2=A0=C2=A0=C2=A0=C2=A0 (gdb) bt
>=C2=A0=C2=A0=C2=A0=C2=A0 #0=C2=A0 0x0000000000000000 in ?? ()
>=C2=A0=C2=A0=C2=A0=C2=A0 #1=C2=A0 0x0000000000000000 in ?? ()
>=C2=A0=C2=A0=C2=A0=C2=A0 (gdb) reverse-stepi
>=C2=A0=C2=A0=C2=A0=C2=A0 0x00007ff7beeabe9d in get_volume_info (name=3D= <unavailable>,
> pPath=3D<unavailable>) at w32.c:3502
>=C2=A0=C2=A0=C2=A0=C2=A0 3502=C2=A0=C2=A0=C2=A0 }
>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 ^
>=C2=A0=C2=A0=C2=A0=C2=A0 (gdb) bt
>=C2=A0=C2=A0=C2=A0=C2=A0 #0=C2=A0 0x00007ff7beeabe9d in get_volume_info= (name=3D<unavailable>,
> pPath=3D<unavailable>) at w32.c:3502
>=C2=A0=C2=A0=C2=A0=C2=A0 #1=C2=A0 0x0000000000000000 in ?? ()
>=C2=A0=C2=A0=C2=A0=C2=A0 Backtrace stopped: not enough registers or mem= ory available to
> unwind further

>From reading just this source file I'm not sure emacs supports long pat= hs.
How long is your path? Maybe you can show what it looks like?

There might be a buffer overflow happening in get_volume_info(), this
line looks suspicious to me:
3488=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 strncpy (temp, name, root_len);

If it turns out the problem is not in get_volume_info(), you might have
to step further back with 'reverse-next' to see where it was called= from.


Hannes
--0000000000003d63c806190379d3--