Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Feb 2006 15:48:33 +0100
From:      Ulrich Spoerlein <q@galgenberg.net>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        current@freebsd.org
Subject:   Re: Bad code in rcorder(8) (Was: Re: New RCorder: abi loaded too late)
Message-ID:  <20060222144833.GA1124@galgenberg.net>
In-Reply-To: <20060222142058.GB43749@stud.fit.vutbr.cz>
References:  <20060217181842.GA21033@odin.ac.hmc.edu> <43F65A70.7080608@FreeBSD.org> <20060217234118.GA22643@odin.ac.hmc.edu> <43F67121.5080809@FreeBSD.org> <43F682F2.1020804@FreeBSD.org> <43F68611.7080602@FreeBSD.org> <20060219110732.GA12550@stud.fit.vutbr.cz> <43F8ABC8.30005@FreeBSD.org> <20060221180440.GB2996@galgenberg.net> <20060222142058.GB43749@stud.fit.vutbr.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

--sm4nu43k4a2Rpi4c
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Divacky Roman wrote:
> well. there are leaks :) if you try the
> http://www.freebsd.org/cgi/query-pr.cgi?pr=3D91789
>=20
> I think you'll get touch-after-free as well=20

Ah I see. I first tried this with rcorder from early January and I got
errors from 20 different contexts. I now just checked out a fresh
rcorder from RELENG_6 and there are still two problems remaining. So the
patch in the PR did not address all problems.

Here's the output

=2E..
/etc/rc.d/ipfw
/etc/rc.d/nsswitch
rcorder: Circular dependency on file `/etc/rc.d/NETWORKING'.
=3D=3D3431=3D=3D Invalid read of size 4
=3D=3D3431=3D=3D    at 0x80499B0: satisfy_req (rcorder.c:654)
=3D=3D3431=3D=3D    by 0x804979A: do_file (rcorder.c:758)
=3D=3D3431=3D=3D    by 0x80499DA: satisfy_req (rcorder.c:686)
=3D=3D3431=3D=3D    by 0x804979A: do_file (rcorder.c:758)
=3D=3D3431=3D=3D  Address 0x3C1E6AEC is 0 bytes inside a block of size 8 fr=
ee'd
=3D=3D3431=3D=3D    at 0x3C03267F: free (in /usr/local/lib/valgrind/vgprelo=
ad_memcheck.so)
=3D=3D3431=3D=3D    by 0x80497B2: do_file (rcorder.c:761)
=3D=3D3431=3D=3D    by 0x80499DA: satisfy_req (rcorder.c:686)
=3D=3D3431=3D=3D    by 0x804979A: do_file (rcorder.c:758)
=3D=3D3431=3D=3D=20
=3D=3D3431=3D=3D Invalid read of size 4
=3D=3D3431=3D=3D    at 0x80497A5: do_file (rcorder.c:759)
=3D=3D3431=3D=3D    by 0x80499DA: satisfy_req (rcorder.c:686)
=3D=3D3431=3D=3D    by 0x804979A: do_file (rcorder.c:758)
=3D=3D3431=3D=3D    by 0x80499DA: satisfy_req (rcorder.c:686)
=3D=3D3431=3D=3D  Address 0x3C1E6AF0 is 4 bytes inside a block of size 8 fr=
ee'd
=3D=3D3431=3D=3D    at 0x3C03267F: free (in /usr/local/lib/valgrind/vgprelo=
ad_memcheck.so)
=3D=3D3431=3D=3D    by 0x80497B2: do_file (rcorder.c:761)
=3D=3D3431=3D=3D    by 0x80499DA: satisfy_req (rcorder.c:686)
=3D=3D3431=3D=3D    by 0x804979A: do_file (rcorder.c:758)
rcorder: Circular dependency on provision `fake_prov_00000006' in file `/et=
c/rc.d/NETWORKING'.
/etc/rc.d/ip6addrctl
/etc/rc.d/atm2
=2E..
=3D=3D3431=3D=3D=20
=3D=3D3431=3D=3D ERROR SUMMARY: 4 errors from 2 contexts (suppressed: 0 fro=
m 0)
=3D=3D3431=3D=3D malloc/free: in use at exit: 17128 bytes in 536 blocks.
=3D=3D3431=3D=3D malloc/free: 3579 allocs, 3043 frees, 631699 bytes allocat=
ed.

hth,
Ulrich Spoerlein
--=20
 PGP Key ID: 20FEE9DD				Encrypted mail welcome!
Fingerprint: AEC9 AF5E 01AC 4EE1 8F70  6CBD E76E 2227 20FE E9DD
Which is worse: ignorance or apathy?
Don't know. Don't care.

--sm4nu43k4a2Rpi4c
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFD/HnB524iJyD+6d0RAphfAJ9pFi31m8kPqIBGiskg+WVmq/iJpgCfeJPG
S7x8J+/4ghXb9kodGnYpLJk=
=GGgT
-----END PGP SIGNATURE-----

--sm4nu43k4a2Rpi4c--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060222144833.GA1124>