[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#58930: marked as done (linking against librt causes segfault in gethostbyname on m68k)



Your message dated Mon, 24 Mar 2003 09:26:35 +0900
with message-id <80r88xk3t0.wl@oris.opensource.jp>
and subject line linking against librt causes segfault in gethostbyname on m68k
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 25 Feb 2000 01:17:37 +0000
Received: (qmail 22552 invoked from network); 25 Feb 2000 01:17:37 -0000
Received: from antiochus-fe0.ultra.net (146.115.8.188)
  by master.debian.org with SMTP; 25 Feb 2000 01:17:37 -0000
Received: from jekyl.doug.ties.org (207-172-97-29.s283.tnt2.sbo.ma.dialup.rcn.com [207.172.97.29]) by antiochus-fe0.ultra.net (8.8.8/ult/n20340/mtc.v2) with ESMTP id UAA12057; Thu, 24 Feb 2000 20:17:31 -0500 (EST)
Received: from doug by jekyl.doug.ties.org with local (Exim 3.12 #1 (Debian))
	id 12O9Nq-0000KO-00; Thu, 24 Feb 2000 20:17:30 -0500
Message-ID: <XFMail.20000224201730.doug@ties.org>
X-Mailer: XFMail 1.4.4 on Linux
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
Date: Thu, 24 Feb 2000 20:17:30 -0500 (EST)
Reply-To: doug@ties.org
From: Doug Larrick <doug@ties.org>
To: submit@bugs.debian.org
Subject: linking against librt causes segfault in gethostbyname on m68k
Cc: doug@ties.org
Sender: Doug Larrick <doug@jekyl.doug.ties.org>

Package: libc6
Version: 2.1.3-2

Linking simple test program that calls gethostbyname() against librt
on m68k causes a segmentation fault.  The system is up-to-date against
potato (frozen) as of the Feb. 23, 2000 packages list.  

I noticed this problem because ntpdate on m68k exhibits it.  I
narrowed it to the following example.

Transcript:

inigo:~$ uname -a
Linux inigo 2.2.10 #54 Sun Aug 1 00:02:49 EDT 1999 m68k unknown
inigo:~$ cat gethosttest.c
#include <stdio.h>
#include <stdlib.h>
#include <netdb.h>

int main (int argc, char **argv)
{
  struct hostent *hp;
  char *name = argv[1];

  hp = gethostbyname(name);

  printf("Gotit: %x\n", hp);
  fflush(stdout);

  printf("%s: %X\n", hp->h_name, hp->h_addr_list[0]);

}
inigo:~$ cc gethosttest.c
inigo:~$ ./a.out www.debian.org
Gotit: c00cb5ec
www.debian.org: 800027D4
inigo:~$ ldd a.out
        libc.so.6 => /lib/libc.so.6 (0xc0015000)
        /lib/ld.so.1 => /lib/ld.so.1 (0xc0000000)
inigo:~$ cc -lrt gethosttest.c
inigo:~$ ./a.out www.debian.org
Segmentation fault
inigo:~$ ldd a.out
        librt.so.1 => /lib/librt.so.1 (0xc0015000)
        libc.so.6 => /lib/libc.so.6 (0xc001a000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xc00d2000)
        /lib/ld.so.1 => /lib/ld.so.1 (0xc0000000)
inigo:~$ 


-- 
Doug Larrick  doug@ties.org  doug.larrick@compaq.com  AIM: DougLarick
---------------------------------------
Received: (at 58930-done) by bugs.debian.org; 24 Mar 2003 00:26:38 +0000
>From gotom@debian.or.jp Sun Mar 23 18:26:37 2003
Return-path: <gotom@debian.or.jp>
Received: from oris.opensource.jp (oris.opensource.gr.jp) [218.44.239.73] (postfix)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18xFnQ-00084q-00; Sun, 23 Mar 2003 18:26:36 -0600
Received: from oris.opensource.jp (oris.opensource.jp [218.44.239.73])
	by oris.opensource.gr.jp (Postfix) with ESMTP id 7470BC33C7
	for <58930-done@bugs.debian.org>; Mon, 24 Mar 2003 09:26:35 +0900 (JST)
Date: Mon, 24 Mar 2003 09:26:35 +0900
Message-ID: <80r88xk3t0.wl@oris.opensource.jp>
From: GOTO Masanori <gotom@debian.or.jp>
To: 58930-done@bugs.debian.org
Subject: Re: linking against librt causes segfault in gethostbyname on m68k
User-Agent: Wanderlust/2.9.9 (Unchained Melody) SEMI/1.14.3 (Ushinoya)
 FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2
 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=US-ASCII
Delivered-To: 58930-done@bugs.debian.org
X-Spam-Status: No, hits=-0.5 required=4.0
	tests=QUOTED_EMAIL_TEXT,SPAM_PHRASE_00_01,USER_AGENT
	version=2.44
X-Spam-Level: 

> Linking simple test program that calls gethostbyname() against librt
> on m68k causes a segmentation fault.  The system is up-to-date against
> potato (frozen) as of the Feb. 23, 2000 packages list.
> 
> I noticed this problem because ntpdate on m68k exhibits it.  I
> narrowed it to the following example.
> 
> Transcript:
> 
> inigo:~$ uname -a
> Linux inigo 2.2.10 #54 Sun Aug 1 00:02:49 EDT 1999 m68k unknown
> inigo:~$ cat gethosttest.c
> #include <stdio.h>
> #include <stdlib.h>
> #include <netdb.h>
> 
> int main (int argc, char **argv)
> {
>   struct hostent *hp;
>   char *name = argv[1];
> 
>   hp = gethostbyname(name);
> 
>   printf("Gotit: %x\n", hp);
>   fflush(stdout);
> 
>   printf("%s: %X\n", hp->h_name, hp->h_addr_list[0]);
> 
> }
> inigo:~$ cc gethosttest.c
> inigo:~$ ./a.out www.debian.org
> Gotit: c00cb5ec
> www.debian.org: 800027D4
> inigo:~$ ldd a.out
>         libc.so.6 => /lib/libc.so.6 (0xc0015000)
>         /lib/ld.so.1 => /lib/ld.so.1 (0xc0000000)
> inigo:~$ cc -lrt gethosttest.c
> inigo:~$ ./a.out www.debian.org
> Segmentation fault

> The original submitter of bug #58930 does not have an m68-linux system
> anymore. Can I get one of you people to verify it for me please? I
> cannot reproduce it on i386, sparc or powerpc, but the submitter was
> experiencing the problem on m68k, so I want to verify the problem isn't
> still there.

It's fixed in stable.

    crest:~/bugs/58930> cc gethosttest.c 
    crest:~/bugs/58930> ./a.out www.debian.org
    Gotit: c01033e0
    www.debian.org: 80002790
    crest:~/bugs/58930> cc -lrt gethosttest.c
    ./a.out www.debian.org
    crest:~/bugs/58930> ./a.out www.debian.org
    Gotit: c01153e0
    www.debian.org: 800027C8
    crest:~/bugs/58930> dpkg -s libc6 | grep Version
    Version: 2.2.5-11.2
    crest:~/bugs/58930> 

I close this bug.

Regards,
-- gotom



Reply to: