Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Suggestion of a test for mosquitto


Given that you've replaced openssl with mbedtls, I'd initially
start looking at how you're handling the library setup.

Now that you've modified it, what's really preventing you from
running it on normal linux? I understand that you had to modify
it to run on your target, but mbedtls will run on desktop linux
happily, can you not try it like that yourself?

Sincerely,
Karl Palsson

Roger Light <roger@xxxxxxxxxx> wrote:
> Hi Sergey,
> 
> This setup is pretty common, so I'm doubtful that it wouldn't
> have been spotted before. I've just tried to reproduce your
> problem with a basic setup, and everything worked as I
> expected. Are you able to share any of your configuration to
> make sure I'm making a good comparison? You can send that
> privately if you'd prefer.
> 
> Regards,
> 
> Roger
> 
> On Wed, 24 Jun 2020 at 17:35, Sergey Grekhov
> <grekhss@xxxxxxxxx> wrote:
> >
> > Hello, dear developers of mosquitto!
> >
> > Recently I have made a series of tests with _modified_ version mosquitto (modified by me) and experienced a memory leak.
> >
> > The problem with detecting this leak is that I use a very specific environment with does not allow using valgrind, sanitizer, whatever else.
> >
> > So, I would like to describe the use case which I have made and ask if mosquitto was tested like that or not.
> >
> > The configuration is following:
> >
> > there is a broker #1 which runs on device
> > there is a broker #2 which runs on some cloud service
> > broker #1 creates a secure bridge (mbedTLS connection) with broker #2
> > there are some clients of broker #1 which send data to each other and over the bridge into the cloud
> >
> > The situation which leads to memory leak:
> >
> > broker #2 decides for some reasons (I do now know why) to disconnect the created bridge
> > broker #1 detects that it has been disconnected and tries to reconnect
> > broker #1 reconnects and continue to send the data
> > steps 1-3 repeats 5-10 times
> > broker #1 experience memory leak
> >
> > I have tested several times (tests we actually quite long - about 3-5 days) on several devices. And memory leak situation (some applications crashed with OOM error) was very stable on device which was disconnected. Instead, another device (identical hardware and software) ran stably during our tests and it was not disconnected from the cloud.
> >
> > Of course, the memory leak could be introduced by my changes of mosquitto. Unfortunately, I have no possibility to investigate this issue due to H/W restrictions. Probably, running such test for stable mosquitto under Linux could clarify this situation.
> >
> > I will be happy to answer any of your questions.
> >
> > Kind regards,
> >
> > Sergey.
> >
> > _______________________________________________
> > mosquitto-dev mailing list
> > mosquitto-dev@xxxxxxxxxxx
> > To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/mosquitto-dev

Attachment: OpenPGP-digital-signature.html
Description: OpenPGP Digital Signature


Back to the top