[Bug 640088] New: checking flavor of gethostbyname_r result sun
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c0 Summary: checking flavor of gethostbyname_r result sun Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: justo.alonso@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=390223) --> (http://bugzilla.novell.com/attachment.cgi?id=390223) conftest.c to reproduce problem User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.7) Gecko/20100726 CentOS/3.6-3.el5.centos Firefox/3.6.7 Compiling programs that check of flavor of gethostbyname_r fail, because the check result in sun flavor, not glibc The check from configure for idnkit, included in bind source rpm, result as sun. Reproducible: Always Steps to Reproduce: Compile the source code in attachement (extracted from configure): gcc -o conftest -g -O2 conftest.c -ldl -lnsl exec it. Actual Results: the program return 1 Expected Results: the program must be return 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c1 Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pth@novell.com AssignedTo|pth@novell.com |pbaudis@novell.com --- Comment #1 from Philipp Thomas <pth@novell.com> 2010-09-17 15:55:42 CEST --- I just added printf calls to both cases and the program reports glibc. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c2 --- Comment #2 from Justo Alonso <justo.alonso@gmail.com> 2010-09-17 13:58:30 UTC --- Hi Philipp, thankx for the quick reply. Can you send me a rpm -qa of your system, for compare rpms & libs ? thanks in advance. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c3 --- Comment #3 from Philipp Thomas <pth@novell.com> 2010-09-17 16:23:50 CEST --- Created an attachment (id=390242) --> (http://bugzilla.novell.com/attachment.cgi?id=390242) The modified test I used. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c4 --- Comment #4 from Justo Alonso <justo.alonso@gmail.com> 2010-09-17 14:27:53 UTC --- web15:~ # cat bug-640088_gethostbyname_flavor.c #include <stddef.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <stdio.h> int main(int argc, char *argv[]) { int err = 0; struct hostent hebuf, *hp; char buf[10]; /* Try resolving a invalid name using glibc flavor. */ (void)gethostbyname_r("@#!", &hebuf, buf, sizeof(buf), &hp, &err); if (err != 0) { puts("glibc flavour\n"); return 0; } else { puts("Sun flavour\n"); return 1; } } web15:~ # gcc -o bug-640088_gethostbyname_flavor -g -O2 bug-640088_gethostbyname_flavor.c -ldl -lnsl web15:~ # ./bug-640088_gethostbyname_flavor Sun flavour web15:~ # -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c5 --- Comment #5 from Philipp Thomas <pth@novell.com> 2010-09-17 16:32:26 CEST --- Created an attachment (id=390243) --> (http://bugzilla.novell.com/attachment.cgi?id=390243) rpm -a output Here is the output of 'rpm -qa'. Note that this isn't my system but rather a clean 11.3 chroot environment as set up when issuing 'osc build', i.e. when building packages for the distribution. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c6 --- Comment #6 from Philipp Thomas <pth@novell.com> 2010-09-17 16:36:16 CEST --- -ldl and -lnsl aren't necessary. What is the output of 'ldd bug-640088_gethostbyname_flavor'? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c7 --- Comment #7 from Justo Alonso <justo.alonso@gmail.com> 2010-09-20 07:50:26 UTC --- -ldl and -lnsl was added by bind9 configure & compile ... web15:~ # gcc -o bug-640088_gethostbyname_flavor -g -O2 bug-640088_gethostbyname_flavor.c web15:~ # ldd bug-640088_gethostbyname_flavor linux-vdso.so.1 => (0x00007fff93dff000) libc.so.6 => /lib64/libc.so.6 (0x00007f54dbdb1000) /lib64/ld-linux-x86-64.so.2 (0x00007f54dc111000) web15:~ # -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c8 --- Comment #8 from Justo Alonso <justo.alonso@gmail.com> 2010-09-20 08:42:40 UTC --- It's a 11.3 updated guest system on a xen 5.6 host. When we exec the bug-640088_gethostbyname_flavor, a tcpdump capture the dns query 10:28:24.013228 IP 172.16.15.1.45831 > 172.16.250.35.53: 24990+ A? @#!.gestion.red.es. (36) 10:28:24.014000 IP 172.16.250.35.53 > 172.16.15.1.45831: 24990 NXDomain* 0/1/0 (86) 10:28:24.014105 IP 172.16.15.1.33427 > 172.16.250.35.53: 52243+ A? @#!.red.es. (28) 10:28:24.015111 IP 172.16.250.35.53 > 172.16.15.1.33427: 52243 NXDomain* 0/1/0 (79) Then ... if dnsquery return NXDOMAIN (err should be HOST_NOT_FOUND), why return 0 (on my system) ?? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c9 --- Comment #9 from Justo Alonso <justo.alonso@gmail.com> 2010-09-21 10:09:48 UTC --- Finally, semms a nscd bug: web15:~ # /etc/init.d/nscd start Starting Name Service Cache Daemon done web15:~ # ./bug-640088_gethostbyname_flavor Sun flavour web15:~ # /etc/init.d/nscd stop Shutting down Name Service Cache Daemon done web15:~ # ./bug-640088_gethostbyname_flavor glibc flavour -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c10 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |justo.alonso@gmail.com --- Comment #10 from Petr Baudis <pbaudis@novell.com> 2010-09-21 14:05:57 UTC --- Can you check if you are using nscd or unscd? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c11 --- Comment #11 from Justo Alonso <justo.alonso@gmail.com> 2010-09-21 14:12:24 UTC --- unscd web15:~ # rpm -qa | grep -i nscd unscd-0.45-6.1.1.x86_64 libnscd-2.0.2-113.1.x86_64 web15:~ # rpm -ql unscd /etc/apparmor.d /etc/apparmor.d/usr.sbin.nscd /etc/init.d/nscd /etc/nscd.conf /usr/sbin/nscd /usr/sbin/rcnscd /usr/share/doc/packages/unscd /usr/share/doc/packages/unscd/COPYING /var/run/nscd /var/run/nscd/nscd.pid /var/run/nscd/socket -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c12 --- Comment #12 from Justo Alonso <justo.alonso@gmail.com> 2010-09-21 14:41:54 UTC --- with nscd-2.11.2-3.1.1.x86_64 all work fine -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c13 --- Comment #13 from Justo Alonso <justo.alonso@gmail.com> 2010-09-21 15:06:04 UTC --- Petr, can you reproduce the problem with unscd running ? thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c Philipp Thomas <pth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@suse.de AssignedTo|pth@novell.com |matz@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640088 https://bugzilla.novell.com/show_bug.cgi?id=640088#c16 Andreas Schwab <schwab@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|justo.alonso@gmail.com | Resolution| |WONTFIX --- Comment #16 from Andreas Schwab <schwab@suse.com> 2013-11-12 16:35:14 CET --- unscd has been dropped. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com