From owner-freebsd-ports Mon Feb 26 15:20:11 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8A78037B67D for ; Mon, 26 Feb 2001 15:20:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1QNK3549224; Mon, 26 Feb 2001 15:20:03 -0800 (PST) (envelope-from gnats) Date: Mon, 26 Feb 2001 15:20:03 -0800 (PST) Message-Id: <200102262320.f1QNK3549224@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Juraj Bednar Subject: Re: ports/25352: Libmcrypt crashes under certain circumstances (FreeBSD specific) Reply-To: Juraj Bednar Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/25352; it has been noted by GNATS. From: Juraj Bednar To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/25352: Libmcrypt crashes under certain circumstances (FreeBSD specific) Date: Tue, 27 Feb 2001 00:14:10 +0100 I've done some research. This code fails to run (segfaults with the same symptoms as PHP): #include main() { mcrypt_module_open("tripledes","/usr/local/lib/libmcrypt/algorithms","ecb","/usr/local/lib/libmcryp t/modes"); } Anyway, what's interesting -> I have the module tripledes installed correctly (even in that directory). But even the bundled ciphertest program does not find any working algorithms under freebsd 4.2. Everything works under Linux, so this is probably portability issue. This is the stack trace of the above program crashing: #0 0x0 in ?? () #1 0x2806831d in mcrypt_enc_is_block_algorithm_mode (td=0x804b000) at mcrypt_modules.c:436 #2 0x28067a70 in mcrypt_module_open (algorithm=0x8048604 "tripledes", a_directory=0x80485e0 "/usr/local/lib/libmcrypt/algorithms", mode=0x80485bf "ecb", m_directory=0x80485a0 "/usr/local/lib/libmcrypt/modes") at mcrypt_modules.c:169 #3 0x804852b in main () at test.c:5 #4 0x8048471 in _start () Anyway, now I'm really sure, this is freebsd-specific. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message