OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: trivial-rewrite segfault, postfix-2.1-RC1-20040331

From: adi (adiimt.co.id)
Date: Wed Apr 07 2004 - 15:36:43 CDT


On Wed, Apr 07, 2004 at 04:04:34PM -0400, Wietse Venema wrote:
> line in the FREE_MEMORY_AND_RETURN macro. Until now this macro
> was invoked only after table lookup error.

that part that I don't understand, especially looking at the
macro itself. Actually, simply commenting that part solve
my problem :-)

anyway, here is gdb output:

(gdb) bt
#0 0xffffe002 in ?? ()
#1 0x4006d91c in multi_server_main (argc=-1073749920, argv=0xb,
    service=0x8049368 <rewrite_service>) at multi_server.c:701
#2 0x08049589 in main (argc=6, argv=0xbfffe2e4) at trivial-rewrite.c:397
#3 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6
(gdb) cont
Continuing.

Program received signal SIGSEGV, Segmentation fault.
tok822_free_tree (tp=0xffffffff) at tok822_tree.c:263
263 if (tp->next)
(gdb)

and strace output:

select(12, [11], NULL, [11], {3600, 0}) = 1 (in [11], left {3600, 0})
read(11, "request\0resolve\0address\0adimdgr.padient.com,adimdgr.padinet.com\0\0", 4096) = 67
--- SIGSEGV (Segmentation fault) 0 (0) ---

Regards,

P.Y. Adi Prasaja