Le 01/08/2014 10:50, Henri Doreau a écrit :
> 2014-07-30 22:39 GMT+02:00 red0queen <[email protected]>:
>> Le 30/07/2014 08:54, Henri Doreau a écrit :
>>
>> 2014-07-29 9:20 GMT+02:00 red0queen <[email protected]>:
>>
>> Thanks Henri, I do not know strace.
>> I've attach it to the stuck process, it fill me a log file with :
>>
>> 7562  recv(6, "", 5, 0)                 = 0
>> 7562  select(7, [6], NULL, NULL, {2, 0}) = 1 (in [6], left {1, 999998})
>> 7562  ioctl(6, FIONREAD, [1])           = 0
>> 7562  time(NULL)                        = 1406617706
>> 7562  time(NULL)                        = 1406617706
>> 7562  select(7, [6], [6], NULL, {1, 0}) = 2 (in [6], out [6], left {0,
>> 999998})
>> 7562  select(7, [6], NULL, NULL, {2, 0}) = 1 (in [6], left {1, 999999})
>> 7562  ioctl(6, FIONREAD, [1])           = 0
>> 7562  time(NULL)                        = 1406617706
>> 7562  time(NULL)                        = 1406617706
>>
>> The five last lines are repeated indefinitely.
>> It help someone to understand ? because me... no!
>>
>> Well, a bit but it doesn't show as much as I was hoping for. Looks
>> like this is somewhere in the network communication loop between
>> scanner & manager (lib/misc/network.c). Can you give a try at gstack
>> and dump the call stacks of the manager and scanner (gstack <pid>).
>> I'm not familiat with the master/slave code and logic but it might
>> give another hint...
>>
>> Debian have no gstack but pstack, sadly, it seems to be bugged. Do you know
>> another tool for doing that ?
>>
>> 3785: openvassd: Serving 127.0.0.1
>> (No symbols found in )
>> (No symbols found in /usr/lib/libgpgme.so.11)
>> (No symbols found in /lib/i386-linux-gnu/libgpg-error.so.0)
>> (No symbols found in /lib/i386-linux-gnu/libglib-2.0.so.0)
>> (No symbols found in /usr/lib/i386-linux-gnu/libgnutls.so.26)
>> (No symbols found in /lib/i386-linux-gnu/libc.so.6)
>> (No symbols found in /lib/i386-linux-gnu/libuuid.so.1)
>> (No symbols found in /usr/lib/i386-linux-gnu/libpcap.so.0.8)
>> (No symbols found in /lib/i386-linux-gnu/libgcrypt.so.11)
>> (No symbols found in /usr/lib/i386-linux-gnu/libgio-2.0.so.0)
>> (No symbols found in /usr/lib/i386-linux-gnu/libgobject-2.0.so.0)
>> (No symbols found in /lib/i386-linux-gnu/libz.so.1)
>> (No symbols found in /lib/i386-linux-gnu/libm.so.6)
>> (No symbols found in /usr/lib/i386-linux-gnu/libssh.so.4)
>> (No symbols found in /usr/lib/i386-linux-gnu/libksba.so.8)
>> (No symbols found in /lib/i386-linux-gnu/libpcre.so.3)
>> (No symbols found in /lib/i386-linux-gnu/librt.so.1)
>> (No symbols found in /usr/lib/i386-linux-gnu/libtasn1.so.3)
>> (No symbols found in /usr/lib/i386-linux-gnu/libp11-kit.so.0)
>> (No symbols found in /lib/ld-linux.so.2)
>> (No symbols found in /usr/lib/i386-linux-gnu/libgmodule-2.0.so.0)
>> (No symbols found in /lib/i386-linux-gnu/libselinux.so.1)
>> (No symbols found in /lib/i386-linux-gnu/libresolv.so.2)
>> (No symbols found in /usr/lib/i386-linux-gnu/libgthread-2.0.so.0)
>> (No symbols found in /usr/lib/i386-linux-gnu/libffi.so.5)
>> (No symbols found in /usr/lib/i386-linux-gnu/i686/cmov/libssl.so.1.0.0)
>> (No symbols found in /usr/lib/i386-linux-gnu/i686/cmov/libcrypto.so.1.0.0)
>> (No symbols found in /lib/i386-linux-gnu/libdl.so.2)
>> (No symbols found in /usr/lib/i386-linux-gnu/gconv/ISO8859-1.so)
>> crawl: Input/output error
>> Error tracing through process 3785
>>
>>
>> Which version of OpenVAS are you running BTW?
>>
>> Version 7
>>
>> Regards
>>
>> Henri
>>
>>
> You can attach gdb to a running process and issue the "bt" command to
> get similar results.
>
It seems better. The issue of the bt command :

#0  0xb72723c4 in ioctl () from /lib/i386-linux-gnu/libc.so.6
#1  0x08059437 in data_left (soc=6) at
/root/openvas-src/openvas-scanner-4.0.1/src/utils.c:260
#2  0x080594cd in is_client_present (soc=soc@entry=1000000) at
/root/openvas-src/openvas-scanner-4.0.1/src/utils.c:245
#3  0x0805123d in comm_wait_order (globals=globals@entry=0xacc1e58) at
/root/openvas-src/openvas-scanner-4.0.1/src/comm.c:370
#4  0x08054670 in handle_client (globals=0xacc1e58) at
/root/openvas-src/openvas-scanner-4.0.1/src/openvassd.c:404
#5  scanner_thread (globals=0xacc1e58) at
/root/openvas-src/openvas-scanner-4.0.1/src/openvassd.c:483
#6  0x08057af5 in create_process (function=function@entry=0x8054300
<scanner_thread>, argument=argument@entry=0xacc1e58)
    at /root/openvas-src/openvas-scanner-4.0.1/src/processes.c:93
#7  0x0804e073 in main_loop () at
/root/openvas-src/openvas-scanner-4.0.1/src/openvassd.c:599
#8  main (argc=1, argv=0xbf884944) at
/root/openvas-src/openvas-scanner-4.0.1/src/openvassd.c:927

regards

Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to