[uClibc] Postfix & uClibc -> __res_search problem

J.A.J. van Belkum aukjan at gfo.nl
Thu Aug 5 15:31:50 UTC 2004


OK, I am back, and have been breaking my head over this one...

Postfix compiled succesfully and I am running it now within UML, which has a good connection to the 
outside world. Now I am trying to send an e-mail.... This fails! I get the following error:

Aug  5 09:16:19 (none) mail.info postfix/smtp[5328]: 0C02011DF: to=<user at existing.domain>, 
relay=none, delay=19, status=deferred (Name service error for name=vanbelkum.nl type=MX: Malformed 
name server reply)

I did an ltrace of the smtp proces, and got the following involving the res_search:

5453 __res_init(0x8072ea8, 58, 0, 0, 0x8072ea8 <unfinished ...>
5453 SYS_open("/etc/resolv.conf", 0, 01001637670) = 11
5453 SYS_ioctl(11, 21505, 0x7fffe460, 0x7fffe4ac, 11) = -25
5453 SYS_read(11, "nameserver 213.197.28.3\nnameserv"..., 4096) = 46
5453 SYS_read(11, "", 4096)                      = 0
5453 SYS_close(11)                               = 0
5453 <... __res_init resumed> )                  = 0
5453 __res_search(0x8072ea8, 1, 15, 0x7fffe660, 4096 <unfinished ...>
5453 SYS_socketcall(1, 0x7fffdfcc, 0x4004f6ec, 0, 30) = 11
5453 SYS_socketcall(3, 0x7fffdfc8, 0x4004f6ec, 0, 30) = 0
5453 SYS_socketcall(9, 0x7fffdfc8, 0x4004f6ec, 0x7fffe08c, 30) = 30
5453 SYS__newselect(12, 0x7fffe08c, 0, 0, 0x7fffe014) = 1
5453 SYS_socketcall(10, 0x7fffdfc8, 0x4004f6ec, 0x7fffe08c, 0x7fffe10c) = 280
5453 SYS_close(11)                               = 0
5453 <... __res_search resumed> )                = 9
5453 realloc(0x8072480, 28)                      = 0x8073f58
5453 memset(0x8073f6a, '\377', 10)               = 0x8073f6a
5453 realloc(0x8073f58, 48)                      = 0x8073f58
5453 memset(0x8073f74, '\377', 20)               = 0x8073f74
5453 realloc(0x8073f58, 88)                      = 0x8073f58
5453 memset(0x8073f88, '\377', 40)               = 0x8073f88
5453 memset(0x8072ea0, '\377', 21)               = 0x8072ea0
5453 free(0x8072ea0)                             = <void>
5453 malloc(44)                                  = 0x8073fb8
5453 memset(0x8073fc0, '\377', 36)               = 0x8073fc0
5453 malloc(108)                                 = 0x8073fe8
5453 memset(0x8073ff0, '\377', 100)              = 0x8073ff0
5453 malloc(44)                                  = 0x8074058
5453 memset(0x8074060, '\377', 36)               = 0x8074060
5453 malloc(108)                                 = 0x8074088
5453 memset(0x8074090, '\377', 100)              = 0x8074090
5453 malloc(22)                                  = 0x8072ea0
5453 memset(0x8072ea8, '\377', 14)               = 0x8072ea8
5453 strcpy(0x8072ea8, "private")                = 0x8072ea8
5453 strcat("private", "/")                      = "private/"
5453 strcat("private/", "defer")                 = "private/defer"


I am lost... any suggestions ??

Thanks.


Erik Andersen wrote:
> On Mon Aug 02, 2004 at 01:22:05PM +0200, J.A.J. van Belkum wrote:
> 
>>I got the latest CVS and I got it to compile succesfully. Postfix now 
>>starts up normally (within UML system), but as soon as I connect to port 25 
>>(simple telnet) the smtpd is killed by signal 11. I compiled it with db4.  
>>The errors i get are:
>>
>> /usr/libexec/postfix/smtpd  killed by signal 11
>> /usr/libexec/postfix/smtpd: bad command startup
>>
>>Also the postalias command (so also newaliases) failes with a segfault... 
>>So my first guess would be a problem with db4.  Would it be advisable to 
>>use a diffent type of database... (like tinycbd).
>>
>>Thanks for any insight you might have...
> 
> 
> Could you get an ltrace, or gdb backtrace of the programs
> that segfault?
> 
>  -Erik
> 
> --
> Erik B. Andersen             http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--
> 




More information about the uClibc mailing list