Re: [Exim] segfault in 4.21 on Linux

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Arkadiusz Miskiewicz
CC: exim-users
Betreff: Re: [Exim] segfault in 4.21 on Linux
On Sun, 17 Aug 2003, Arkadiusz Miskiewicz wrote:

> On Linux system (kernel 2.4.21, glibc 2.3.2) exim 4.21 segfault while 4.20
> does not. IPv6 capable system.


Have you tried the patch I posted for BSD systems? (See below).

> Adding interfaces_local = causes that exim no longer segfaults.


That suggests that this patch might solve it.

Philip

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book



*** /exim-4.21/src/os.c      Tue Aug 12 16:39:56 2003
--- src/os.c Thu Aug 14 15:53:49 2003
***************
*** 659,665 ****
    addrp = &ifreq.V_ifr_addr;


    #else
!   memcpy((char *)&ifreq, cp, len);
    memcpy(addrbuf, (char *)&(ifreq.V_ifr_addr), len - sizeof(ifreq.V_ifr_name));
    addrp = (struct sockaddr *)addrbuf;
    #endif
--- 659,665 ----
    addrp = &ifreq.V_ifr_addr;


    #else
!   memcpy((char *)&ifreq, cp, sizeof(ifreq));
    memcpy(addrbuf, (char *)&(ifreq.V_ifr_addr), len - sizeof(ifreq.V_ifr_name));
    addrp = (struct sockaddr *)addrbuf;
    #endif