mkproto.sh - stack corruption in static modules

Alexander Bokovoy a.bokovoy at sam-solutions.net
Thu Aug 21 08:44:00 GMT 2003


On Wed, Aug 20, 2003 at 04:24:52PM -0400, Ken Cross wrote:
> Samba-folk:
> 
> I've been trying all day to track down why smbd started panicking.  It
> happens when calling my VFS initialization routine (vfs_alfs_init) *if* it
> is built statically.
> 
> Previously, it would get defined in proto.h as:
> 
>  NTSTATUS vfs_alfs_init(void);
> 
> Now it doesn't.  This is causing a panic on this statement on line 225 in
> smbd/vfs.c:
> 
>         if(!backends) static_init_vfs;
> 
> where config.h defines:
> 
>  #define static_init_vfs { vfs_alfs_init();}
> 
> <whew>
> 
> Anyhow, mkproto.sh needs to be fixed to include static modules from the
> modules/ directory like it did earlier.  Otherwise, smbd panics.
I see. I'll fix this today.
-- 
/ Alexander Bokovoy
---
Machines have less problems.  I'd like to be a machine.
		-- Andy Warhol



More information about the samba-technical mailing list