NetBSD-Bugs archive

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

Re: port-amiga/60617: elf2bb crashes



The following reply was made to PR port-amiga/60617; it has been noted by GNATS.

From: Jan-Benedict Glaw <jbglaw%lug-owl.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: port-amiga-maintainer%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost
Subject: Re: port-amiga/60617: elf2bb crashes
Date: Tue, 18 Aug 2026 01:10:25 +0200

 --mBzSLZEDJ9IAsQmH
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Mon, 2026-08-17 23:00:00 +0000, jbglaw%lug-owl.de@localhost via gnats <gnats-admin=
 @NetBSD.org> wrote:
 
 Just to add: I also built elf2bb with -g, valgrind complains:
 
 # valgrind -s /root/netbsd-amiga-manual/_tools_/bin/nbamiga-elf2bb -d -S x.=
 out boot.amiga > /dev/null
 =3D=3D1991054=3D=3D Memcheck, a memory error detector
 =3D=3D1991054=3D=3D Copyright (C) 2002-2026, and GNU GPL'd, by Julian Sewar=
 d et al.
 =3D=3D1991054=3D=3D Using Valgrind-3.27.1 and LibVEX; rerun with -h for cop=
 yright info
 =3D=3D1991054=3D=3D Command: /root/netbsd-amiga-manual/_tools_/bin/nbamiga-=
 elf2bb -d -S x.out boot.amiga
 =3D=3D1991054=3D=3D=20
 =3D=3D1991054=3D=3D Invalid write of size 1
 =3D=3D1991054=3D=3D    at 0x4856833: memcpy@GLIBC_2.2.5 (vg_replace_strmem.=
 c:1152)
 =3D=3D1991054=3D=3D    by 0x4001770: main (elf2bb.c:261)
 =3D=3D1991054=3D=3D  Address 0x4a81680 is 0 bytes after a block of size 34,=
 304 alloc'd
 =3D=3D1991054=3D=3D    at 0x4852FFF: realloc (vg_replace_malloc.c:1741)
 =3D=3D1991054=3D=3D    by 0x4001E2F: main (elf2bb.c:246)
 =3D=3D1991054=3D=3D=20
 =3D=3D1991054=3D=3D Invalid write of size 2
 =3D=3D1991054=3D=3D    at 0x4001DA0: main (elf2bb.c:400)
 =3D=3D1991054=3D=3D  Address 0x4a81680 is 0 bytes after a block of size 34,=
 304 alloc'd
 =3D=3D1991054=3D=3D    at 0x4852FFF: realloc (vg_replace_malloc.c:1741)
 =3D=3D1991054=3D=3D    by 0x4001E2F: main (elf2bb.c:246)
 =3D=3D1991054=3D=3D=20
 =3D=3D1991054=3D=3D=20
 =3D=3D1991054=3D=3D HEAP SUMMARY:
 =3D=3D1991054=3D=3D     in use at exit: 69,744 bytes in 4 blocks
 =3D=3D1991054=3D=3D   total heap usage: 9 allocs, 5 frees, 142,456 bytes al=
 located
 =3D=3D1991054=3D=3D=20
 =3D=3D1991054=3D=3D LEAK SUMMARY:
 =3D=3D1991054=3D=3D    definitely lost: 56 bytes in 1 blocks
 =3D=3D1991054=3D=3D    indirectly lost: 0 bytes in 0 blocks
 =3D=3D1991054=3D=3D      possibly lost: 0 bytes in 0 blocks
 =3D=3D1991054=3D=3D    still reachable: 69,688 bytes in 3 blocks
 =3D=3D1991054=3D=3D         suppressed: 0 bytes in 0 blocks
 =3D=3D1991054=3D=3D Rerun with --leak-check=3Dfull to see details of leaked=
  memory
 =3D=3D1991054=3D=3D=20
 =3D=3D1991054=3D=3D ERROR SUMMARY: 66 errors from 2 contexts (suppressed: 0=
  from 0)
 =3D=3D1991054=3D=3D=20
 =3D=3D1991054=3D=3D 2 errors in context 1 of 2:
 =3D=3D1991054=3D=3D Invalid write of size 2
 =3D=3D1991054=3D=3D    at 0x4001DA0: main (elf2bb.c:400)
 =3D=3D1991054=3D=3D  Address 0x4a81680 is 0 bytes after a block of size 34,=
 304 alloc'd
 =3D=3D1991054=3D=3D    at 0x4852FFF: realloc (vg_replace_malloc.c:1741)
 =3D=3D1991054=3D=3D    by 0x4001E2F: main (elf2bb.c:246)
 =3D=3D1991054=3D=3D=20
 =3D=3D1991054=3D=3D=20
 =3D=3D1991054=3D=3D 64 errors in context 2 of 2:
 =3D=3D1991054=3D=3D Invalid write of size 1
 =3D=3D1991054=3D=3D    at 0x4856833: memcpy@GLIBC_2.2.5 (vg_replace_strmem.=
 c:1152)
 =3D=3D1991054=3D=3D    by 0x4001770: main (elf2bb.c:261)
 =3D=3D1991054=3D=3D  Address 0x4a81680 is 0 bytes after a block of size 34,=
 304 alloc'd
 =3D=3D1991054=3D=3D    at 0x4852FFF: realloc (vg_replace_malloc.c:1741)
 =3D=3D1991054=3D=3D    by 0x4001E2F: main (elf2bb.c:246)
 =3D=3D1991054=3D=3D=20
 =3D=3D1991054=3D=3D ERROR SUMMARY: 66 errors from 2 contexts (suppressed: 0=
  from 0)
 
 Some off-by-one when copying section contents?
 
 MfG, JBG
 
 --=20
 
 --mBzSLZEDJ9IAsQmH
 Content-Type: application/pgp-signature; name="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 
 iF0EABECAB0WIQQlDTvPcScNjKREqWEdvV51g5nhuwUCaoOU2wAKCRAdvV51g5nh
 u6pnAKCQMLtUhl86OK3KBpNlwvL9f3lFVACfb2FfV/lVTdtwDZHSqyVKuEgVO+U=
 =L9xn
 -----END PGP SIGNATURE-----
 
 --mBzSLZEDJ9IAsQmH--
 



Home | Main Index | Thread Index | Old Index