Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623906 - net-analyzer/vnstat-1.17-r1 src_test(): tests/config_tests.c:102:F:Config:ibwget_from_config:0: Assertion 'limit == 8' failed: limit == 10, 8 == 8
Summary: net-analyzer/vnstat-1.17-r1 src_test(): tests/config_tests.c:102:F:Config:ibw...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL: https://github.com/vergoh/vnstat/comm...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-05 17:05 UTC by Toralf Förster
Modified: 2017-10-16 16:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.98 KB, text/plain)
2017-07-05 17:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,419.68 KB, text/plain)
2017-07-05 17:05 UTC, Toralf Förster
Details
environment (environment,106.30 KB, text/plain)
2017-07-05 17:05 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,29.34 KB, application/x-bzip)
2017-07-05 17:05 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,9.58 KB, application/x-bzip)
2017-07-05 17:05 UTC, Toralf Förster
Details
net-analyzer:vnstat-1.17-r1:20170705-063808.log (net-analyzer:vnstat-1.17-r1:20170705-063808.log,20.43 KB, text/plain)
2017-07-05 17:05 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,27.51 KB, application/x-bzip)
2017-07-05 17:05 UTC, Toralf Förster
Details
tests.tbz2 (tests.tbz2,12.42 KB, application/x-bzip)
2017-07-05 17:05 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-07-05 17:05:01 UTC
  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop-plasma_20170623-211337

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)
  [3]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby21 (with Rubygems)
  [2]   ruby22 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.4.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm
Comment 1 Toralf Förster gentoo-dev 2017-07-05 17:05:04 UTC
Created attachment 480966 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-07-05 17:05:07 UTC
Created attachment 480968 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-07-05 17:05:10 UTC
Created attachment 480970 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-07-05 17:05:14 UTC
Created attachment 480972 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-07-05 17:05:17 UTC
Created attachment 480974 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-07-05 17:05:20 UTC
Created attachment 480976 [details]
net-analyzer:vnstat-1.17-r1:20170705-063808.log
Comment 7 Toralf Förster gentoo-dev 2017-07-05 17:05:23 UTC
Created attachment 480978 [details]
temp.tbz2
Comment 8 Toralf Förster gentoo-dev 2017-07-05 17:05:26 UTC
Created attachment 480980 [details]
tests.tbz2
Comment 9 Teemu Toivola 2017-10-13 17:52:32 UTC
This bug was brought to my attention by the the github commit comment https://github.com/vergoh/vnstat/commit/4e1b097d6062fcee67a386302bc074140f7059d8#commitcomment-24957839.

After some digging, it looks like the test error is caused by the src_prepare() changes in vnstat-1.17-r1.ebuild which comment out a line in the example configuration file before the tests are executed. The tests in turn are using that specific line to validate that parsing the configuration file works correctly. Patching the test as done in https://gitweb.gentoo.org/repo/gentoo.git/commit/net-analyzer/vnstat?id=d7020024ba12df55773ebdd034a800aafe0a7124 causes this feature test to be essentially ignored which defeats the purpose of those tests. If any modifications to the configuration file is needed, I'd suggest doing such changes after the tests have been executed.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2017-10-13 18:06:07 UTC
Apparently the buggy behaviour was introduced in bug #522226. I have reverted an earlier patch that fixed the test now and reverted the configuration back to the default, since that was the change that triggered the src_test() failure and added precisely nothing to the configuration that individual users shouldn't be able to figure out for themselves.
Comment 11 Thomas Deutschmann (RETIRED) gentoo-dev 2017-10-14 12:29:51 UTC
(In reply to Jeroen Roovers from comment #10)
> Apparently the buggy behaviour was introduced in bug #522226. I have
> reverted an earlier patch that fixed the test now and reverted the
> configuration back to the default, since that was the change that triggered
> the src_test() failure and added precisely nothing to the configuration that
> individual users shouldn't be able to figure out for themselves.

That's ridiculous and you know it. Like upstream said, no reason to revert *everything*, just modify configuration *after* src_test(). Now you brought back a bunch of already solved issues. If you don't understand what the configuration change was all about ASK but don't just revert if YOU don't understand. The default installation on OpenRC systems is now vulnerable to a priv escalation via PID file due to the partial revert, nice job!
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2017-10-14 13:18:18 UTC
(In reply to Thomas Deutschmann from comment #11)
> That's ridiculous and you know it.

Calm down.

> Like upstream said, no reason to revert
> *everything*, just modify configuration *after* src_test(). Now you brought
> back a bunch of already solved issues.

I might have missed some of the more arcane sed scripts.

> nice job!

Thanks!
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2017-10-14 13:22:36 UTC
(In reply to Thomas Deutschmann from comment #11)
> If you don't understand what the
> configuration change was all about ASK but don't just revert if YOU don't
> understand.

You mean you can dump anything into the tree without adding useful comments or explanations and expect people to ask you what your changes are for?

> The default installation on OpenRC systems is now vulnerable to
> a priv escalation via PID file due to the partial revert, nice job!

Where is that security bug report, you say?
Comment 14 Thomas Deutschmann (RETIRED) gentoo-dev 2017-10-16 16:24:10 UTC
(In reply to Jeroen Roovers from comment #12)
> (In reply to Thomas Deutschmann from comment #11)
> > That's ridiculous and you know it.
> 
> Calm down.
Ehm, did I revert *everything* because I didn't understand the scope of a bug report and decided this is so critical I cannot wait for a response from the bad developer who probably caused the breakage of my hole package? :>

But judging from your commit messages it looks like you had your fun.


(In reply to Jeroen Roovers from comment #13)
> Where is that security bug report, you say?
Just for the records: https://gitweb.gentoo.org/repo/gentoo.git/commit/net-analyzer/vnstat?id=fa49bd03d6ed83cf14b30542dc1e57f9549d1154 fixed the potential security vulnerability I mentioned in comment #11.
Comment 15 Thomas Deutschmann (RETIRED) gentoo-dev 2017-10-16 16:26:33 UTC
s/my hole package/my holy package/

Yes I know that this typo ruined everything.
Comment 16 Jeroen Roovers (RETIRED) gentoo-dev 2017-10-16 16:34:55 UTC
(In reply to Thomas Deutschmann from comment #14)
> Ehm, did I revert *everything* because I didn't understand the scope of a
> bug report and decided this is so critical I cannot wait for a response from
> the bad developer who probably caused the breakage of my hole package? :>

Nobody did that.

> But judging from your commit messages it looks like you had your fun.

I don't follow. I was cleaning up your mess.

> > Where is that security bug report, you say?

...

> Just for the records:
> https://gitweb.gentoo.org/repo/gentoo.git/commit/net-analyzer/
> vnstat?id=fa49bd03d6ed83cf14b30542dc1e57f9549d1154 fixed the potential
> security vulnerability I mentioned in comment #11.

You're on the security team and you fix issues quietly in unstable revisions without reporting them to the community or even explaining to maintainers what the issues are in your commit messages, while the stable version remains apparently vulnerable to some kind of attack that you haven't actually exposed?

So again, where is that security bug report? We're all waiting to see the vulnerability exposed.

And please stop responding here now, as this issue is fixed and closed.