Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 2001 15:20:03 -0800 (PST)
From:      Juraj Bednar <juraj@bednar.sk>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/25352: Libmcrypt crashes under certain circumstances (FreeBSD specific)
Message-ID:  <200102262320.f1QNK3549224@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/25352; it has been noted by GNATS.

From: Juraj Bednar <juraj@bednar.sk>
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<mcrypt.h>
 
 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102262320.f1QNK3549224>