Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 339013 - sys-apps/baselayout-1.12.14 infinite loop with iproute (ip func)
Summary: sys-apps/baselayout-1.12.14 infinite loop with iproute (ip func)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 338963 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-28 10:17 UTC by Krzysztof Olędzki
Modified: 2010-10-03 21:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Olędzki 2010-09-28 10:17:47 UTC
Changes included in baselayout-1.12.14 introduced inifinite loop in rcscripts/net/iproute2.sh.

Two important functions were changed from:
--- cut here ---
ip() {
        LC_ALL=C /sbin/ip "$@"
}
iproute2_tunnel() {
        LC_ALL=C /sbin/ip tunnel "$@"
}
--- cut here ---

to:

--- cut here ---
ip() {
        LC_ALL=C ip "$@"
}
iproute2_tunnel() {
        LC_ALL=C ip tunnel "$@"
}
--- cut here ---

So now, ip() calls itself. :(
Comment 1 Krzysztof Olędzki 2010-09-28 10:39:12 UTC
Here is the patch that caused the problem:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/baselayout/branches/baselayout-1_12/net-scripts/net/iproute2.sh?r1=3174&r2=3175
Comment 2 Toralf Förster gentoo-dev 2010-09-29 11:15:32 UTC
Might be this results in bug #338963 ?
Comment 3 Krzysztof Olędzki 2010-09-29 11:23:02 UTC
(In reply to comment #2)
> Might be this results in bug #338963 ?
> 

Very likely. You can confirm this by reverting mentioned above changes.
Comment 4 SpanKY gentoo-dev 2010-10-03 21:09:51 UTC
*** Bug 338963 has been marked as a duplicate of this bug. ***