Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 122784 - socklog-2.0.2 tryto race bugfix
Summary: socklog-2.0.2 tryto race bugfix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Gentoo's Team for Core System packages
URL: http://comments.gmane.org/gmane.comp....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-14 04:59 UTC by Alex Efros
Modified: 2006-02-14 21:40 UTC (History)
0 users

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


Attachments
ebuild which apply needed patch (socklog-2.0.2-r1.ebuild,1.08 KB, text/plain)
2006-02-14 05:01 UTC, Alex Efros
Details
files/socklog-2.0.2-race.patch (socklog-2.0.2-race.patch,1.26 KB, patch)
2006-02-14 05:01 UTC, Alex Efros
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2006-02-14 04:59:48 UTC
User-Agent:       Opera/8.51 (X11; Linux i686; U; en)
Build Identifier: 

/usr/bin/tryto from socklog-2.0.2 has race condition bug.
Author released patch, I updated ebuild.
I've no idea when new socklog will be released, so I post it here as temporary 
workaround.

Reproducible: Always

Steps to Reproduce:
$ for i in $(seq 1 10); do echo "i=$i"; tryto -v -t 2 bash -c 'true'; done

Actual Results:  
i=1
tryto: warning: child "bash" timed out. sending TERM...
tryto: warning: child "bash" not terminated. sending KILL...
tryto: fatal: child timed out, giving up.
i=2
tryto: warning: child "bash" timed out. sending TERM...
tryto: warning: child "bash" not terminated. sending KILL...
tryto: fatal: child timed out, giving up.
i=3
tryto: warning: child "bash" timed out. sending TERM...
tryto: warning: child "bash" not terminated. sending KILL...
tryto: fatal: child timed out, giving up.
i=4
tryto: warning: child "bash" timed out. sending TERM...
tryto: warning: child "bash" not terminated. sending KILL...
tryto: fatal: child timed out, giving up.
i=5
tryto: warning: child "bash" timed out. sending TERM...
tryto: warning: child "bash" not terminated. sending KILL...
tryto: fatal: child timed out, giving up.
i=6
i=7
i=8
i=9
tryto: warning: child "bash" timed out. sending TERM...
tryto: warning: child "bash" not terminated. sending KILL...
tryto: fatal: child timed out, giving up.
i=10
tryto: warning: child "bash" timed out. sending TERM...
tryto: warning: child "bash" not terminated. sending KILL...
tryto: fatal: child timed out, giving up.


Expected Results:  
$ for i in $(seq 1 10); do echo "i=$i"; tryto -v -t 2 bash -c 'true'; done
i=1
i=2
i=3
i=4
i=5
i=6
i=7
i=8
i=9
i=10
Comment 1 Alex Efros 2006-02-14 05:01:06 UTC
Created attachment 79752 [details]
ebuild which apply needed patch
Comment 2 Alex Efros 2006-02-14 05:01:37 UTC
Created attachment 79753 [details, diff]
files/socklog-2.0.2-race.patch
Comment 3 SpanKY gentoo-dev 2006-02-14 21:40:13 UTC
thanks, in portage now !