[exim-dev] [Bug 912] New: exim 4.70 rc4 segfault on testsuit…

Top Page
Delete this message
Reply to this message
Author: Andreas Metzler
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 912] New: exim 4.70 rc4 segfault on testsuite case 0002
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=912
           Summary: exim 4.70 rc4 segfault on testsuite case 0002
           Product: Exim
           Version: N/A
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: high
         Component: String expansion
        AssignedTo: nigel@???
        ReportedBy: eximusers@???
                CC: exim-dev@???



Created an attachment (id=346)
--> (http://bugs.exim.org/attachment.cgi?id=346)
stripped down testcase, extracted from the testsuite.

Hello,

I have finally started to try to run 4.70 rc4 through the testsuite, and have
found segfault in test 0002 already.


ametzler@argenau:/tmp/EXIM/exim-test$ sudo gdb /usr/local/eximtest/sbin/exim
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run -C /tmp/TESTCASE/exim.segfault.config -bh 224.0.0.0 <
/tmp/TESTCASE/inputtest
[...]
250 Accepted
354 Enter message, ending with "." on a line by itself

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xf73e66d0 (LWP 13771)]
0x080de0c0 in pdkim_feed_finish ()
Current language: auto; currently asm
(gdb)
(gdb) bt
#0 0x080de0c0 in pdkim_feed_finish ()
#1 0x0807846f in dkim_exim_verify_finish ()
#2 0x08091cf6 in receive_msg ()
#3 0x08068d70 in main ()
(gdb)

I have attached a stripped down from the testcase. The behavior seems to be
time critical, I only get the crash when passing the input (MAIL FROM etc.)
from the file, typing it in manually does not trigger the bug.

No special compilation options are needed, my local /usr/sbin/exim4 crashes,
too. I just used /usr/local/eximtest/sbin/exim since it is not stripped. sudo
is only needed because SPOOLDIR/input is not writeable for the exim group by
default, if chmod it or point exim spool to a different directory you should be
able to run this without sudo.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email