Tmda-filter crashes under Python 2.5

Bug #160334 reported by Mibsy on 2007-11-05
2
Affects Status Importance Assigned to Milestone
tmda (Baltix)
Undecided
Unassigned
tmda (Ubuntu)
Undecided
Unassigned

Bug Description

Running tmda-filter from .forward files under Ubuntu 7.10. Tmda-filter fails as described below when filtering any email message when python is linked to python2.5. It works fine when python is running under python2.4. I also tried installing the tmda software obtained from tmda.net using the source with the same results. Here is the error message from the bounced message. The syslog message is truncated so this one is more informative:

               The mail system

<email address hidden>: Command died with signal 6: " /usr/bin/tmda-filter". Command
   output: *** glibc detected *** python: munmap_chunk(): invalid pointer:
   0x0000000000a5e1b0 *** ======= Backtrace: =========
   /lib/libc.so.6(cfree+0x1b6)[0x2af4d7dbb826] python[0x4d30ca]
   python(PyEval_EvalFrameEx+0x6964)[0x488c64]
   python(PyEval_EvalCodeEx+0x830)[0x489d60]
   python(PyEval_EvalFrameEx+0x5c32)[0x487f32]
   python(PyEval_EvalFrameEx+0x693e)[0x488c3e]
   python(PyEval_EvalCodeEx+0x830)[0x489d60]
   python(PyEval_EvalCode+0x32)[0x489da2]
   python(PyRun_FileExFlags+0x10e)[0x4ab4fe] python[0x4803ce]
   python(PyEval_EvalFrameEx+0x67f7)[0x488af7]
   python(PyEval_EvalCodeEx+0x830)[0x489d60]
   python(PyEval_EvalCode+0x32)[0x489da2]
   python(PyRun_FileExFlags+0x10e)[0x4ab4fe]
   python(PyRun_SimpleFileExFlags+0x1a0)[0x4ab790]
   python(Py_Main+0x935)[0x414725]
   /lib/libc.so.6(__libc_start_main+0xf4)[0x2af4d7d63b44] python[0x413c69]
   ======= Memory map: ======== 00400000-00521000 r-xp 00000000 03:06 1254266
   /usr/bin/python2.5 00720000-00752000 rw-p 00120000 03:06 1254266
   /usr/bin/python2.5 00752000-00ab4000 rw-p 00752000 00:00 0
   [heap] 2af4d7284000-2af4d72a1000 r-xp 00000000 03:01 423503
   /lib/ld-2.6.1.so 2af4d72a1000-2af4d7326000 rw-p 2af4d72a1000 00:00 0
   2af4d74a0000-2af4d74a2000 rw-p 0001c000 03:01 423503
   /lib/ld-2.6.1.so 2af4d74a2000-2af4d74b8000 r-xp 00000000 03:01 423523
   /lib/libpthread-2.6.1.so 2af4d74b8000-2af4d76b7000 ---p 00016000 03:01
   423523 /lib/libpthread-2.6.1.so
   2af4d76b7000-2af4d76b9000 rw-p 00015000 03:01 423523
   /lib/libpthread-2.6.1.so 2af4d76b9000-2af4d76bd000 rw-p 2af4d76b9000 00:00
   0 2af4d76bd000-2af4d76bf000 r-xp 00000000 03:01 423512
   /lib/libdl-2.6.1.so 2af4d76bf000-2af4d78bf000 ---p 00002000 03:01 423512
   /lib/libdl-2.6.1.so 2af4d78bf000-2af4d78c1000 rw-p 00002000 03:01 423512
   /lib/libdl-2.6.1.so 2af4d78c1000-2af4d78c3000 r-xp 00000000 03:01 423528
   /lib/libutil-2.6.1.so 2af4d78c3000-2af4d7ac2000 ---p 00002000 03:01 423528
   /lib/libutil-2.6.1.so 2af4d7ac2000-2af4d7ac4000 rw-p 00001000 03:01 423528
   /lib/libutil-2.6.1.so 2af4d7ac4000-2af4d7b44000 r-xp 00000000 03:01 423513
   /lib/libm-2.6.1.so 2af4d7b44000-2af4d7d43000 ---p 00080000 03:01 423513
   /lib/libm-2.6.1.so 2af4d7d43000-2af4d7d45000 rw-p 0007f000 03:01 423513
   /lib/libm-2.6.1.so 2af4d7d45000-2af4d7d46000 rw-p 2af4d7d45000 00:00 0
   2af4d7d46000-2af4d7e98000 r-xp 00000000 03:01 423509
   /lib/libc-2.6.1.so 2af4d7e98000-2af4d8097000 ---p 00152000 03:01 423509
   /lib/libc-2.6.1.so 2af4d8097000-2af4d809a000 r--p 00151000 03:01 423509
   /lib/libc-2.6.1.so 2af4d809a000-2af4d809c000 rw-p 00154000 03:01 423509
   /lib/libc-2.6.1.so 2af4d809c000-2af4d80a2000 rw-p 2af4d809c000 00:00 0
   2af4d80a2000-2af4d80a7000 r-xp 00000000 03:06 1140199
   /usr/lib/python2.5/lib-dynload/strop.so 2af4d80a7000-2af4d82a6000 ---p
   00005000 03:06 1140199
   /usr/lib/python2.5/lib-dynload/strop.so 2af4d82a6000-2af4d82a8000 rw-p
   00004000 03:06 1140199
   /usr/lib/python2.5/lib-dynload/strop.so 2af4d82a8000-2af4d82ac000 r-xp
   00000000 03:06 1141703
   /usr/lib/python2.5/lib-dynload/_locale.so 2af4d82ac000-2af4d84ac000 ---p
   00004000 03:06 1141703
   /usr/lib/python2.5/lib-dynload/_locale.so 2af4d84ac000-2af4d84ad000 rw-p
   00004000 03:06 1141703
   /usr/lib/python2.5/lib-dynload/_locale.so 2af4d84ad000-2af4d84b4000 r-xp
   00000000 03:06 1140197
   /usr/lib/python2.5/lib-dynload/operator.so 2af4d84b4000-2af4d86b4000 ---p
   00007000 03:06 1140197
   /usr/lib/python2.5/lib-dynload/operator.so 2af4d86b4000-2af4d86b6000 rw-p
   00007000 03:06 1140197
   /usr/lib/python2.5/lib-dynload/operator.so 2af4d86b6000-2af4d86bc000 r-xp
   00000000 03:06 1140189

It could be a bug in python2.5 or tmda code that needs adjusted to conform with python2.5... Unfortunately, I'm not really sure.

Mibsy (winterg-ns) wrote :

In further testing, I set up tmda-ofmipd to receive outgoing mail. It calls tmda-inject, which also fails when using python 2.5. I changed the first line in tmda-inject from /usr/bin/python to /usr/bin/python2.4 and it runs fine. Seems like tmda is not python 2.5 friendly.

Mibsy (winterg-ns) wrote :

The Ubuntu version is 7.10, and the uname -a returns... 2.6.22-14-server #1 SMP Sun Oct 14 22:09:15 GMT 2007 x86_64 GNU/Linux

Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in tmda.

Luca Falavigna (dktrkranz) wrote :

Gutsy will reach EOL very soon, there is no room to fix this in time.

Changed in tmda:
status: New → Won't Fix
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers