[Pymilter] pymilter segfaults

Michal Mach m.mach at uptime.at
Wed Dec 3 08:14:49 EST 2008


Stuart D. Gathman wrote:
> On Tue, 4 Nov 2008, Michal Mach wrote:
>
>   
>> mimemilter.py[23082]: segfault at 0000000000000130 rip 00002acb089e8900 rsp
>> 00000000410010f0 error 4
>>
>> Similar problem was discussed in this mailing list here:
>>
>> http://www.bmsi.com/pipermail/pymilter/2007-January/000143.html
>>     
>
> Never heard back from that guy, so I assumed it was the mysql module.
> (No one else has had the problem since.)
>
>   
>> Can you give me some suggestions what could be the problem?
>> If you need more info please drop me an mail.
>>     
>
> One thing to try is to get version 1.9 of milter_module.c from here:
>
> http://pymilter.cvs.sourceforge.net/pymilter/milter/miltermodule.c?view=log
>
> and rebuild milter.so ("python setup.py build" and move into place or adjust
> PYTHON_PATH).  If the problem goes away, then that means that more than one
> thread was accessing a milter ctx (maybe because of something libmilter does).
> I'll document that and revert.
>
>   
Hi,

So i downloaded the older miltermodule.c module and recompiled the 
debian package, but we still get the segfaults.

I am attaching some pieces of output from logs when the segfault 
happens. It seams that it happens when calling close methods from 
different threads one after the other. But i don't now if this is the 
problem.

Log.1

2008-12-03 05:50:49 [INFO    ] [1191237968] [Dummy-13] hello from 
localhost.localdomain
2008-12-03 05:50:49 [INFO    ] [1191237968] [Dummy-13] Mail address 
'test at example.com'. [Accepting]
2008-12-03 05:50:49 [INFO    ] [1098918224] [Dummy-2] Called close for 
message with id: undefined
2008-12-03 05:50:49 [INFO    ] [1191237968] [Dummy-13] connect from 
localhost at ('127.0.0.1', 0)
2008-12-03 05:50:49 [INFO    ] [1191237968] [Dummy-13] hello from localhost
2008-12-03 05:50:49 [INFO    ] [1191237968] [Dummy-13] Mail address 
'test at example.com'. [Accepting]
2008-12-03 05:50:49 [INFO    ] [1098918224] [Dummy-2] Called close for 
message with id: undefined
2008-12-03 05:51:02 [INFO    ] [1098918224] [Dummy-2] Called close for 
message with id: undefined
2008-12-03 05:51:12 [INFO    ] [1090525520] [Dummy-17] Called close for 
message with id: undefined

Log.2

2008-12-03 06:41:09 [INFO    ] [1107310928] [Dummy-2] Interdomain 
disclaimer applied for user: test at example.com
2008-12-03 06:41:12 [INFO    ] [1098918224] [Dummy-1] Called close for 
message with id: 48BA2A36F
2008-12-03 06:41:16 [INFO    ] [1107310928] [Dummy-2] connect from 
localhost at ('127.0.0.1', 0)
2008-12-03 06:41:16 [INFO    ] [1107310928] [Dummy-2] hello from localhost
2008-12-03 06:41:16 [INFO    ] [1098918224] [Dummy-1] Disclaimer already 
present. Mail queue id: 666F4A370
2008-12-03 06:41:16 [INFO    ] [1098918224] [Dummy-1] Called close for 
message with id: 666F4A370
2008-12-03 06:41:36 [INFO    ] [1090525520] [Dummy-3] Called close for 
message with id: undefined


Log.3

2008-12-03 00:19:04 [INFO    ] [1149274448] [Dummy-6] hello from 
localhost.localdomain
2008-12-03 00:19:04 [INFO    ] [1149274448] [Dummy-6] Mail address 
'test at example.com'. [Accepting]
2008-12-03 00:19:04 [INFO    ] [1098918224] [Dummy-1] Called close for 
message with id: undefined
2008-12-03 00:19:04 [INFO    ] [1149274448] [Dummy-6] connect from 
localhost at ('127.0.0.1', 0)
2008-12-03 00:19:04 [INFO    ] [1149274448] [Dummy-6] hello from localhost
2008-12-03 00:19:04 [INFO    ] [1149274448] [Dummy-6] Mail address 
'test at example.com'. [Accepting]
2008-12-03 00:19:04 [INFO    ] [1098918224] [Dummy-1] Called close for 
message with id: undefined
2008-12-03 00:19:14 [INFO    ] [1090525520] [Dummy-8] Called close for 
message with id: undefined


Log.4

2008-12-02 18:46:54 [INFO    ] [1115703632] [Dummy-3] Mail address 
'test at example.com'. [Accepting]
2008-12-02 18:46:55 [INFO    ] [1098918224] [Dummy-1] Called close for 
message with id: undefined
2008-12-02 18:46:56 [INFO    ] [1115703632] [Dummy-3] connect from 
localhost at ('127.0.0.1', 0)
2008-12-02 18:46:56 [INFO    ] [1115703632] [Dummy-3] hello from localhost
2008-12-02 18:46:56 [INFO    ] [1115703632] [Dummy-3] Mail address 
'test at example.com'. [Accepting]
2008-12-02 18:46:56 [INFO    ] [1098918224] [Dummy-1] Called close for 
message with id: undefined
2008-12-02 18:47:16 [INFO    ] [1090525520] [Dummy-4] Called close for 
message with id: undefined

Log.5

2008-12-02 21:57:58 [INFO    ] [1107310928] [Dummy-1] hello from example.com
2008-12-02 21:57:58 [INFO    ] [1107310928] [Dummy-1] Mail address 
'test at example.com'. [Accepting]
2008-12-02 21:57:58 [INFO    ] [1166059856] [Dummy-9] Called close for 
message with id: undefined
2008-12-02 21:57:58 [INFO    ] [1107310928] [Dummy-1] connect from 
localhost at ('127.0.0.1', 0)
2008-12-02 21:57:58 [INFO    ] [1107310928] [Dummy-1] hello from localhost
2008-12-02 21:57:58 [INFO    ] [1107310928] [Dummy-1] Mail address 
'test at example.com'. [Accepting]
2008-12-02 21:57:58 [INFO    ] [1166059856] [Dummy-9] Called close for 
message with id: undefined
2008-12-02 21:58:18 [INFO    ] [1090525520] [Dummy-5] Called close for 
message with id: undefined



<!DSPAM:11DFCFCDE90821041254574>




More information about the Pymilter mailing list