Re: signal 11 on AIX: 7.4.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: signal 11 on AIX: 7.4.2
Date: 2004-04-15 23:52:59
Message-ID: 22416.1082073179@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Sullivan <ajs(at)crankycanuck(dot)ca> writes:
> We've had a backend crash with sig 11 during connection. My guess is
> there's something up with (maybe) the IPv6 support on AIX.

> (gdb) bt
> #0 0xd01d7778 in memmove () from /usr/lib/libc.a(shr.o)
> #1 0xd0326e1c in getaddrinfo2 () from /usr/lib/libc.a(shr.o)
> #2 0xd0327b6c in getaddrinfo () from /usr/lib/libc.a(shr.o)
> #3 0x1005860c in getaddrinfo_all (hostname=0x34e0 "",
> servname=0x74696f <Address 0x74696f out of bounds>, hintp=0xf03a2e80,
> result=0x74696f) at ip.c:78
> #4 0x101f9330 in parse_hba (line=0x202ae198, port=0x202a6988,
> found_p=0x2ff1f810 "", error_p=0x2ff1f811 "") at hba.c:669

Hm, a crash inside the system-supplied getaddrinfo routine would suggest
that there's something wrong with the values we are passing into it.
The most likely bet is that we don't agree with libc about the layout of
"struct addrinfo". The configure script goes out of its way to be
paranoid about this, because we've seen it get confused by add-on
libbind installations (see also the head comment in
src/include/getaddrinfo.h) ... but I'll bet that AIX has found another
way to trip it up.

I can see from your trace that you are using the getaddrinfo code from
libc, but where is configure finding a header that declares struct
addrinfo?

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-04-16 00:18:49 Re: query slows down with more accurate stats
Previous Message Manfred Koizar 2004-04-15 23:32:53 Re: query slows down with more accurate stats