Home
DevCentral
Search
Configure Global Search
Log In
Transactions
T1010
Change Details
Change Details
Old
New
Diff
When using in TCL `mq connect <host>`: ```name=With incorrect credentials $ valgrind tclsh --track-origins=yes ==24458== Memcheck, a memory error detector ==24458== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==24458== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info ==24458== Command: tclsh --track-origins=yes ==24458== % load ./rabbitmq.so % mq connected 0 % mq connect localhost Can't connect to the broker. % mq connect white-rabbit.nasqueron.org ==24458== Conditional jump or move depends on uninitialised value(s) ==24458== at 0x6618EDE: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24458== by 0x6618D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==24458== by 0x6406FEC: mq_connect (rabbitmq-tcl.c:366) ==24458== by 0x64067DD: call_mq_command (rabbitmq-tcl.c:263) ==24458== by 0x6408020: mq_command (rabbitmq-tcl.c:234) … ==24458== ==24458== Conditional jump or move depends on uninitialised value(s) ==24458== at 0x66194D7: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24458== by 0x6618D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==24458== by 0x6406FEC: mq_connect (rabbitmq-tcl.c:366) ==24458== by 0x64067DD: call_mq_command (rabbitmq-tcl.c:263) ==24458== by 0x6408020: mq_command (rabbitmq-tcl.c:234) … Can't login to the broker. ``` ```name=With correct credentials $ valgrind ./eggdrop-1.8.0 -nt Oberon/eggdrop.conf [...] .tcl source scripts/Wearg/Broker.tcl .tcl source scripts/Wearg/Notifications.tcl .tcl broker::init ==24002== Conditional jump or move depends on uninitialised value(s) ==24002== at 0x9E06EDE: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9E06D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9BF4FEC: mq_connect (rabbitmq-tcl.c:366) ==24002== by 0x9BF47DD: call_mq_command (rabbitmq-tcl.c:263) ==24002== by 0x9BF6020: mq_command (rabbitmq-tcl.c:234) … ==24002== ==24002== Conditional jump or move depends on uninitialised value(s) ==24002== at 0x9E074D7: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9E06D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9BF4FEC: mq_connect (rabbitmq-tcl.c:366) ==24002== by 0x9BF47DD: call_mq_command (rabbitmq-tcl.c:263) ==24002== by 0x9BF6020: mq_command (rabbitmq-tcl.c:234) … ``` NOTE: Error occurs only once per interpreter.
IMPORTANT: This scenario should be repro with a debug version of the library. When using in TCL `mq connect <host>`: ```name=Without providing credentials $ valgrind --track-origins=yes tclsh ==24487== Memcheck, a memory error detector ==24487== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==24487== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info ==24487== Command: tclsh ==24487== % load /home/surfboard/rabbitmq.so % mq connected 0 % mq connect localhost Can't connect to the broker. % mq connect white-rabbit.nasqueron.org ==24487== Conditional jump or move depends on uninitialised value(s) ==24487== at 0x6618EDE: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24487== by 0x6618D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==24487== by 0x6406FEC: mq_connect (rabbitmq-tcl.c:366) ==24487== by 0x64067DD: call_mq_command (rabbitmq-tcl.c:263) ==24487== by 0x6408020: mq_command (rabbitmq-tcl.c:234) … ==24487== Uninitialised value was created by a stack allocation ==24487== at 0x6618DBD: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24487== ==24487== Conditional jump or move depends on uninitialised value(s) ==24487== at 0x66194D7: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24487== by 0x6618D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==24487== by 0x6406FEC: mq_connect (rabbitmq-tcl.c:366) ==24487== by 0x64067DD: call_mq_command (rabbitmq-tcl.c:263) ==24487== by 0x6408020: mq_command (rabbitmq-tcl.c:234) … ==24487== Uninitialised value was created by a stack allocation ==24487== at 0x6618DB6: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24487== Can't login to the broker. ``` ```name=With correct credentials $ valgrind ./eggdrop-1.8.0 -nt Oberon/eggdrop.conf [...] .tcl source scripts/Wearg/Broker.tcl .tcl source scripts/Wearg/Notifications.tcl .tcl broker::init ==24002== Conditional jump or move depends on uninitialised value(s) ==24002== at 0x9E06EDE: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9E06D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9BF4FEC: mq_connect (rabbitmq-tcl.c:366) ==24002== by 0x9BF47DD: call_mq_command (rabbitmq-tcl.c:263) ==24002== by 0x9BF6020: mq_command (rabbitmq-tcl.c:234) … ==24002== ==24002== Conditional jump or move depends on uninitialised value(s) ==24002== at 0x9E074D7: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9E06D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9BF4FEC: mq_connect (rabbitmq-tcl.c:366) ==24002== by 0x9BF47DD: call_mq_command (rabbitmq-tcl.c:263) ==24002== by 0x9BF6020: mq_command (rabbitmq-tcl.c:234) … ``` NOTE: Error occurs only once per interpreter.
IMPORTANT: This scenario should be repro with a debug version of the library.
When using in TCL `mq connect <host>`: ```name=With
incorrect
out providing
credentials $ valgrind
tclsh
--track-origins=ye
s
s tclsh
==244
58
87
== Memcheck, a memory error detector ==244
58
87
== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==244
58
87
== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info ==244
58
87
== Command: tclsh
--track-origins=yes
==244
58==
87==
% load
.
/home/surfboard
/rabbitmq.so % mq connected 0 % mq connect localhost Can't connect to the broker. % mq connect white-rabbit.nasqueron.org ==244
58==
87==
Conditional jump or move depends on uninitialised value(s) ==244
58
87
== at 0x6618EDE: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==244
58==
87==
by 0x6618D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==244
58==
87==
by 0x6406FEC: mq_connect (rabbitmq-tcl.c:366) ==244
58==
87==
by 0x64067DD: call_mq_command (rabbitmq-tcl.c:263) ==244
58==
87==
by 0x6408020: mq_command (rabbitmq-tcl.c:234) … ==244
58
87== Uninitialised value was created by a stack allocation ==24487== at 0x6618DBD: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24487
== ==244
58==
87==
Conditional jump or move depends on uninitialised value(s) ==244
58
87
== at 0x66194D7: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==244
58==
87==
by 0x6618D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==244
58==
87==
by 0x6406FEC: mq_connect (rabbitmq-tcl.c:366) ==244
58==
87==
by 0x64067DD: call_mq_command (rabbitmq-tcl.c:263) ==244
58==
87==
by 0x6408020: mq_command (rabbitmq-tcl.c:234) …
==24487== Uninitialised value was created by a stack allocation ==24487== at 0x6618DB6: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24487==
Can't login to the broker. ``` ```name=With correct credentials $ valgrind ./eggdrop-1.8.0 -nt Oberon/eggdrop.conf [...] .tcl source scripts/Wearg/Broker.tcl .tcl source scripts/Wearg/Notifications.tcl .tcl broker::init ==24002== Conditional jump or move depends on uninitialised value(s) ==24002== at 0x9E06EDE: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9E06D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9BF4FEC: mq_connect (rabbitmq-tcl.c:366) ==24002== by 0x9BF47DD: call_mq_command (rabbitmq-tcl.c:263) ==24002== by 0x9BF6020: mq_command (rabbitmq-tcl.c:234) … ==24002== ==24002== Conditional jump or move depends on uninitialised value(s) ==24002== at 0x9E074D7: ??? (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9E06D9C: amqp_login (in /usr/local/lib/librabbitmq.so.4.1.3) ==24002== by 0x9BF4FEC: mq_connect (rabbitmq-tcl.c:366) ==24002== by 0x9BF47DD: call_mq_command (rabbitmq-tcl.c:263) ==24002== by 0x9BF6020: mq_command (rabbitmq-tcl.c:234) … ``` NOTE: Error occurs only once per interpreter.
Continue