+rtfree: 0xffffff0003635780 has 1 refs

Danny Pansters danny at ricin.com
Wed Mar 19 09:58:27 PDT 2008


On Wednesday 19 March 2008 14:28:28 John Baldwin wrote:
> On Tuesday 18 March 2008 06:09:46 pm Danny Pansters wrote:
> > On Monday 17 March 2008 20:55:01 Stefan Lambrev wrote:
> > > Greetings Dave,
> > >
> > > Dave Overton wrote:
> > > > I am new to the AMD64 stable branch, so forgive me if this has been
> > > > beat to death, but I can't find why this message keeps occurring over
> > > > and over all day.  FreeBSD 7.0 Stable on AMD x2.  It works (or seems
> > > > to) fine.
> > > >
> > > > +rtfree: 0xffffff0003635780 has 1 refs
> > >
> > > check google for rtfree() used when RTFREE() needed .. or something
> > > like this :)
> > > Those messages are annoying but harmless.
> >
> > Harmless perhaps, but it still should be fixed, so if you don't see any
> > similar PR already I'd suggest sending one.
> >
> > Has to do with certain variables being of one type but used as if it were
> > another (e.g. int vs long) which on 64bit platforms as a band-aid
> > gets "MSB-filled" with 0xf's to the proper size. So such warning pretty
> > much means "fix your code".
>
> No.  The value printed is a pointer and kernel pointers on amd64 are in the
> upper range of the address space.  The warning above has to do with code
> that calls rtfree() vs. the RTFREE() macro.  The macro inlines the the
> common case (refs > 1) so in theory is cheaper than always doing a function
> call.

I stand corrected!

Dan


More information about the freebsd-stable mailing list