bugSpamAssassin Milter Plugin - Bugs: bug #21218, spamass-milter coredump

 
 

bug #21218: spamass-milter coredump

Submitted by:  None
Submitted on:  Tue 02 Oct 2007 09:50:28 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: Dan Nelson <dnelson>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 02 Nov 2007 04:20:47 PM UTC, comment #1:

#4 0x282a3476 in abort () from /lib/libc.so.6
#5 0x281299d3 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.5
#6 0x2812e819 in __cxxabiv1::__terminate () from /usr/lib/libstdc++.so.5
#7 0x2812e84e in std::terminate () from /usr/lib/libstdc++.so.5
#8 0x2812e7a7 in __cxa_throw () from /usr/lib/libstdc++.so.5
#9 0x28173e32 in operator new () from /usr/lib/libstdc++.so.5

That's an abort caused by the process failing during a memory allocation. verbose_terminate_handler() prints the reason it's aborting to stderr before killing the process; could you run spamass-milter in a console window or xterm, and see if you can get the error message? I guess if someone tried to send a 512MB email spamass-milter would eventually run out of memory trying to process it.

Could you also try running this in gdb on your corefile:

frame 15
print size
print mail

Dan Nelson <dnelson>
Project AdministratorIn charge of this item.
Tue 02 Oct 2007 09:50:28 AM UTC, original submission:

OS: FreeBSD i386 6.2-STABLE
Sendmail: 8.13.8
SpamAssassin: 3.2.1_1 (from ports)
spamass-milter: 0.3.1_3 (from ports)

Backtrace:
# gdb /usr/local/sbin/spamass-milter spamass-milter.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
Core was generated by `spamass-milter'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libmilter.so.3...done.
Loaded symbols for /usr/lib/libmilter.so.3
Reading symbols from /usr/local/lib/libldap-2.3.so.2...done.
Loaded symbols for /usr/local/lib/libldap-2.3.so.2
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/libm.so.4...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libpthread.so.2...done.
Loaded symbols for /lib/libpthread.so.2
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /usr/local/lib/liblber-2.3.so.2...done.
Loaded symbols for /usr/local/lib/liblber-2.3.so.2
Reading symbols from /usr/lib/libssl.so.4...done.
Loaded symbols for /usr/lib/libssl.so.4
Reading symbols from /lib/libcrypto.so.4...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x281d2563 in pthread_testcancel () from /lib/libpthread.so.2
[New Thread 0x8075a00 (runnable)]
[New Thread 0x8096c00 (runnable)]
[New Thread 0x809d800 (runnable)]
[New Thread 0x8086c00 (runnable)]
[New Thread 0x809de00 (runnable)]
[New Thread 0x8075000 (runnable)]
[New Thread 0x8086a00 (runnable)]
[New Thread 0x8096800 (runnable)]
[New Thread 0x8086e00 (runnable)]
[New Thread 0x8086200 (runnable)]
[New Thread 0x8075600 (runnable)]
[New Thread 0x8096200 (runnable)]
[New Thread 0x8075800 (LWP 100156)]
[New Thread 0x805e400 (sleeping)]
[New Thread 0x805e200 (LWP 100145)]
[New Thread 0x805e000 (runnable)]
(gdb) bt
#0 0x281d2563 in pthread_testcancel () from /lib/libpthread.so.2
#1 0x281c228f in sigaction () from /lib/libpthread.so.2
#2 0x281bbbc5 in pthread_kill () from /lib/libpthread.so.2
#3 0x281bb4c3 in raise () from /lib/libpthread.so.2
#4 0x282a3476 in abort () from /lib/libc.so.6
#5 0x281299d3 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.5
#6 0x2812e819 in __cxxabiv1::__terminate () from /usr/lib/libstdc++.so.5
#7 0x2812e84e in std::terminate () from /usr/lib/libstdc++.so.5
#8 0x2812e7a7 in __cxa_throw () from /usr/lib/libstdc++.so.5
#9 0x28173e32 in operator new () from /usr/lib/libstdc++.so.5
#10 0x281341bd in __gnu_cxx::new_allocator<char>::allocate () from /usr/lib/libstdc++.so.5
#11 0x281337cb in std::string::_Rep::_S_create () from /usr/lib/libstdc++.so.5
#12 0x28133932 in std::string::_Rep::_M_clone () from /usr/lib/libstdc++.so.5
#13 0x2813103d in std::string::reserve () from /usr/lib/libstdc++.so.5
#14 0x2813155f in std::string::append () from /usr/lib/libstdc++.so.5
#15 0x08050782 in SpamAssassin::read_pipe (this=0x8056e80) at spamass-milter.cpp:1887
#16 0x0804f97a in SpamAssassin::output (this=0x8056e80, buffer=0x80b9000, size=65535) at spamass-milter.cpp:1525
#17 0x0804e2ed in mlfi_body (ctx=0x8056a00, bodyp=0x17e <Address 0x17e out of bounds>, bodylen=382) at spamass-milter.cpp:1202
#18 0x2808cb64 in mi_clr_macros () from /usr/lib/libmilter.so.3
#19 0x2808bfd9 in mi_engine () from /usr/lib/libmilter.so.3
#20 0x2808bc0f in mi_handle_session () from /usr/lib/libmilter.so.3
#21 0x2808b094 in mi_opensocket () from /usr/lib/libmilter.so.3
#22 0x281c38f8 in pthread_create () from /lib/libpthread.so.2
#23 0x2828cebf in _ctx_start () from /lib/libc.so.6
(gdb)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dnelson (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 02 Nov 2007 04:20:47 PM UTCdnelsonAssigned toNone=>dnelson

    Back to the top


    Powered by Savane 3.1-cleanup