Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2007 17:09:37 +0200
From:      "Michael Iedema" <michael@askozia.com>
To:        "M. Warner Losh" <imp@bsdimp.com>
Cc:        freebsd-drivers@freebsd.org
Subject:   Re: first time module dev question: undefined reference to 'memset'
Message-ID:  <d3dd0e360709270809l20d540b3ief3de776162240c6@mail.gmail.com>
In-Reply-To: <20070925.082915.1474621067.imp@bsdimp.com>
References:  <46F75CF2.10003@demig.de> <d3dd0e360709240454v751951d3xa0072025dee7a541@mail.gmail.com> <d3dd0e360709250410x678fcbbdn6863f7c13c558fe6@mail.gmail.com> <20070925.082915.1474621067.imp@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> : c04f383c t malloc_type_zone_allocated
>
> It would be in here somewhere.  This changes my view to be biased
> towards 'you may be dancing in memory, corrupting things' or 'The
> symbols you have don't match up to the kernel you booted'.  DDB will
> take care of that.

Thanks for the pointers!

I was able to get a trace and narrowed it down the malloc call in
echo.c which was being compiled without the appropriate kernel
headers, thus referencing the userland malloc. Some #ifdef and
Makefile changes has everything working smoothly.

Many thanks to everyone who replied. My project[1] finally has a
proper echo canceller.

Regards,
-Michael I

[1] - http://askozia.com/pbx



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