Skip to contentSkip to conversation

Valgring findings

Openvpn-devel Илья Шипицин 5 participants 6 messages Jun 7, 2016 – Jun 8, 2016 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]...

A message that is not in the archive (sent off-list or not yet received): [email protected]...

#3 lore raw
Quoted 8 lines

Hello,

I played with valgrind a bit

https://travis-ci.org/chipitsine/openvpn/jobs/135869065

Looks like there are leaks in openssl code, should we suppress it?

I can't comment on the leaks themselves, but I wonder if it would make sense to run OpenVPN under Valgrind in "make check". For example, when using the Vagrant test VMs the loss of performance would not be a big deal - the tests would just run quite a bit longer.

Signature · 5 lines
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock
#4 lore raw

Hi,

Quoted 10 lines · Samuli Seppänen
Quoted 5 lines

I played with valgrind a bit

https://travis-ci.org/chipitsine/openvpn/jobs/135869065

Looks like there are leaks in openssl code, should we suppress it?

I can't comment on the leaks themselves, but I wonder if it would make sense to run OpenVPN under Valgrind in "make check". For example, when using the Vagrant test VMs the loss of performance would not be a big deal - the tests would just run quite a bit longer.

Unless you can whitelist certain findings, valgrind output will be LONG (as can be seen in the URL above), and we can't do anything about memory lost by OpenSSL etc. - so it's just long output of random numbers, which nobody will bother to look at.

gert

Signature · 4 lines
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             [email protected]...
fax: +49-89-35655025                        [email protected]...
#5 lore raw
Quoted 12 lines · Gert Doering
Quoted 10 lines · Samuli Seppänen
Quoted 5 lines

I played with valgrind a bit

https://travis-ci.org/chipitsine/openvpn/jobs/135869065

Looks like there are leaks in openssl code, should we suppress it?

I can't comment on the leaks themselves, but I wonder if it would make sense to run OpenVPN under Valgrind in "make check". For example, when using the Vagrant test VMs the loss of performance would not be a big deal - the tests would just run quite a bit longer.

Quoted 4 lines

Unless you can whitelist certain findings, valgrind output will be LONG (as can be seen in the URL above), and we can't do anything about memory lost by OpenSSL etc. - so it's just long output of random numbers, which nobody will bother to look at.

Not everything that valgrind reports is really a leak. Not to say valgrind is not useful -- quite the contrary, and we find it very useful to catch leaks in our number-crunching codes all the time.

Running valgrind with --leak-check=full --show-reachable=yes as in the link above would generate too much of not so useful output. In fact the output was longer than the 10K limit of travis. Use --leak-check=summary, leave out --show-reachable=yes, and keep show-leak-kinds at its default (i.e definite and possible leaks only). Then, if there are errors that look real one could locally check with --leak-check=full. In any case, suppress still-reachable warnings.

All those "errors" seen in openssl are "still reachable" blocks which is not a leak.

Selva

#6 lore raw
In reply to Samuli Seppänen

I thought to run valgrind separately, but it might be interesting to run it under "make check" as well

2016-06-07 19:33 GMT+05:00 Samuli Seppänen <[email protected]...>:

Quoted 22 lines

Hello,

Quoted 7 lines

I played with valgrind a bit

https://travis-ci.org/chipitsine/openvpn/jobs/135869065

Looks like there are leaks in openssl code, should we suppress it?

I can't comment on the leaks themselves, but I wonder if it would make sense to run OpenVPN under Valgrind in "make check". For example, when using the Vagrant test VMs the loss of performance would not be a big deal
- the tests would just run quite a bit longer.

--
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

#7 lore raw
In reply to Илья Шипицин

Am 07.06.2016 um 15:47 schrieb Илья Шипицин:

Quoted 7 lines

Hello,

I played with valgrind a bit

https://travis-ci.org/chipitsine/openvpn/jobs/135869065

Looks like there are leaks in openssl code, should we suppress it?

Not that I've found the "leaks" you're reporting; however:

I seem to recall that for Oracle/Berkeley DB and OpenSSL, you need to recompile both libraries with particular flags such that they don't use sloppy memory management, if you want to check them with static and run-time code checkers.