Unix Technical Forum

Re: Tru64/Alpha problems

This is a discussion on Re: Tru64/Alpha problems within the pgsql Hackers forums, part of the PostgreSQL category; --> Andrew Dunstan <andrew@dunslane.net> writes: > Honda Shigehiro has diagnosed the longstanding problems with his > Tru64/Alpha buildfarm member (bear). ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 01:46 AM
Tom Lane
 
Posts: n/a
Default Re: Tru64/Alpha problems

Andrew Dunstan <andrew@dunslane.net> writes:
> Honda Shigehiro has diagnosed the longstanding problems with his
> Tru64/Alpha buildfarm member (bear). See below.


> First, it appears that there is a problem with the system getaddrinfo(),
> which configure reports as usable, but turns out not to be. Our current
> configure test checks the return value of getaddrinfo("", "", NULL,
> NULL) but I am wondering if we should test for "localhost" instead of ""
> as the first parameter.


Huh? That's just an AC_TRY_LINK test, we don't actually execute it.
If we did, the test would fail on machines where resolution of "localhost"
is broken, which we already know is a not-so-rare disease ...

I'm not sure that I believe the "getaddrinfo doesn't work" diagnosis
anyway, seeing that bear gets through "make check" okay. Wouldn't that
fail too if there were a problem there?

> Second, it appears that this platform apparently doesn't handle Infinity
> and NaN well. The regression diffs are attached.


On the FPE front, it'd be useful to get a gdb traceback to see where the
SIGFPE is occurring.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 01:46 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Tru64/Alpha problems

Tom Lane wrote:

>Andrew Dunstan <andrew@dunslane.net> writes:
>
>
>>Honda Shigehiro has diagnosed the longstanding problems with his
>>Tru64/Alpha buildfarm member (bear). See below.
>>
>>

>
>
>
>>First, it appears that there is a problem with the system getaddrinfo(),
>>which configure reports as usable, but turns out not to be. Our current
>>configure test checks the return value of getaddrinfo("", "", NULL,
>>NULL) but I am wondering if we should test for "localhost" instead of ""
>>as the first parameter.
>>
>>

>
>Huh? That's just an AC_TRY_LINK test, we don't actually execute it.
>If we did, the test would fail on machines where resolution of "localhost"
>is broken, which we already know is a not-so-rare disease ...
>
>I'm not sure that I believe the "getaddrinfo doesn't work" diagnosis
>anyway, seeing that bear gets through "make check" okay. Wouldn't that
>fail too if there were a problem there?
>
>
>


Now that I look further into it, this machine was working just fine
until we made a change in configure, allegedly to get things right on
Tru64. The first build that went wrong was the one right after
configure.in version 1.450. I see a report from Albert Chin that this
patch worked, but the buildfarm member seems to provide counter-proof.


cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-12-2008, 01:46 AM
Tom Lane
 
Posts: n/a
Default Re: Tru64/Alpha problems

Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> I'm not sure that I believe the "getaddrinfo doesn't work" diagnosis
>> anyway, seeing that bear gets through "make check" okay. Wouldn't that
>> fail too if there were a problem there?


> Now that I look further into it, this machine was working just fine
> until we made a change in configure, allegedly to get things right on
> Tru64. The first build that went wrong was the one right after
> configure.in version 1.450. I see a report from Albert Chin that this
> patch worked, but the buildfarm member seems to provide counter-proof.


Ugh. So probably it depends on just which version of Tru64 you're using
:-(. Maybe earlier versions of Tru64 have a broken getaddrinfo and it's
fixed in later ones? How would we tell the difference?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-12-2008, 01:48 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Tru64/Alpha problems

Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>
>> Tom Lane wrote:
>>
>>> I'm not sure that I believe the "getaddrinfo doesn't work" diagnosis
>>> anyway, seeing that bear gets through "make check" okay. Wouldn't that
>>> fail too if there were a problem there?
>>>

>
>
>> Now that I look further into it, this machine was working just fine
>> until we made a change in configure, allegedly to get things right on
>> Tru64. The first build that went wrong was the one right after
>> configure.in version 1.450. I see a report from Albert Chin that this
>> patch worked, but the buildfarm member seems to provide counter-proof.
>>

>
> Ugh. So probably it depends on just which version of Tru64 you're using
> :-(. Maybe earlier versions of Tru64 have a broken getaddrinfo and it's
> fixed in later ones? How would we tell the difference?
>


I have done some more digging on this. The buildfarm member had a couple
of configuration issues which I have remedied, and which almost
certainly account for the float test errors we saw. However, we still
get an error when we try to start the installed s/w with the default
listen_addresses:

LOG: could not translate host name "localhost", service "5832" to address: servname not supported for ai_socktype

Of course, this won't be seen with "make check", since it starts on Unix
with listen_addresses='', which means we never even look for any sort of
TCP addrinfo.

I found a hint on the web that we should use -D_SOCKADDR_LEN. I tried
this, but got a link failure, complaining about revc and send. This man
page extract explains:

[Tru64 UNIX] The recv() function is identical to the recvfrom() function
with a zero-valued address_len parameter, and to the read() function if no
flags are used. For that reason the recv() function is disabled when
4.4BSD behavior is enabled; that is, when the _SOCKADDR_LEN compile-time
option is defined.

I'd like to know some settings that we can use that will get Tru64
cleanly through the buildfarm set. If noone offers any, I propose that
we revert the getaddrinfo() test in configure and use our own on Tru64
until they do.

cheers

andrew






---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-12-2008, 01:52 AM
Andrew Dunstan
 
Posts: n/a
Default Re: Tru64/Alpha problems

I wrote:
>
> I have done some more digging on this. The buildfarm member had a
> couple of configuration issues which I have remedied, and which almost
> certainly account for the float test errors we saw. However, we still
> get an error when we try to start the installed s/w with the default
> listen_addresses:
>
> LOG: could not translate host name "localhost", service "5832" to
> address: servname not supported for ai_socktype
>
> Of course, this won't be seen with "make check", since it starts on
> Unix with listen_addresses='', which means we never even look for any
> sort of TCP addrinfo.
>
> I found a hint on the web that we should use -D_SOCKADDR_LEN. I tried
> this, but got a link failure, complaining about revc and send. This
> man page extract explains:
>
> [Tru64 UNIX] The recv() function is identical to the recvfrom()
> function
> with a zero-valued address_len parameter, and to the read() function
> if no
> flags are used. For that reason the recv() function is disabled when
> 4.4BSD behavior is enabled; that is, when the _SOCKADDR_LEN compile-time
> option is defined.
>
> I'd like to know some settings that we can use that will get Tru64
> cleanly through the buildfarm set. If noone offers any, I propose that
> we revert the getaddrinfo() test in configure and use our own on Tru64
> until they do.
>


I have not had any response to this. Is there any objection to my
reverting the configure changes for the head and 8.1 branches? If not I
intend to do that around the end of the week.

cheers

andrew

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-12-2008, 01:52 AM
Tom Lane
 
Posts: n/a
Default Re: Tru64/Alpha problems

Andrew Dunstan <andrew@dunslane.net> writes:
>> I'd like to know some settings that we can use that will get Tru64
>> cleanly through the buildfarm set. If noone offers any, I propose that
>> we revert the getaddrinfo() test in configure and use our own on Tru64
>> until they do.


> I have not had any response to this. Is there any objection to my
> reverting the configure changes for the head and 8.1 branches?


Presumably, whoever was complaining beforehand will come back ...
but I don't remember who that was.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-12-2008, 01:54 AM
=?ISO-8859-1?Q?Hans-J=FCrgen_Sch=F6nig?=
 
Posts: n/a
Default Re: Tru64/Alpha problems

Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>
>>>I'd like to know some settings that we can use that will get Tru64
>>>cleanly through the buildfarm set. If noone offers any, I propose that
>>>we revert the getaddrinfo() test in configure and use our own on Tru64
>>>until they do.

>
>
>>I have not had any response to this. Is there any objection to my
>>reverting the configure changes for the head and 8.1 branches?

>
>
> Presumably, whoever was complaining beforehand will come back ...
> but I don't remember who that was.
>
> regards, tom lane
>



i think the issue you are referring to comes from a Solaris report.
some patch levels of solaris have seriously broken getaddrinfo(). in
this case pg_hba.conf cannot be read anymore.
we got a similar report some time ago. we did a simple configure tweak
to make sure that the onboard function is used. it seems to happen only
on some strange patchlevel (god knows which ones).

best regards,

hans


--
Cybertec Geschwinde & Schönig GmbH
Schöngrabern 134; A-2020 Hollabrunn
Tel: +43/1/205 10 35 / 340
www.postgresql.at, www.cybertec.at

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:47 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com