Re: electricfence/malloc() query

2006-03-14 Thread Alexander Hall
Gongalo Ferreira wrote: I'm not a C programmer, but I actually don't see nothing wrong with that code... Could you point the error out? Ah. Took me a few moments, but... Marco Peereboom wrote: #include #include struct moo { u_int32_t a, b, c, d; chare[44

Re: electricfence/malloc() query

2006-03-14 Thread Gonçalo Ferreira
I'm not a C programmer, but I actually don't see nothing wrong with that code... Could you point the error out? Marco Peereboom wrote: #include #include struct moo { u_int32_t a, b, c, d; chare[44]; }; int main(int argc, char *argv[]) { struct moo

Re: electricfence/malloc() query

2006-03-14 Thread Marco Peereboom
I am not an expert at all finding these bugs but I can tell you of an anecdote in some code that I maintain. This is a large application that would fail seemingly random under a fair amount of stress. The odd thing is that this app, which runs on multiple OS' seemed to work on RHEL3, AS 2.1,

Re: electricfence/malloc() query

2006-03-14 Thread Otto Moerbeek
On Tue, 14 Mar 2006, Edd Barrett wrote: > Hello people, > > I wish to query the usefullness (if thats not a made up word) of > electricfence on OpenBSD. I have a program which works great when not linked > against -lefence, but gives a bus error otherwise (not as a result of my > code, but in lib