Menu

#35 Segmentation fault at Common/Crypt/twofish.c:504

open
nobody
Compiling (4)
5
2006-02-28
2006-02-28
R. Ewald
No

Hello everybody,

I'm using MIDAS for a while now and I am quite happy
with it. But now I have some problems with a new
dual-core opteron.
MIDASc/n/s compile without any warnings, They even work
as long as I don't specify a key. But as soon as I want
encrypted communication the daemons segfault.

At first I tried strace which says:
[..]
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
gettimeofday({1141137014, 467697}, NULL) = 0
getpid() = 12774
open("/etc/resolv.conf", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=108, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaaaac4000
read(4, "search mydomain\nna"..., 4096) = 108
read(4, "", 4096) = 0
close(4) = 0
munmap(0x2aaaaaac4000, 4096) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(12345),
sin_addr=inet_addr("m.y.i.p")}, 16) = 0
select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3],
left {0, 964000})
read(3, "MIDASd v2.2f connection accepted"..., 65533) = 34
open("/usr/local/MIDAS/etc/MIDAS.key", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2aaaaaac4000
read(4, "842006db5bf9240939cb7f734e9c9ed3"..., 4096) = 64
read(4, "", 4096) = 0
close(4) = 0
munmap(0x2aaaaaac4000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++

Then I tried gdb:
Program received signal SIGSEGV, Segmentation fault.
0x00000000004103ee in reKey (key=0xffff80000115dbee) at
Common/Crypt/twofish.c:504
504 sb256(0);

I used the sources from 2.2f as well as 2.3a-beta4.
Is there anyone who got this too or even found a solution?

Robert

Discussion


Log in to post a comment.

MongoDB Logo MongoDB