[Bug 692733] Review Request: openvas-cli - Command-line tool to drive OpenVAS Manager

bugzilla at redhat.com bugzilla at redhat.com
Tue Jan 24 16:05:02 UTC 2012


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=692733

--- Comment #5 from Michal Ambroz <rebus at seznam.cz> 2012-01-24 11:04:57 EST ---
Tool omp has got problem to connect and authenticate to the openvas-manager.
Code is somewhere in openvas-libraries (omp/*). 

Maybe we hit another gnutls 2.12 bug/feature as this is working with different
versions of gnutls.

Authentication details get sent to server, but server directly responds with
with ACK, FIN. If I send the same data over gnutls-cli everything works fine. 
The omp client then hangs forever.

----------- back trace from omp  --------------
Program received signal SIGINT, Interrupt.
0x00110424 in __kernel_vsyscall ()
(gdb) bt
#0  0x00110424 in __kernel_vsyscall ()
#1  0x4b6c9da1 in recv () at ../sysdeps/unix/sysv/linux/i386/socket.S:61
#2  0x434e6614 in recv (__flags=0, __n=5, __buf=0x80683a0, __fd=10) at
/usr/include/bits/socket2.h:45
#3  system_read (ptr=0xa, data=0x80683a0, data_size=5) at system.c:99
#4  0x434ba13b in _gnutls_read (session=0x8060ca8, bufel=0xbfffee3c, size=5,
pull_func=0x434e65e0 <system_read>) at gnutls_buffers.c:318
#5  0x434baa7a in _gnutls_io_read_buffered (session=0x8060ca8, total=5,
recv_type=4294967295) at gnutls_buffers.c:564
#6  0x434b6d80 in _gnutls_recv_int (session=0x8060ca8,
type=GNUTLS_APPLICATION_DATA, htype=4294967295, data=0x21b040 "",
sizeofdata=1048576) at gnutls_record.c:956
#7  0x434b7e4c in gnutls_record_recv (session=0x8060ca8, data=0x21b040,
sizeofdata=1048576) at gnutls_record.c:1246
#8  0x00213e1b in try_read_entity_and_string (session=0x8051858, timeout=0,
entity=0xbffff01c, string_return=0x0)
    at /home/mambroz/rpmbuild/BUILD/openvas-libraries-4.0.6/omp/xml.c:492
#9  0x00214414 in try_read_entity (session=0x8051858, timeout=0,
entity=0xbffff01c) at
/home/mambroz/rpmbuild/BUILD/openvas-libraries-4.0.6/omp/xml.c:688
#10 0x0021444c in read_entity (session=0x8051858, entity=0xbffff01c) at
/home/mambroz/rpmbuild/BUILD/openvas-libraries-4.0.6/omp/xml.c:702
#11 0x00214ea0 in omp_authenticate (session=0x8051858, username=0x8051540
"aaa", password=0x8051580 "bbb") at
/home/mambroz/rpmbuild/BUILD/openvas-libraries-4.0.6/omp/omp.c:213
#12 0x0804b45b in manager_open (connection=0x8051858) at
/home/mambroz/rpmbuild/BUILD/openvas-cli-1.1.4/omp/omp.c:189
#13 0x0804a70d in main (argc=1, argv=0xbffff164) at
/home/mambroz/rpmbuild/BUILD/openvas-cli-1.1.4/omp/omp.c:1411

----------- back trace from gsd -----------------
#0  0x00110424 in __kernel_vsyscall ()
#1  0x4b6c9dc8 in recv () at ../sysdeps/unix/sysv/linux/i386/socket.S:97
#2  0x434e6614 in recv (__flags=0, __n=5, __buf=0x84abe50, __fd=19) at
/usr/include/bits/socket2.h:45
#3  system_read (ptr=0x13, data=0x84abe50, data_size=5) at system.c:99
#4  0x434ba13b in _gnutls_read (session=0x84ac038, bufel=0xbfffddcc, size=5,
pull_func=0x434e65e0 <system_read>) at gnutls_buffers.c:318
#5  0x434baa7a in _gnutls_io_read_buffered (session=0x84ac038, total=5,
recv_type=4294967295) at gnutls_buffers.c:564
#6  0x434b6d80 in _gnutls_recv_int (session=0x84ac038,
type=GNUTLS_APPLICATION_DATA, htype=4294967295, data=0x21b040 "",
sizeofdata=1048576) at gnutls_record.c:956
#7  0x434b7e4c in gnutls_record_recv (session=0x84ac038, data=0x21b040,
sizeofdata=1048576) at gnutls_record.c:1246
#8  0x00213e1b in try_read_entity_and_string (session=0x8345364, timeout=0,
entity=0xbfffdfac, string_return=0x0)
    at /home/mambroz/rpmbuild/BUILD/openvas-libraries-4.0.6/omp/xml.c:492
#9  0x00214414 in try_read_entity (session=0x8345364, timeout=0,
entity=0xbfffdfac) at
/home/mambroz/rpmbuild/BUILD/openvas-libraries-4.0.6/omp/xml.c:688
#10 0x0021444c in read_entity (session=0x8345364, entity=0xbfffdfac) at
/home/mambroz/rpmbuild/BUILD/openvas-libraries-4.0.6/omp/xml.c:702
#11 0x00214ea0 in omp_authenticate (session=0x8345364, username=0x81fddd8 "",
password=0x81fddd8 "") at
/home/mambroz/rpmbuild/BUILD/openvas-libraries-4.0.6/omp/omp.c:213
#12 0x08138aa5 in omp_basic::authenticate (this=0xfffffe00, name=..., pwd=...)
at /usr/src/debug/gsd-1.2.1/src/omp_basic.cpp:103
#13 0x08138bc5 in omp_basic::openConnection (this=0x8345360) at
/usr/src/debug/gsd-1.2.1/src/omp_basic.cpp:126
#14 0x08139a15 in omp_connector::authenticate (this=0x8345520) at
/usr/src/debug/gsd-1.2.1/src/omp_connector.cpp:223
#15 0x080bff46 in gsd_control::check_server (this=0x833e248, addr=...,
port=9390, user=..., pwd=...) at
/usr/src/debug/gsd-1.2.1/src/gsd_control.cpp:497
#16 0x08161313 in gsd_control::qt_static_metacall (_o=0x833e248,
_c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbfffe23c) at
/usr/src/debug/gsd-1.2.1/src/moc_gsd_control.cxx:192
#17 0x42029ea1 in QMetaObject::activate(QObject*, QMetaObject const*, int,
void**) () from /usr/lib/libQtCore.so.4
#18 0x08164970 in gsd_dlg::sig_check_server (this=0x83786d0, _t1=..., _t2=9390,
_t3=..., _t4=...) at /usr/src/debug/gsd-1.2.1/src/moc_gsd_dlg.cxx:196
#19 0x0811982c in gsd_dlg::check_server (this=0x83786d0, address=...,
port=9390, user=..., password=...) at
/usr/src/debug/gsd-1.2.1/src/gsd_dlg.cpp:607
#20 0x08164e3a in gsd_dlg::qt_static_metacall (_o=0x83786d0,
_c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfffe40c) at
/usr/src/debug/gsd-1.2.1/src/moc_gsd_dlg.cxx:114
#21 0x42029ea1 in QMetaObject::activate(QObject*, QMetaObject const*, int,
void**) () from /usr/lib/libQtCore.so.4
#22 0x08167020 in dlg_login::sig_check_server (this=0x844fd60, _t1=...,
_t2=9390, _t3=..., _t4=...) at
/usr/src/debug/gsd-1.2.1/src/moc_gsd_dialogs.cxx:287
#23 0x0812e07d in dlg_login::checkServer (this=0x844fd60) at
/usr/src/debug/gsd-1.2.1/src/gsd_dialogs.cpp:355
#24 0x081670d8 in dlg_login::qt_static_metacall (_o=0x844fd60,
_c=QMetaObject::InvokeMetaMethod, _id=5, _a=0xbfffe608) at
/usr/src/debug/gsd-1.2.1/src/moc_gsd_dialogs.cxx:206
#25 0x42029ea1 in QMetaObject::activate(QObject*, QMetaObject const*, int,
void**) () from /usr/lib/libQtCore.so.4
#26 0x44f272b6 in QLineEdit::textChanged(QString const&) () from
/usr/lib/libQtGui.so.4
#27 0x44f27677 in ?? () from /usr/lib/libQtGui.so.4
#28 0x42029ea1 in QMetaObject::activate(QObject*, QMetaObject const*, int,
void**) () from /usr/lib/libQtCore.so.4
#29 0x451daf56 in QLineControl::textChanged(QString const&) () from
/usr/lib/libQtGui.so.4
#30 0x44f2c93a in QLineControl::finishChange(int, bool, bool) () from
/usr/lib/libQtGui.so.4
#31 0x44f2cc13 in QLineControl::internalSetText(QString const&, int, bool) ()
from /usr/lib/libQtGui.so.4
#32 0x44f248bd in QLineEdit::setText(QString const&) () from
/usr/lib/libQtGui.so.4
#33 0x081195b3 in gsd_dlg::login_update (this=0x83786d0, index=-512) at
/usr/src/debug/gsd-1.2.1/src/gsd_dlg.cpp:576
#34 0x08164f4f in gsd_dlg::qt_static_metacall (_o=0x83786d0,
_c=QMetaObject::InvokeMetaMethod, _id=4, _a=0xbfffe9b8) at
/usr/src/debug/gsd-1.2.1/src/moc_gsd_dlg.cxx:112
#35 0x42029ea1 in QMetaObject::activate(QObject*, QMetaObject const*, int,
void**) () from /usr/lib/libQtCore.so.4
#36 0x08166f38 in dlg_login::sig_profile_selected (this=0x844fd60, _t1=0) at
/usr/src/debug/gsd-1.2.1/src/moc_gsd_dialogs.cxx:266
#37 0x081670c9 in dlg_login::qt_static_metacall (_o=0x844fd60,
_c=QMetaObject::InvokeMetaMethod, _id=6, _a=0xbfffeb08) at
/usr/src/debug/gsd-1.2.1/src/moc_gsd_dialogs.cxx:207
#38 0x42029ea1 in QMetaObject::activate(QObject*, QMetaObject const*, int,
void**) () from /usr/lib/libQtCore.so.4
#39 0x44ee6326 in QComboBox::currentIndexChanged(int) () from
/usr/lib/libQtGui.so.4
#40 0x44ee63c0 in ?? () from /usr/lib/libQtGui.so.4
#41 0x44ee66b3 in ?? () from /usr/lib/libQtGui.so.4
#42 0x44ee67d8 in QComboBox::setCurrentIndex(int) () from
/usr/lib/libQtGui.so.4
#43 0x44ee807b in ?? () from /usr/lib/libQtGui.so.4
#44 0x42029ea1 in QMetaObject::activate(QObject*, QMetaObject const*, int,
void**) () from /usr/lib/libQtCore.so.4
#45 0x4207d406 in QAbstractItemModel::rowsInserted(QModelIndex const&, int,
int) () from /usr/lib/libQtCore.so.4
#46 0x4200e07f in QAbstractItemModel::endInsertRows() () from
/usr/lib/libQtCore.so.4
#47 0x450f38c7 in ?? () from /usr/lib/libQtGui.so.4
#48 0x450f3b51 in ?? () from /usr/lib/libQtGui.so.4

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

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the package-review mailing list