Bug#868076: libc6: gethostbyname assertion failure on m68k

2017-07-11 Thread James Clarke
Package: libc6
Version: 2.24-12
Tags: upstream patch
Forwarded: https://sourceware.org/ml/libc-alpha/2017-07/msg00466.html
User: debian-...@lists.debian.org
Usertags: m68k
X-Debbugs-Cc: debian-...@lists.debian.org

Hi,
On m68k, gethostbyname can sometimes cause an assertion failure:

> "nss_files/files-hosts.c:218: _nss_files_gethostbyname3_r: Assertion 
> `(bufferend - (char *) 0) % sizeof (char *) == 0' failed."

This can be reproduced with the following simple program (though it may
depend on the exact system or chroot setup):

> #include 
> #include 
>
> int main(int argc, char **argv) {
> struct hostent *h = gethostbyname("localhost");
> printf("name: %s\n", h->h_name);
> return 0;
> }

This is because _nss_files_gethostbyname3_r asserts that bufferend is
sizeof-aligned (4 bytes for a char *), but parse_list only rounds to
__alignof__(char *), which is (unusually) just 2 bytes on m68k. The
above patch forwarded upstream weakens the assertion (and subsequent
rounding on future loop iterations) to only be __alignof__(char *).

Regards,
James



Bug#826256: locales: wrong width for hexagrams (and possibly others) in 2.22

2017-07-11 Thread Thorsten Glaser
tags 826256 = upstream
forwarded 826256 https://sourceware.org/bugzilla/show_bug.cgi?id=21750
thanks

OK, I’ve forwarded this upstream and refreshed the researched data:
https://sourceware.org/bugzilla/show_bug.cgi?id=21750

Thanks,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg



Processed: Re: locales: wrong width for hexagrams (and possibly others) in 2.22

2017-07-11 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> tags 826256 = upstream
Bug #826256 [locales] locales: wrong width for hexagrams (and possibly others) 
in 2.22
Removed tag(s) moreinfo.
> forwarded 826256 https://sourceware.org/bugzilla/show_bug.cgi?id=21750
Bug #826256 [locales] locales: wrong width for hexagrams (and possibly others) 
in 2.22
Set Bug forwarded-to-address to 
'https://sourceware.org/bugzilla/show_bug.cgi?id=21750'.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
826256: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826256
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



[glibc] branch sid updated (dbd0299 -> 475f7a3)

2017-07-11 Thread Adam Conrad
This is an automated email from the git hooks/post-receive script.

adconrad pushed a change to branch sid
in repository glibc.

  from  dbd0299   debian/patches/any/cvs-common-symbols.diff: Fix build 
with newer binutils.
   new  475f7a3   debian/patches/arm/cvs-rtld-startup.diff: Fix ld.so 
segfault on arm64.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debian/changelog |  1 +
 debian/patches/arm/cvs-rtld-startup.diff | 24 
 debian/patches/series|  1 +
 3 files changed, 26 insertions(+)
 create mode 100644 debian/patches/arm/cvs-rtld-startup.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-glibc/glibc.git



[glibc] 01/01: debian/patches/arm/cvs-rtld-startup.diff: Fix ld.so segfault on arm64.

2017-07-11 Thread Adam Conrad
This is an automated email from the git hooks/post-receive script.

adconrad pushed a commit to branch sid
in repository glibc.

commit 475f7a3dd052feefe6c4d6919c408afcd8d09dc2
Author: Adam Conrad 
Date:   Tue Jul 11 05:34:32 2017 -0600

debian/patches/arm/cvs-rtld-startup.diff: Fix ld.so segfault on arm64.
---
 debian/changelog |  1 +
 debian/patches/arm/cvs-rtld-startup.diff | 24 
 debian/patches/series|  1 +
 3 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6fbd76d..2a19f6c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ glibc (2.24-13) UNRELEASED; urgency=medium
 
   [ Adam Conrad ]
   * debian/patches/any/cvs-common-symbols.diff: Fix build with newer binutils.
+  * debian/patches/arm/cvs-rtld-startup.diff: Fix ld.so segfault on arm64.
 
  -- Aurelien Jarno   Mon, 19 Jun 2017 17:36:36 +0200
 
diff --git a/debian/patches/arm/cvs-rtld-startup.diff 
b/debian/patches/arm/cvs-rtld-startup.diff
new file mode 100644
index 000..917d489
--- /dev/null
+++ b/debian/patches/arm/cvs-rtld-startup.diff
@@ -0,0 +1,24 @@
+commit e9177fba13549a8e2a6232f46080e5c6d3e467b1
+Author: Szabolcs Nagy 
+Date:   Wed Jun 21 13:47:07 2017 +0100
+
+[AArch64] Use hidden __GI__dl_argv in rtld startup code
+
+We rely on the symbol being locally defined so using extern symbol
+is not correct and the linker may complain about the relocations.
+
+diff --git a/sysdeps/aarch64/dl-machine.h b/sysdeps/aarch64/dl-machine.h
+index 02fab04f40..60472036f5 100644
+--- a/sysdeps/aarch64/dl-machine.h
 b/sysdeps/aarch64/dl-machine.h
+@@ -172,8 +172,8 @@
+   cmp x0, #0  \n\
+   bne 1b  \n\
+   // Update _dl_argv  \n\
+-  adrpx3, _dl_argv\n\
+-  str x2, [x3, #:lo12:_dl_argv]   \n\
++  adrpx3, __GI__dl_argv   \n\
++  str x2, [x3, #:lo12:__GI__dl_argv]  \n\
+ .L_done_stack_adjust: \n\
+   // compute envp \n\
+   add x3, x2, x1, lsl #3  \n\
diff --git a/debian/patches/series b/debian/patches/series
index 8c3bd83..b42af9a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -46,6 +46,7 @@ arm/local-soname-hack.diff
 arm/local-vfp-sysdeps.diff
 arm/unsubmitted-ldso-multilib.diff
 arm/local-arm-futex.diff
+arm/cvs-rtld-startup.diff
 
 hppa/local-inlining.diff
 hppa/local-elf-make-cflags.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-glibc/glibc.git