Bug#526734: libc: poll not working on ipv4 socket

2009-05-03 Thread Salvo Tomaselli
Package: libc6
Version: 2.9-9
Severity: normal
File: libc

The following code:

if (poll(monitor,1,READ_TIMEOUT)==0) {
r=0;
} else {
r = read(fd,buf-buffer,buf-size);
}

Works as expected (giving up the read after the timeout if there is no data) if
fd is an ipv6 socket, but does a blocking read if fd is an ipv4 socked.

If required, i can provide the full source code.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (101, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-1-686 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libgcc1   1:4.4.0-1  GCC support library

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  belocs-locales-data [locales] 2.4-6  base files for localization
pn  glibc-doc none (no description available)
ii  libc6-i6862.9-9  GNU C Library: Shared libraries [i

-- debconf information:
* glibc/upgrade: true
  glibc/disable-screensaver:
  glibc/restart-failed:
* glibc/restart-services: rsync cups cron



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#526734: libc: poll not working on ipv4 socket

2009-05-03 Thread Aurelien Jarno
On Sun, May 03, 2009 at 09:04:31AM +0200, Salvo Tomaselli wrote:
 Package: libc6
 Version: 2.9-9
 Severity: normal
 File: libc
 
 The following code:
 
 if (poll(monitor,1,READ_TIMEOUT)==0) {
 r=0;
 } else {
 r = read(fd,buf-buffer,buf-size);
 }
 
 Works as expected (giving up the read after the timeout if there is no data) 
 if
 fd is an ipv6 socket, but does a blocking read if fd is an ipv4 socked.
 
 If required, i can provide the full source code.
 

Yes, please provide a simple testcase showing this behaviour. Without
context, it is difficult to see if the code is correct or not.

-- 
Aurelien Jarno  GPG: 1024D/F1BCDB73
aurel...@aurel32.net http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#526734: heem

2009-05-03 Thread Salvo Tomaselli
I am afraid after a suspend2ram it isn't occurring again :-s

-- 
Salvo Tomaselli



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



r3441 - in glibc-package/branches/eglibc-2.9/debian: . patches patches/any

2009-05-03 Thread Aurelien Jarno
Author: aurel32
Date: 2009-05-03 16:33:37 + (Sun, 03 May 2009)
New Revision: 3441

Added:
   
glibc-package/branches/eglibc-2.9/debian/patches/any/submitted-install-map-files.diff
Modified:
   glibc-package/branches/eglibc-2.9/debian/changelog
   glibc-package/branches/eglibc-2.9/debian/patches/series
Log:
- Add any/submitted-install-map-files.diff to fix GNU/Hurd builds.



Modified: glibc-package/branches/eglibc-2.9/debian/changelog
===
--- glibc-package/branches/eglibc-2.9/debian/changelog  2009-05-01 23:21:34 UTC 
(rev 3440)
+++ glibc-package/branches/eglibc-2.9/debian/changelog  2009-05-03 16:33:37 UTC 
(rev 3441)
@@ -10,6 +10,7 @@
 - Drop any/submitted-getcwd-sys_param_h.diff (merged in eglibc).
 - Add any/submitted-cross-zic.diff to fix biarch builds.
 - Add any/submitted-nss-nsswitch.diff to fix linuxthreads builds.
+- Add any/submitted-install-map-files.diff to fix GNU/Hurd builds.
 - More tests of flavour/biarch builds are run, update the expected
   testsuite results accordingly.
 - Rename glibc-source package into eglibc-source.

Added: 
glibc-package/branches/eglibc-2.9/debian/patches/any/submitted-install-map-files.diff
===
--- 
glibc-package/branches/eglibc-2.9/debian/patches/any/submitted-install-map-files.diff
   (rev 0)
+++ 
glibc-package/branches/eglibc-2.9/debian/patches/any/submitted-install-map-files.diff
   2009-05-03 16:33:37 UTC (rev 3441)
@@ -0,0 +1,21 @@
+2009-05-03  Aurelien Jarno  aurel...@aurel32.net
+
+   * Makerules (install-map): Don't install libhurduser.map and
+   libmachuser.map.
+
+--- a/Makerules
 b/Makerules
+@@ -911,10 +911,12 @@
+ # libpthread_pic.a breaks mklibs, so don't install it and its map.
+ install-lib := $(install-lib) $(install-lib.so-versioned:%.so=%_pic.a)
+ install-lib := $(filter-out libpthread_pic.a,$(install-lib))
++# Despite having a soname libhurduser and libmachuser do not use symbol
++# versioning, so don't install the corresponding .map files.
+ ifeq ($(versioning),yes)
+ install-map := $(patsubst %.so,%.map,\
+   $(foreach L,$(install-lib.so-versioned),$(notdir $L)))
+-install-map := $(filter-out libpthread.map,$(install-map))
++install-map := $(filter-out libhurduser.map libmachuser.map 
libpthread.map,$(install-map))
+ ifndef subdir
+ install-map := $(install-map) libc.map
+ endif

Modified: glibc-package/branches/eglibc-2.9/debian/patches/series
===
--- glibc-package/branches/eglibc-2.9/debian/patches/series 2009-05-01 
23:21:34 UTC (rev 3440)
+++ glibc-package/branches/eglibc-2.9/debian/patches/series 2009-05-03 
16:33:37 UTC (rev 3441)
@@ -203,3 +203,4 @@
 any/cvs-binutils_2.20.diff
 any/submitted-cross-zic.diff
 any/submitted-nss-nsswitch.diff
+any/submitted-install-map-files.diff


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#526823: libc6 2.9-9 broke DNS resolver again

2009-05-03 Thread Luca Tettamanti
Package: libc6
Version: 2.9-9
Severity: normal

Hello, I was affected by the resolver bug that was solved in 2.9-7; as of 2.9-9
the resolver stopped working again. The automatic workaround that is mentioned
in the changelog is not working, and single-request in resolv.conf doesn't
seem to have any effect either.

Here's a dump of the resolver trying to get the address of google.com:

14:11:00.754265 IP (tos 0x0, ttl 64, id 45448, offset 0, flags [DF], proto UDP 
(17), length 60)
10.0.0.3.60486  10.0.0.138.53: [udp sum ok] 39108+ A? www.google.com. (32)
14:11:00.754303 IP (tos 0x0, ttl 64, id 45449, offset 0, flags [DF], proto UDP 
(17), length 60)
10.0.0.3.60486  10.0.0.138.53: [udp sum ok] 48015+ ? www.google.com. 
(32)
14:11:00.759312 IP (tos 0x0, ttl 64, id 1324, offset 0, flags [none], proto UDP 
(17), length 60)
10.0.0.138.53  10.0.0.3.60486: [udp sum ok] 48015 NotImp q: ? 
www.google.com. 0/0/0 (32)
14:11:00.817710 IP (tos 0x0, ttl 64, id 1325, offset 0, flags [none], proto UDP 
(17), length 144)
10.0.0.138.53  10.0.0.3.60486: 39108 q: A? www.google.com. 5/0/0 
www.google.com. CNAME www.l.google.com.[|domain]

The DNS server (it's my ADSL router) responds NotImp to the  query (it does
not support IPv6). The reply (CNAME) to the A query seems correct though.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-rc3-00329-g0c8454f (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libc6 depends on:
ii  libgcc1   1:4.3.3-8  GCC support library

libc6 recommends no packages.

Versions of packages libc6 suggests:
pn  glibc-doc none (no description available)
ii  locales   2.9-7  GNU C Library: National Language (

-- debconf information:
* glibc/upgrade: true
  glibc/disable-screensaver:
  glibc/restart-failed:
* glibc/restart-services: vsftpd openbsd-inetd mysql exim4 cups cron atd




-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#526734: libc: poll not working on ipv4 socket

2009-05-03 Thread Aurelien Jarno
On Mon, May 04, 2009 at 12:44:43AM +0800, china...@mail.ustc.edu.cn wrote:
 
 Hi,
   can you tell me how to see this code context!
   thank you!

With only the three lines of code you have sent, it is very difficult to
understand your problem. Would it be possible to send us a simple code
that shows the problem?

For example with such a few lines or code, I don't know how 'fd' is
setup into non blocking mode.

-- 
Aurelien Jarno  GPG: 1024D/F1BCDB73
aurel...@aurel32.net http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



r3442 - glibc-package/branches/eglibc-2.9/debian/testsuite-checking

2009-05-03 Thread Aurelien Jarno
Author: aurel32
Date: 2009-05-03 22:10:42 + (Sun, 03 May 2009)
New Revision: 3442

Modified:
   
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips-linux-gnu-libc
   
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips32-linux-mipsn32
   
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips32el-linux-mipsn32
   
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips64-linux-mips64
   
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips64el-linux-mips64
   
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mipsel-linux-gnu-libc
Log:
Update mips/mipsel testsuite results


Modified: 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips-linux-gnu-libc
===
--- 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips-linux-gnu-libc
2009-05-03 16:33:37 UTC (rev 3441)
+++ 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips-linux-gnu-libc
2009-05-03 22:10:42 UTC (rev 3442)
@@ -28,5 +28,4 @@
 tst-robustpi7.out, Error 1
 tst-robustpi8.out, Error 1
 tst-robustpi9.out, Error 1
-tst-setcontext.out, Error 1
 tst-timer.out, Error 139

Modified: 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips32-linux-mipsn32
===
--- 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips32-linux-mipsn32
   2009-05-03 16:33:37 UTC (rev 3441)
+++ 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips32-linux-mipsn32
   2009-05-03 22:10:42 UTC (rev 3442)
@@ -5,6 +5,10 @@
 #
 annexc.out, Error 1 (ignored)
 check-localplt.out, Error 1
+tst-audit1.out, Error 127
+tst-audit2.out, Error 127
+tst-cancelx4.out, Error 1
+tst-cancelx5.out, Error 1
 tst-cpuclock2.out, Error 1
 tst-robust1.out, Error 1
 tst-robust2.out, Error 1

Modified: 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips32el-linux-mipsn32
===
--- 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips32el-linux-mipsn32
 2009-05-03 16:33:37 UTC (rev 3441)
+++ 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips32el-linux-mipsn32
 2009-05-03 22:10:42 UTC (rev 3442)
@@ -5,6 +5,10 @@
 #
 annexc.out, Error 1 (ignored)
 check-localplt.out, Error 1
+tst-audit1.out, Error 127
+tst-audit2.out, Error 127
+tst-cancelx4.out, Error 1
+tst-cancelx5.out, Error 1
 tst-cpuclock2.out, Error 1
 tst-robust1.out, Error 1
 tst-robust2.out, Error 1

Modified: 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips64-linux-mips64
===
--- 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips64-linux-mips64
2009-05-03 16:33:37 UTC (rev 3441)
+++ 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips64-linux-mips64
2009-05-03 22:10:42 UTC (rev 3442)
@@ -5,6 +5,10 @@
 #
 annexc.out, Error 1 (ignored)
 check-localplt.out, Error 1
+tst-audit1.out, Error 127
+tst-audit2.out, Error 127
+tst-cancelx4.out, Error 1
+tst-cancelx5.out, Error 1
 tst-cpuclock2.out, Error 1
 tst-robust1.out, Error 1
 tst-robust2.out, Error 1

Modified: 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips64el-linux-mips64
===
--- 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips64el-linux-mips64
  2009-05-03 16:33:37 UTC (rev 3441)
+++ 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mips64el-linux-mips64
  2009-05-03 22:10:42 UTC (rev 3442)
@@ -5,6 +5,10 @@
 #
 annexc.out, Error 1 (ignored)
 check-localplt.out, Error 1
+tst-audit1.out, Error 127
+tst-audit2.out, Error 127
+tst-cancelx4.out, Error 1
+tst-cancelx5.out, Error 1
 tst-cpuclock2.out, Error 1
 tst-robust1.out, Error 1
 tst-robust2.out, Error 1

Modified: 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mipsel-linux-gnu-libc
===
--- 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mipsel-linux-gnu-libc
  2009-05-03 16:33:37 UTC (rev 3441)
+++ 
glibc-package/branches/eglibc-2.9/debian/testsuite-checking/expected-results-mipsel-linux-gnu-libc
  2009-05-03 22:10:42 UTC (rev 3442)
@@ -4,7 +4,6 @@
 # Format: Failed test, Error Make error code [(ignored)]
 #
 annexc.out, Error 1 (ignored)
-bug22.out, Error 1
 check-localplt.out, Error 1
 tst-audit1.out, Error 127
 tst-audit2.out, Error 127
@@ -29,5 +28,4 @@
 tst-robustpi7.out, 

Bug#526823: libc6 2.9-9 broke DNS resolver again

2009-05-03 Thread Aurelien Jarno
On Sun, May 03, 2009 at 08:54:07PM +0200, Luca Tettamanti wrote:
 Package: libc6
 Version: 2.9-9
 Severity: normal
 
 Hello, I was affected by the resolver bug that was solved in 2.9-7; as of 
 2.9-9
 the resolver stopped working again. The automatic workaround that is mentioned
 in the changelog is not working, and single-request in resolv.conf doesn't
 seem to have any effect either.
 
 Here's a dump of the resolver trying to get the address of google.com:
 
 14:11:00.754265 IP (tos 0x0, ttl 64, id 45448, offset 0, flags [DF], proto 
 UDP (17), length 60)
 10.0.0.3.60486  10.0.0.138.53: [udp sum ok] 39108+ A? www.google.com. 
 (32)
 14:11:00.754303 IP (tos 0x0, ttl 64, id 45449, offset 0, flags [DF], proto 
 UDP (17), length 60)
 10.0.0.3.60486  10.0.0.138.53: [udp sum ok] 48015+ ? www.google.com. 
 (32)
 14:11:00.759312 IP (tos 0x0, ttl 64, id 1324, offset 0, flags [none], proto 
 UDP (17), length 60)
 10.0.0.138.53  10.0.0.3.60486: [udp sum ok] 48015 NotImp q: ? 
 www.google.com. 0/0/0 (32)
 14:11:00.817710 IP (tos 0x0, ttl 64, id 1325, offset 0, flags [none], proto 
 UDP (17), length 144)
 10.0.0.138.53  10.0.0.3.60486: 39108 q: A? www.google.com. 5/0/0 
 www.google.com. CNAME www.l.google.com.[|domain]
 
 The DNS server (it's my ADSL router) responds NotImp to the  query (it 
 does
 not support IPv6). The reply (CNAME) to the A query seems correct though.
 

Could you please try the glibc from http://temp.aurel32.net/glibc-test/ ?
I have backported a few more patch from upstream, but I have no way to
know if they change something or not.

-- 
Aurelien Jarno  GPG: 1024D/F1BCDB73
aurel...@aurel32.net http://www.aurel32.net



-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org