problems with a C script, exiting with signal 10

2008-08-07 Thread Jordi Moles Blanco
Hi, I've got this home-made script, written in C, on a Freebsd 7.0 server with different versions of postfix: 2.3,2,4 and 2.5 The problem is that, while most of the time it works like a charm, sometimes it crashes and bounces the message. It's not really a big deal, cause the sender gets no

Re: problems with a C script, exiting with signal 10

2008-08-07 Thread Patrick Mahan
Jordi Moles Blanco presented these words - circa 8/7/08 3:13 AM-> Hi, I've got this home-made script, written in C, on a Freebsd 7.0 server with different versions of postfix: 2.3,2,4 and 2.5 The problem is that, while most of the time it works like a charm, sometimes it crashes and bounc

Re: problems with a C script, exiting with signal 10

2008-08-08 Thread Jordi Moles Blanco
Hi, thanks for the reply, i will have a close look at what you suggested. The thing is that, yes, i work with arrays, pointers, mallocs and so on. I'll try to make sure everything is initiliazed properly before being used. Thanks for the advice. En/na Patrick Mahan ha escrit: Jordi Mol

Re: problems with a C script, exiting with signal 10

2008-08-11 Thread Jordi Moles Blanco
Hi, i've been trying to debug what you suggested, but no luck so far :( The thing is that i checked out all the calls to arrays, space handling and so on, and i couldn't find anything wrong. After that, i ended up trying the "hard" way, which is to keep a file /tmp/debug.log where the script