SIGSEGV usually means a bad memory reference. This can be caused by incorrect pointer allocations or setings. Maybe this is caused by the changes I made to get rid of the warnings. After all I'm no c-programmer so I don't have a clue what I did :)) !

Let's take it from the top with a clean installation. I've configured nessus-libraries with --with-ssl=/opt/freeware, since this is where openssl is installed. Make and make install went OK.
I've configured libnasl also with --wit-ssl=/opt/freeware. Make gives the next warnings:


/bin/sh /export/compile_src/nessus.sav/libnasl/libtool --silent gcc -pipe -g -O2 `sh ./cflags` -c nasl_socket.c
nasl_socket.c: In function `nasl_open_privileged_socket':
nasl_socket.c:247: warning: passing arg 5 of `getsockopt' from incompatible pointer type


I've changed line 164     int opt, opt_sz;
into                             int opt;
                                 size_t opt_sz;
OK?

nasl_socket.c: In function `nasl_recv':
nasl_socket.c:401: warning: passing arg 5 of `getsockopt' from incompatible pointer type


I've changed line 387   int type = -1, opt_len = sizeof(type);
into                           int type = -1;
                               size_t  opt_len = sizeof(type);
OK?

nasl_socket.c: In function `nasl_send':
nasl_socket.c:570: warning: passing arg 5 of `getsockopt' from incompatible pointer type


I've changed line 555   int type, type_len = sizeof(type);
into                           int type;
                               size_t type_len = sizeof(type);
OK?

nasl_socket.c: In function `nasl_close_socket':
nasl_socket.c:607: warning: passing arg 5 of `getsockopt' from incompatible pointer type


I've changed line 594   int opt_len = sizeof(type);
into                           size_t opt_len = sizeof(type);
OK?

nasl_socket.c: In function `nasl_get_source_port':
nasl_socket.c:755: warning: passing arg 3 of `ngetsockname' from incompatible pointer type


I've changed line 739    int           i, s, fd, l;
into                            int           i, s, fd;
                                size_t l;
OK?

/bin/sh /export/compile_src/nessus.sav/libnasl/libtool --silent gcc -pipe -g -O2 `sh ./cflags` -c exec.c
exec.c: In function `execute_nasl_script':
exec.c:1822: warning: assignment discards qualifiers from pointer target type


I've deleted line 1808       char       *p;
I've changed line 1821       p = strrchr(name, '/');
into                                 char *p = strrchr(name, '/');
OK?

/bin/sh /export/compile_src/nessus.sav/libnasl/libtool --silent gcc -pipe -g -O2 `sh ./cflags` -c nasl_func.c
nasl_func.c: In function `insert_nasl_func':
nasl_func.c:100: warning: passing arg 4 of `qsort' from incompatible pointer type


I've left the warning as it is .....

Do you think these changes are OK, or should this be something different?




On Wed, Mar 16, 2005 at 04:36:57PM +0000, Gosse Wijbenga wrote:
> 868586:    3215395: _getpid()                              = 868586
> 868586:    3215395: _getppid()                             = 1
> 868586:        Received signal #11, SIGSEGV [caught]

Seems like a crash in nessus_init_random(). I have not idea on why it
may occur though.
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus

_________________________________________________________________
Nooit ongewenste berichten ontvangen: gebruik MSN Messenger http://messenger.msn.nl/


_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus

Reply via email to