NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/60346 CVS commit: src/usr.bin/ftp



The following reply was made to PR bin/60346; it has been noted by GNATS.

From: Ryo ONODERA <ryo%tetera.org@localhost>
To: mlelstv%serpens.de@localhost
Cc: gnats-bugs%netbsd.org@localhost
Subject: Re: PR/60346 CVS commit: src/usr.bin/ftp
Date: Thu, 9 Jul 2026 02:51:22 +0900

 Hi,
 
 Your fix does not solve my problem yet sadly.
 I have a problem in pkgsrc/multimedia/libva.
 Could you take a look my problem too?
 
 libva package invokes /usr/bin/ftp like as follows:
 
 ryoon@castella: ~/tmp/ftp
 $ ftp https://github.com/intel/libva/releases/download/2.24.1/libva-2.24.1.=
 tar.bz2
 
 ryoon@castella: ~/tmp/ftp
 $ gdb /usr/bin/ftp ftp.core
 GNU gdb (GDB) 17.1
 Copyright (C) 2025 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.htm=
 l>
 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--netbsd".
 Type "show configuration" for configuration details.
 For bug reporting instructions, please see:
 <https://www.gnu.org/software/gdb/bugs/>.
 Find the GDB manual and other documentation resources online at:
     <http://www.gnu.org/software/gdb/documentation/>.
 
 For help, type "help".
 Type "apropos word" to search for commands related to "word"...
 Reading symbols from /usr/bin/ftp...
 Reading symbols from /usr/libdata/debug/usr/bin/ftp.debug...
 [New process 1300]
 Core was generated by `ftp'.
 Program terminated with signal SIGSEGV, Segmentation fault.
 #0  0x00007052ac9899b2 in memcpy () from /usr/lib/libc.so.12
 (gdb) bt
 #0  0x00007052ac9899b2 in memcpy () from /usr/lib/libc.so.12
 #1  0x000000000019253f in remove_dot_segments (path=3D<optimized out>,
 len=3D<optimized out>) at /usr/src/usr.bin/ftp/uri.c:216
 #2  0x00000000001927bf in make_absurl (
     refurl=3Drefurl@entry=3D0x7052ac5f7000
 "https://release-assets.githubusercontent.com/github-production-release-ass=
 et/16745233/af00959a-1177-46aa-a834-650739b8afaa?sp=3Dr&sv=3D2018-11-09&sr=
 =3Db&spr=3Dhttps&se=3D2026-07-08T18%3A28%3A37Z&rscd=3Dattachment"...,
     baseurl=3Dbaseurl@entry=3D0x7f7fff4a2dfc
 "https://github.com/intel/libva/releases/download/2.24.1/libva-2.24.1.tar.b=
 z2")
 at /usr/src/usr.bin/ftp/uri.c:271
 #3  0x00000000001897fc in negotiate_connection (fin=3D0x7052ac762840,
 url=3D0x7f7fff4a2dfc
 "https://github.com/intel/libva/releases/download/2.24.1/libva-2.24.1.tar.b=
 z2",
     penv=3D0x7052ac78e100
 "/github-production-release-asset/16745233/af00959a-1177-46aa-a834-650739b8=
 afaa?s/github-production-release-asset/16745233/af00959a-1177-46aa-a834-650=
 739b8afaa?s/github-production-release-asset/1674523"...,
 pi=3D<synthetic pointer>, mtime=3D0x7f7fff4a1790, wauth=3D0x7f7fff4a1820,
 pauth=3D0x7f7fff4a1840, rval=3D0x7f7fff4a1708,
     ischunked=3D0x7f7fff4a170c, auth=3D0x7f7fff4a1748, ui=3D0x7f7fff4a1860)
 at /usr/src/usr.bin/ftp/fetch.c:1250
 #4  fetch_url (url=3D0x7f7fff4a2dfc
 "https://github.com/intel/libva/releases/download/2.24.1/libva-2.24.1.tar.b=
 z2",
 proxyenv=3Dproxyenv@entry=3D0x0, proxyauth=3Dproxyauth@entry=3D0x0,
     wwwauth=3Dwwwauth@entry=3D0x0, rui=3Drui@entry=3D0x0) at
 /usr/src/usr.bin/ftp/fetch.c:1635
 #5  0x0000000000189da0 in go_fetch (url=3D<optimized out>,
 rui=3Drui@entry=3D0x0) at /usr/src/usr.bin/ftp/fetch.c:2370
 #6  0x000000000018a1dc in auto_fetch (argc=3D1, argv=3D0x7f7fff4a27f0) at
 /usr/src/usr.bin/ftp/fetch.c:2413
 #7  0x0000000000197837 in main (argc=3D<optimized out>, argv=3D<optimized
 out>) at /usr/src/usr.bin/ftp/main.c:550
 (gdb)
 
 On Thu, Jul 9, 2026 at 2:25=E2=80=AFAM Patrick Welche via gnats
 <gnats-admin%netbsd.org@localhost> wrote:
 >
 > The following reply was made to PR bin/60346; it has been noted by GNATS.
 >
 > From: Patrick Welche <prlw1%welche.eu@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc: mlelstv%serpens.de@localhost
 > Subject: Re: PR/60346 CVS commit: src/usr.bin/ftp
 > Date: Wed, 8 Jul 2026 18:23:47 +0100
 >
 >  On Wed, Jul 08, 2026 at 04:20:02PM +0000, Michael van Elst via gnats wro=
 te:
 >  > The following reply was made to PR bin/60346; it has been noted by GNA=
 TS.
 >  >
 >  > From: mlelstv%serpens.de@localhost (Michael van Elst)
 >  > To: gnats-bugs%netbsd.org@localhost
 >  > Cc:
 >  > Subject: Re: PR/60346 CVS commit: src/usr.bin/ftp
 >  > Date: Wed, 8 Jul 2026 16:16:59 -0000 (UTC)
 >  >
 >  >  gnats-admin%NetBSD.org@localhost ("Patrick Welche via gnats") writes:
 >  >
 >  >  > I have started seeing segmentation faults - maybe related?
 >  >  >
 >  >  > Easiest is the reproducer:
 >  >  >
 >  >  > gdb `which ftp`
 >  >  > run https://github.com/openmm/openmm/archive/8.5.2.tar.gz
 >  >
 >  >
 >  >  Silly bug (of mine) like:
 >  >
 >  >  p =3D malloc();
 >  >  p +=3D advance;
 >  >  free(p);
 >  >
 >  >  Please cvs up.
 >
 >  Thanks for fixing it so quickly!
 >
 >  # make mdi
 >  =3D> Bootstrap dependency digest>=3D20211023: found digest-20220214
 >  =3D> Fetching openmm-8.5.2.tar.gz
 >  Requesting https://github.com/openmm/openmm/archive/8.5.2.tar.gz
 >  Redirected to https://codeload.github.com/openmm/openmm/tar.gz/refs/tags=
 /8.5.2
 >  Requesting https://codeload.github.com/openmm/openmm/tar.gz/refs/tags/8.=
 5.2
 >   20700 KiB    3.83 MiB/s
 >
 >  with /usr/bin/ftp
 >
 
 
 --=20
 Ryo ONODERA // ryo%tetera.org@localhost
 PGP fingerprint =3D 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3
 



Home | Main Index | Thread Index | Old Index