[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dawrin- why does pinky SIGBUS
From: |
Paul Eggert |
Subject: |
Re: Dawrin- why does pinky SIGBUS |
Date: |
Wed, 27 Sep 2006 11:27:08 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
mwoehlke <address@hidden> writes:
> That said, given the address when I set a breakpoint there, I am
> guessing it is the system getaddrinfo?
Yes, that's right. I installed the following patch; does it fix
things for you?
2006-09-27 Paul Eggert <address@hidden>
* lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
getaddrinfo.
--- lib/canon-host.c 13 Sep 2006 22:38:14 -0000 1.22
+++ lib/canon-host.c 27 Sep 2006 18:25:11 -0000
@@ -69,7 +69,10 @@ canon_host_r (char const *host, int *che
status = getaddrinfo (host, NULL, &hints, &res);
if (!status)
{
- retval = strdup (res->ai_canonname);
+ /* http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00300.html
+ says Darwin 7.9.0 getaddrinfo returns 0 but sets
+ res->ai_canonname to NULL. */
+ retval = strdup (res->ai_canonname ? res->ai_canonname : host);
if (!retval && cherror)
*cherror = EAI_MEMORY;
freeaddrinfo (res);
- Re: Dawrin- why does pinky SIGBUS,
Paul Eggert <=