[Openvas-devel] [openvas-Bugs][1079] openvasd fails to start with gpgme 1.2.0

openvas-bugs@wald.intevation.org openvas-bugs at wald.intevation.org
Sat Aug 8 14:44:39 CEST 2009


Bugs item #1079, was opened at 2009-08-08 14:44
Status: Open
Priority: 3
Submitted By: Hanno Boeck (hannob)
Assigned to: Nobody (None)
Summary: openvasd fails to start with gpgme 1.2.0 
Architecture: None
Resolution: None
Severity: None
Version: None
Component: openvas-libnasl
Operating System: None
Product: None
Hardware: None
URL: 


Initial Comment:
I'm using all the latest releases of openvas-* on Gentoo Linux.

When starting openvasd, I get a segfault. Reading strace-Output, it seems to have something to do with gpgme. After downgrading gpgme to 1.1.8, it works.

Interesting, when just using the plugins delivered with latest openvas-plugins-release, it works, though if I sync the plugins, the segfault appears.

output:

libertalia ~ # openvasd
store_init(): called with NULL
Loading the plugins... 1275 (out of 12655)[24213]() gpgme_new failed: User defined source 1/Not operational
Segmentation fault

some strace output:

stat("/usr/lib64/openvas/plugins/glsa_200903_33.nasl", {st_mode=S_IFREG|0444, st_size=3643, ...}) = 0
stat("/usr/lib64/openvas/plugins/.desc/glsa_200903_33.nasl.desc", {st_mode=S_IFREG|0644, st_size=12080, ...}) = 0
stat("/usr/lib64/openvas/plugins/glsa_200903_33.nasl.asc", {st_mode=S_IFREG|0644, st_size=189, ...}) = 0
open("/usr/lib64/openvas/plugins/.desc/glsa_200903_33.nasl.desc", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=12080, ...}) = 0
mmap(NULL, 12080, PROT_READ, MAP_SHARED, 4, 0) = 0x7f97bd6cc000
munmap(0x7f97bd6cc000, 12080)           = 0
close(4)                                = 0
stat("/usr/lib64/openvas/plugins/gb_mandriva_MDKA_2007_109.nasl", {st_mode=S_IFREG|0444, st_size=3597, ...}) = 0
stat("/usr/lib64/openvas/plugins/.desc/gb_mandriva_MDKA_2007_109.nasl.desc", {st_mode=S_IFREG|0644, st_size=12080, ...}) = 0
stat("/usr/lib64/openvas/plugins/gb_mandriva_MDKA_2007_109.nasl.asc", {st_mode=S_IFREG|0644, st_size=189, ...}) = 0
open("/usr/lib64/openvas/plugins/.desc/gb_mandriva_MDKA_2007_109.nasl.desc", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=12080, ...}) = 0
mmap(NULL, 12080, PROT_READ, MAP_SHARED, 4, 0) = 0x7f97bd6cc000
munmap(0x7f97bd6cc000, 12080)           = 0
close(4)                                = 0
stat("/usr/lib64/openvas/plugins/W32.Sasser.Worm.nasl", {st_mode=S_IFREG|0444, st_size=1673, ...}) = 0
stat("/usr/lib64/openvas/plugins/.desc/W32.Sasser.Worm.nasl.desc", 0x7fff45db0920) = -1 ENOENT (No such file or directory)
pipe([4, 6])                            = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f97bd6927c0) = 24234
wait4(24234, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 24234
--- SIGCHLD (Child exited) @ 0 (0) ---
close(6)                                = 0
read(4, "gpg (GnuPG) 2.0.11\nlibgcrypt 1.4."..., 79) = 79
close(4)                                = 0
pipe([4, 6])                            = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f97bd6927c0) = 24236
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(24236, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 24236
close(6)                                = 0
read(4, "gpgsm (GnuPG) 2.0.11\nlibgcrypt 1."..., 79) = 79
close(4)                                = 0
pipe([4, 6])                            = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f97bd6927c0) = 24238
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(24238, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 24238
close(6)                                = 0
read(4, "gpgconf (GnuPG) 2.0.11\nCopyright "..., 79) = 79
close(4)                                = 0
pipe([4, 6])                            = 0
fcntl(4, F_SETFD, FD_CLOEXEC)           = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f97bd6927c0) = 24240
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(24240, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 24240
close(6)                                = 0
read(4, "sysconfdir:/etc/gnupg\nbindir:/usr"..., 1023) = 240
read(4, ""..., 1023)                    = 0
close(4)                                = 0
getpid()                                = 24232
write(2, "[24232]() gpgme_new failed: User "..., 66[24232]() gpgme_new failed: User defined source 1/Not operational
) = 66
stat("/usr/lib64/openvas/plugins/W32.Sasser.Worm.nasl", {st_mode=S_IFREG|0444, st_size=1673, ...}) = 0
open("/usr/lib64/openvas/plugins/W32.Sasser.Worm.nasl", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0444, st_size=1673, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f97bd6ce000
lseek(4, 0, SEEK_SET)                   = 0
read(4, "\nexit(0); # moved into smb_virii."..., 4096) = 1673
close(4)                                = 0
munmap(0x7f97bd6ce000, 4096)            = 0
stat("/usr/lib64/openvas/plugins/W32.Sasser.Worm.nasl.asc", {st_mode=S_IFREG|0644, st_size=189, ...}) = 0
open("/usr/lib64/openvas/plugins/W32.Sasser.Worm.nasl.asc", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=189, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f97bd6ce000
lseek(4, 0, SEEK_SET)                   = 0
read(4, "-----BEGIN PGP SIGNATURE-----\nVer"..., 4096) = 189
close(4)                                = 0
munmap(0x7f97bd6ce000, 4096)            = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


----------------------------------------------------------------------

You can respond by visiting: 
http://wald.intevation.org/tracker/?func=detail&atid=220&aid=1079&group_id=29


More information about the Openvas-devel mailing list