First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 90679
Alias:
Product:
Component:
Status: CLOSED
Resolution: TEST-REQUEST
Assigned To: Qmail Team <qmail-bugs@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Faux <krazywest@hotmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
tcprules.diff Patch for tcprules.c patch Michael Hanselmann (hansmi) (RETIRED) 2005-09-11 16:01 0000 463 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 90679 depends on: Show dependency tree
Bug 90679 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.




View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-04-27 21:34 0000
When attempting to use the command: tcprules /etc/tcprules.d/tcp.qmail-smtp.cdb
/etc/tcprules.d/.tcp.qmail-smtp.tmp </etc/tcprules.d/tcp.qmail-smtp

Where the file tcp.qmail-smtp is something like:

1.2.3.4:allow,RELAYCLIENT="",RBLSMTPD=""
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD=""

:allow

causes tcprules to cease responding, with >99% CPU usage. NB. There is a space
on the third line (the empty line) of that file. Without the space (or the
line), it works fine.
Removing the new line after the space also causes it to run correctly (ie.:

1.2.3.4:allow,RELAYCLIENT="",RBLSMTPD=""
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD=""
{SPACE}:allow

), as does removing the line entirely.

I'd believe this was a syntax error if it didn't use cpu.

This has apparently happened on other systems, with other plausible
explinations: http://bugs.gentoo.org/show_bug.cgi?id=89442

Reproducible: Always
Steps to Reproduce:
1. Get the system in a ready state by emerging qmail, and any dependencies for
tcprules.

2. Make the contents of /etc/tcprules.d/tcp.qmail-smtp
1.2.3.4:allow,RELAYCLIENT="",RBLSMTPD=""
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD=""
  <--- NB: There's a space there.
:allow

3. Run the command 'tcprules /etc/tcprules.d/tcp.qmail-smtp.cdb
/etc/tcprules.d/.tcp.qmail-smtp.tmp </etc/tcprules.d/tcp.qmail-smtp'.

4. Examine top.

Actual Results:  
'top' reported that tcprules was using all of the cpu, and tcprules stopped 
accepting input.

Expected Results:  
Run as it would have without the space present.

> emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.9-
bytemark-uml-20041208-1-bytemark-uml-20041207-1 i686)
=================================================================
System uname: 2.6.9-bytemark-uml-20041208-1-bytemark-uml-20041207-1 i686 UML
Gentoo Base System version 1.4.10
Python:              dev-lang/python-2.3.3-r1 [2.3.3 (#1, Jun  2 2004, 12:19:50
)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.3-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.14.90.0.8-r1
sys-devel/libtool:   1.4.3-r4, 1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/
config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains
/var/
vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo-distfiles"
MAKEOPTS=" -j8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://mirror.bytemark.co.uk/gentoo"
USE="x86 alsa apm arts authdaemond avi berkdb bitmap-fonts crypt cups emboss 
encode foomaticdb fortran gdbm gif gpm gtk2 imlib ipv6 jpeg libg++ libwww mad 
maildir mikmod motif mp3 mpeg mysql ncurses nls oggvorbis pam pdflib perl png 
python quicktime readline ruby slang spell ssl svga tcpd tiff truetype
truetype-
fonts type1-fonts valias vhosts xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

------- Comment #1 From Robin Johnson 2005-07-02 18:04:59 0000 -------
*** Bug 97772 has been marked as a duplicate of this bug. ***

------- Comment #2 From Robin Johnson 2005-07-02 18:06:30 0000 -------
patches to fix tcprules welcome

------- Comment #3 From Michael Hanselmann (hansmi) (RETIRED) 2005-09-11 16:00:45 0000 -------
*** Bug 89442 has been marked as a duplicate of this bug. ***

------- Comment #4 From Michael Hanselmann (hansmi) (RETIRED) 2005-09-11 16:01:52 0000 -------
Created an attachment (id=68205) [edit]
Patch for tcprules.c

I've attached a small patch for tcprules.c. Can you please test this patch
before we add it to portage?

------- Comment #5 From Alex V. Koval 2005-09-16 01:42:51 0000 -------
thank you, this patch helped me on AMD64 - no more freezing, program worked
to make tcprules.smtp.cdb

------- Comment #6 From Michael Hanselmann (hansmi) (RETIRED) 2005-09-17 11:39:39 0000 -------
I'll add the patch to the ebuild in the next days. Thanks for testing.

------- Comment #7 From Michael Hanselmann (hansmi) (RETIRED) 2005-10-15 14:59:26 0000 -------
Sorry for the delay, ucspi-tcp-0.88-r13 is now in CVS. Can you test it, please?

------- Comment #8 From Michael Hanselmann (hansmi) (RETIRED) 2006-03-12 10:40:25 0000 -------
No response, closing.

First Last Prev Next    No search results available      Search page      Enter new bug