Hello, all.  I've installed openvas from source on ubuntu 8.0.4 (fully
patched) on amd64.  However, after installing, making a cert, adding a
user, downloading the plugins, I cannot get openvasd to start.  I have
tried with and without the -D and I do not see it running.  However, it
also gives not indication of why it fails.  It does successfully load
all plugins (although some plugins dependent upon various functions like
smb_func (I think) did not load the first time).  However, then it just
returns to the command prompt even with the -D:

[EMAIL PROTECTED]:~/openvas$ sudo openvasd
All plugins loaded
[EMAIL PROTECTED]:~/openvas$  

A check in the logs shows:

[Tue Dec  9 22:02:13 2008][12349] received the SEGV signal
[Tue Dec  9 22:02:52 2008][12483] received the SEGV signal
[Tue Dec  9 22:07:12 2008][12621] received the SEGV signal

When I ran it through strace the first time, it seemed to be complaining
about gnupg and pubring even though nasl_no_signature_check = yes.

I imported the key from the openvas site and it no longer gives that
error.  I do not know much about using strace to troubleshoot but here
is the end of the main thread:

stat("/usr/local/var/lib/openvas/services.udp", {st_mode=S_IFREG|0644, 
st_size=580008, ...}) = 0
stat("/usr/local/var/lib/openvas/openvas-services", {st_mode=S_IFREG|0444, 
st_size=166278, ...}) = 0
stat("/usr/local/var/lib/openvas/openvas-services", {st_mode=S_IFREG|0444, 
st_size=166278, ...}) = 0
open("/usr/local/var/run/openvasd.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
fstat(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fc541dcf000
write(5, "12483\n", 6)                  = 6
close(5)                                = 0
munmap(0x7fc541dcf000, 4096)            = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigaction(SIGSEGV, {0x4092a8, [SEGV], SA_RESTORER|SA_RESTART, 
0x7fc542b41100}, {0x40de74, ~[KILL ALRM STOP RTMIN RT_1], SA_RESTORER, 
0x7fc542b41100}, 8) = 0

The last thread ends:
write(5, "[GNUPG:] TRUST_UNDEFINED\n", 25) = 25
write(2, "gpg: ", 5)                    = 5
write(2, "WARNING: This key is not certifi"..., 61) = 61
write(2, "gpg: ", 5)                    = 5
write(2, "         There is no indication "..., 73) = 73
gettimeofday({1228878171, 942599}, NULL) = 0
getrusage(RUSAGE_SELF, {ru_utime={0, 4000}, ru_stime={0, 0}, ...}) = 0
gettimeofday({1228878171, 942679}, NULL) = 0
times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1721617683
write(2, "Primary key fingerprint:", 24) = 24
write(2, " C3B4", 5)                    = 5
write(2, " 68D2", 5)                    = 5
write(2, " 288C", 5)                    = 5
write(2, " 68B9", 5)                    = 5
write(2, " D526", 5)                    = 5
write(2, " ", 1)                        = 1
write(2, " 4522", 5)                    = 5
write(2, " 4847", 5)                    = 5
write(2, " 9FF6", 5)                    = 5
write(2, " 48DB", 5)                    = 5
write(2, " 4530", 5)                    = 5
write(2, "\n", 1)                       = 1
munmap(0x7fdfca22c000, 32768)           = 0
unlink("/usr/local/etc/openvas/gnupg/.#lk0x6f2430.jaspav.missionsit.net.12611") 
= 0
exit_group(0)                           = ?

I assume this is successful so I'll back through the previous threads.
As I do, it appears it did the above process over and over again.
As I look over the primary thread, it seems each of these must have been
spawned when it encountered a signed plugin.

This must be the end of the plugin load:
munmap(0x7fc541dcd000, 12080)           = 0
close(4)                                = 0
stat("/usr/local/lib/openvas/plugins/deb_1444_2.nasl", {st_mode=S_IFREG|0444, 
st_size=4926, ...}) = 0
stat("/usr/local/lib/openvas/plugins/.desc/deb_1444_2.desc", 
{st_mode=S_IFREG|0644, st_size=12080, ...}) = 0
stat("/usr/local/lib/openvas/plugins/deb_1444_2.nasl.asc", 
{st_mode=S_IFREG|0644, st_size=189, ...}) = 0
open("/usr/local/lib/openvas/plugins/.desc/deb_1444_2.desc", O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=12080, ...}) = 0
mmap(NULL, 12080, PROT_READ, MAP_SHARED, 4, 0) = 0x7fc541dcd000
munmap(0x7fc541dcd000, 12080)           = 0
close(4)                                = 0
gettimeofday({1228878172, 411408}, NULL) = 0
write(1, "\rAll plugins loaded             "..., 55) = 55

And then we get this:
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 4
setsockopt(4, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(4, {sa_family=AF_INET, sin_port=htons(1241), 
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
listen(4, 10)                           = 0
rt_sigaction(SIGSEGV, {0x40de74, ~[ALRM RTMIN RT_1], SA_RESTORER, 
0x7fc542b41100}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {0x40ddfe, ~[ALRM RTMIN RT_1], SA_RESTORER, 
0x7fc542b41100}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x40de74, ~[ALRM RTMIN RT_1], SA_RESTORER, 
0x7fc542b41100}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x40de74, ~[ALRM RTMIN RT_1], SA_RESTORER, 
0x7fc542b41100}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x416c14, ~[ALRM RTMIN RT_1], SA_RESTORER, 
0x7fc542b41100}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR1, {0x40de74, ~[ALRM RTMIN RT_1], SA_RESTORER, 
0x7fc542b41100}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
stat("/usr/local/var/lib/openvas/services.tcp", {st_mode=S_IFREG|0644, 
st_size=591492, ...}) = 0
open("/usr/local/var/lib/openvas/services.tcp", O_RDONLY) = 5
mmap(NULL, 591492, PROT_READ, MAP_SHARED, 5, 0) = 0x7fc541d3f000
munmap(0x7fc541d3f000, 591492)          = 0
close(5)                                = 0

Any idea what we've done wrong? Thanks - John
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
[EMAIL PROTECTED]

http://www.spiritualoutreach.com
Making Christianity intelligible to secular society

_______________________________________________
Openvas-discuss mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss

Reply via email to