Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suite failing for mosquitto 1.6.2 #1307

Open
oxr463 opened this issue Jun 6, 2019 · 3 comments
Open

Test suite failing for mosquitto 1.6.2 #1307

oxr463 opened this issue Jun 6, 2019 · 3 comments

Comments

@oxr463
Copy link
Contributor

oxr463 commented Jun 6, 2019

uname -a
Linux mosquitto-devel 5.1.5 #1 SMP Tue May 28 18:46:44 EDT 2019 x86_64 Intel(R) Core(TM) i5-4590 CPU @ 3.30GHz GenuineIntel GNU/Linux

lxc-start --version
3.0.3

python3 -V
Python 3.7.3

make test
# truncated output
./02-subpub-qos1-bad-pubcomp.py
1559786449: mosquitto version 1.6.2 starting
1559786449: Using default config.
1559786449: Opening ipv4 listen socket on port 1888.
1559786449: Opening ipv6 listen socket on port 1888.
1559786449: New connection from ::1 on port 1888.
1559786449: Socket error on client <unknown>, disconnecting.
1559786449: New connection from 127.0.0.1 on port 1888.
1559786449: New client connected from 127.0.0.1 as subpub-qos1-test (p2, c1, k60).
1559786449: No will message specified.
1559786449: Sending CONNACK to subpub-qos1-test (0, 0)
1559786449: Received SUBSCRIBE from subpub-qos1-test
1559786449:     subpub/qos1 (QoS 1)
1559786449: subpub-qos1-test 1 subpub/qos1
1559786449: Sending SUBACK to subpub-qos1-test
1559786449: New connection from 127.0.0.1 on port 1888.
1559786449: New client connected from 127.0.0.1 as helper (p2, c1, k60).
1559786449: No will message specified.
1559786449: Sending CONNACK to helper (0, 0)
1559786449: Received PUBLISH from helper (d0, q1, r0, m1, 'subpub/qos1', ... (7 bytes))
1559786449: Sending PUBACK to helper (m1, rc0)
1559786449: Sending PUBLISH to subpub-qos1-test (d0, q1, r0, m1, 'subpub/qos1', ... (7 bytes))
1559786449: Socket error on client helper, disconnecting.
1559786449: Received PUBCOMP from subpub-qos1-test (Mid: 1, RC:0)
1559786449: Socket error on client subpub-qos1-test, disconnecting.
1559786449: mosquitto version 1.6.2 terminating

Traceback (most recent call last):
  File "./02-subpub-qos1-bad-pubcomp.py", line 49, in <module>
    p = sock.recv(len(pingresp_packet))
ConnectionResetError: [Errno 104] Connection reset by peer
@ralight
Copy link
Contributor

ralight commented Jun 13, 2019

How would I go about reproducing this - the tests work fine for me everywhere I've tried it, so instructions on your environment would be useful.

@oxr463
Copy link
Contributor Author

oxr463 commented Jun 14, 2019

I've only tested this on Linux >= 4.19, but then I was also developing in an LXC container, a QEMU virtual machine, and also Docker.

# Creates privileged container in LXC
sudo lxc-create -t download -n mosquitto
Distribution:
# Choose Ubuntu or Debian
Release:
# Choose Bionic or Stretch
Architecture:
# Choose amd64

# Once the setup finishes, you can then run the following command to start the container
sudo lxc-start mosquitto

# Enter the container, runs as root
sudo lxc-attach mosquitto

# Then I installed the dependencies, and fetched the source.
apt update && apt upgrade -y && apt install -y git debhelper libc-ares-dev libssl-dev libwrap0-dev python-all python3-all uthash-dev xsltproc docbook-xsl libcunit1-dev

cd /usr/src
git clone https://github.com/eclipse/mosquitto.git
cd mosquitto

make # compile
make test # run tests

@ralight
Copy link
Contributor

ralight commented Jun 15, 2019

Lovely, thanks. I'll test this out when I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants