David.Collier-Brown at canada.sun.com
Mon Jul 17 14:56:57 GMT 2000
Gerald Carter wrote:
> > Has anyone every seen a call to malloc() result in a
> > seg fault? Very confused...
Yup: something whacked the allocated area, replacing a
pointer in the malloc header with junk. I used to see this
on SunOS a lot.
Have you a debugging malloc? If so, put it in, run the
program under strace and see if it reports an overwrite
in the same place each time...
David Collier-Brown, | Always do right. This will gratify some people
185 Ellerslie Ave., | and astonish the rest. -- Mark Twain
Willowdale, Ontario | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com
More information about the samba-technical