[exim-dev] [Bug 713] New: SIGSEGV after header_add_* from l…

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Mikhail
Fecha:  
A: exim-dev
Asunto: [exim-dev] [Bug 713] New: SIGSEGV after header_add_* from local_scand dlfunc module
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=713
           Summary: SIGSEGV after header_add_* from local_scand dlfunc
                    module
           Product: Exim
           Version: 4.63
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Filters
        AssignedTo: nigel@???
        ReportedBy: Mikhail.Modin@???
                CC: exim-dev@???



I develop local_scan dlfunc module and have discovered problem. After call
header_add_* functions, memory allocated inside header_add_* are freed by
expand.c:5183 or maybe some other functions...

this is short debug log (full log are atteached)

*---0 Get 0x8147f00    16       header.c  175          
**---0 Get 0x8147f10   136       string.c  419
---0 Get 0x8147f98    24       string.c  353
---0 Rst 0x8147bda    **       expand.c 5183 24600
---0 Get 0x8147be0    24       string.c  353
---0 Get 0x8147bf8   120       expand.c 2863
---0 Get 0x8147c70   112       expand.c 2863
---0 Rst 0x8147c70    **       expand.c 2939 24600
---0 Get 0x8147c70   104       string.c  862
---0 Rst 0x8147c82    **       expand.c 5183 24600
---0 Get 0x8147c88   104       expand.c 2863
---0 Rst 0x8147c9b    **       expand.c 5183 24600
---0 Get 0x8147ca0    88         exim.c   34
---0 Get 0x8147cf8    80       expand.c 2863
---0 Rst 0x8147cfc    **       expand.c 5183 24600
---0 Get 0x8147d00    72       expand.c 2863
---0 Rst 0x8147d03    **       expand.c 5183 24600
---0 Rst 0x8147bfc    **       expand.c 5183 24600
---0 Get 0x8147c00    32       string.c  353
---0 Get 0x8147c20   600      receive.c  472
---0 Get 0x8147e78    16       header.c  175
---0 Get 0x8147e88    72       string.c  419
---0 Get 0x8147ed0    16       header.c  175
---0 Get 0x8147ee0    32       string.c  419
***---0 Get 0x8147f00    80       expand.c 2863
***---0 Rst 0x8147f00    **       expand.c 5129 24600
***---0 Get 0x8147f00   104       string.c  862
---0 Rst 0x8147f20    **       expand.c 5183 24600


marked lines:

* - alloc memory for header_line
** - alloc memery for header_line.text
*** - allocated memory are used again without free


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