Bug 304071 - milter-regex 1.7 fails if there are more than 507 lines in milter-regex.conf
Summary: milter-regex 1.7 fails if there are more than 507 lines in milter-regex.conf
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: milter-regex
Version: 7
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-09-24 21:05 UTC by Eli Wapniarski
Modified: 2008-03-08 08:57 UTC (History)
1 user (show)

Fixed In Version: 1.7-3.fc7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-03 18:22:52 UTC


Attachments (Terms of Use)

Description Eli Wapniarski 2007-09-24 21:05:28 UTC
Description of problem:

After adding more than 507 lines milter-regex fails with the following 
message.

milter-regex[2935]: parse_ruleset: /etc/mail/milter-regex.conf:507: yacc stack 
overflow
milter-regex[2935]: cb_connect: get_ruleset

Version-Release number of selected component (if applicable):

milter-regex-1.7-1.fc7

How reproducible:

Always

Additional info:

I worked the problem with Daniel Hartmeier, the developer of milter-regex. He 
suggested that a change be made to a line in Makefile.linux:

CFLAGS=         -g

to

CFLAGS=         -g -DYYMAXDEPTH=8192


then run the following:

make -f Makefile.linux clean
make -f Makefile.linux

I modified the file contained in the packaged tar.gz file but that did not 
help.

What I wound up doing was modifying the SPEC file from:

%build
%{__make} %{?_smp_mflags} -f Makefile.linux CFLAGS="%{optflags}"

to

%build
%{__make} %{?_smp_mflags} -f Makefile.linux clean
%{__make} %{?_smp_mflags} -f Makefile.linux 
CFLAGS="%{optflags} -DYYMAXDEPTH=8192"

This fixed the problem. Could you please provide a fixed package? Thanks.

Comment 1 Fedora Update System 2008-02-18 17:47:29 UTC
milter-regex-1.7-3.fc8 has been submitted as an update for Fedora 8

Comment 2 Fedora Update System 2008-02-18 17:48:32 UTC
milter-regex-1.7-3.fc7 has been submitted as an update for Fedora 7

Comment 3 Paul Howarth 2008-02-18 18:04:20 UTC
The "make clean" step isn't actually necessary for an RPM build since the whole
package build takes place in a "clean" environment. I've finally gotten round to
reproducing this bug and testing the fix today, and an update should appear in
updates-testing soon.

I'm a little surprised that there hasn't been an update from upstream in all
this time, though maybe he's been as busy as I have ;-)

Comment 4 Eli Wapniarski 2008-02-18 19:17:32 UTC
I'm glad to see that this has finally gone upstream. I will be happy to see 
this update.

Comment 5 Fedora Update System 2008-02-19 03:13:05 UTC
milter-regex-1.7-3.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update milter-regex'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-1768

Comment 6 Fedora Update System 2008-03-03 18:22:50 UTC
milter-regex-1.7-3.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2008-03-03 18:25:12 UTC
milter-regex-1.7-3.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Eli Wapniarski 2008-03-08 08:57:32 UTC
Finally had the time to install the new package. It seems to be working.

Thank you very much


Note You need to log in before you can comment on or make changes to this bug.