first time module dev question: undefined reference to 'memset'

Michael Iedema michael at askozia.com
Thu Sep 27 08:09:42 PDT 2007


> : 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


More information about the freebsd-drivers mailing list