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

Bug#207806: marked as done (libc6-dev: [ppc] source code compatibility broken 2.3.1->2.3.2)



Your message dated Sun, 02 Nov 2003 11:19:05 -0500
with message-id <E1AGKwT-0000Bp-00@auric.debian.org>
and subject line Bug#207806: fixed in glibc 2.3.2.ds1-9
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; 29 Aug 2003 21:55:53 +0000
>From csr21@cam.ac.uk Fri Aug 29 16:55:38 2003
Return-path: <csr21@cam.ac.uk>
Received: from murphy.debian.org [146.82.138.6] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19skLk-0001W4-00; Fri, 29 Aug 2003 09:35:40 -0500
Received: from rose.csi.cam.ac.uk (rose.csi.cam.ac.uk [131.111.8.13])
	by murphy.debian.org (Postfix) with ESMTP id 2EF6F234B8
	for <submit@bugs.debian.org>; Fri, 29 Aug 2003 04:43:45 -0500 (CDT)
Received: from zone-7.jesus.cam.ac.uk ([131.111.243.37] helo=mu)
	by rose.csi.cam.ac.uk with esmtp (Exim 4.20)
	id 19sfnC-0007JB-9m; Fri, 29 Aug 2003 10:43:42 +0100
Received: from csr21 by mu with local (Exim 3.36 #1 (Debian))
	id 19sfhp-00043o-00; Fri, 29 Aug 2003 10:38:09 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Christophe Rhodes <csr21@cam.ac.uk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libc6-dev: [ppc] source code compatibility broken 2.3.1->2.3.2
X-Mailer: reportbug 2.10.1
Date: Fri, 29 Aug 2003 10:38:09 +0100
Message-Id: <E19sfhp-00043o-00@mu>
Sender: Christophe Rhodes <csr21@mu>
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
X-Cam-AntiVirus: No virus found
X-Cam-SpamDetails: Not scanned
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-3.8 required=4.0
	tests=FROM_ENDS_IN_NUMS,HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_8_27
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_27 (1.174.2.15-2003-03-30-exp)

Package: libc6-dev
Version: 2.3.1-17
Severity: important

This isn't about the platform or version of libc6-dev generated by 
reportbug, sorry, but about 2.3.2 on ppc.

The definition of ucontext_t and mcontext_t changed for powerpc32 
systems between 2.3.1 and 2.3.2.  They did so in a source-code 
incompatible way, such that programs of the form

#include <stdlib.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/ucontext.h>
#include <unistd.h>

void sigsegv_handler(int sig, siginfo_t *info, void *context) {
  printf("PC = %x", (((ucontext_t *) context)->uc_mcontext.regs)->nip);
}

int main() {
  struct sigaction sa;
  pid_t pid;
  sa.sa_sigaction = sigsegv_handler;
  sa.sa_flags = SA_SIGINFO | SA_RESTART;
  sigaction(SIGSEGV, $sa, NULL);

  pid = getpid();
  kill(pid, SIGSEGV);
}

no longer compile, let alone run, because the mcontext_t structure no 
longer has an element "regs".

Furthermore, the new definition does not agree with what the kernel 
passes to signal handlers.  If I were to adjust the source code to use 
the new uc_mcontext structure slot and definition, I would end up with 
garbage in my signal handler, because the kernel does not put any 
information where libc has placed uc_mcontext.  It _does_ put some in 
the "for backwards compatibility" area, so I can get at the information 
using the uc_regs and uc_oldsigmask slots, but I can't see how this 
change has helped anyone.

It may be worth mentioning Debian bug #157374, where much the same 
problem (on hppa and mips) was discussed and fixed.  The bottom line is 
that the C library and the kernel's definition of a ucontext and an 
mcontext must agree.

Cheers,

Christophe
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux mu 2.4.21-1-686 #2 Mon Jun 16 22:13:09 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages libc6-dev depends on:
ii  libc6                         2.3.1-17   GNU C Library: Shared libraries an

-- no debconf information


---------------------------------------
Received: (at 207806-close) by bugs.debian.org; 2 Nov 2003 16:23:52 +0000
>From katie@auric.debian.org Sun Nov 02 10:23:52 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AGL16-00010F-00; Sun, 02 Nov 2003 10:23:52 -0600
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 1AGKwT-0000Bp-00; Sun, 02 Nov 2003 11:19:05 -0500
From: Daniel Jacobowitz <dan@debian.org>
To: 207806-close@bugs.debian.org
X-Katie: $Revision: 1.42 $
Subject: Bug#207806: fixed in glibc 2.3.2.ds1-9
Message-Id: <E1AGKwT-0000Bp-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Sun, 02 Nov 2003 11:19:05 -0500
Delivered-To: 207806-close@bugs.debian.org

Source: glibc
Source-Version: 2.3.2.ds1-9

We believe that the bug you reported is fixed in the latest version of
glibc, which is due to be installed in the Debian FTP archive:

glibc-doc_2.3.2.ds1-9_all.deb
  to pool/main/g/glibc/glibc-doc_2.3.2.ds1-9_all.deb
glibc_2.3.2.ds1-9.diff.gz
  to pool/main/g/glibc/glibc_2.3.2.ds1-9.diff.gz
glibc_2.3.2.ds1-9.dsc
  to pool/main/g/glibc/glibc_2.3.2.ds1-9.dsc
libc-udeb_2.3.2.ds1-9_i386.udeb
  to pool/main/g/glibc/libc-udeb_2.3.2.ds1-9_i386.udeb
libc6-dbg_2.3.2.ds1-9_i386.deb
  to pool/main/g/glibc/libc6-dbg_2.3.2.ds1-9_i386.deb
libc6-dev_2.3.2.ds1-9_i386.deb
  to pool/main/g/glibc/libc6-dev_2.3.2.ds1-9_i386.deb
libc6-i686_2.3.2.ds1-9_i386.deb
  to pool/main/g/glibc/libc6-i686_2.3.2.ds1-9_i386.deb
libc6-pic_2.3.2.ds1-9_i386.deb
  to pool/main/g/glibc/libc6-pic_2.3.2.ds1-9_i386.deb
libc6-prof_2.3.2.ds1-9_i386.deb
  to pool/main/g/glibc/libc6-prof_2.3.2.ds1-9_i386.deb
libc6_2.3.2.ds1-9_i386.deb
  to pool/main/g/glibc/libc6_2.3.2.ds1-9_i386.deb
locales_2.3.2.ds1-9_all.deb
  to pool/main/g/glibc/locales_2.3.2.ds1-9_all.deb
nscd_2.3.2.ds1-9_i386.deb
  to pool/main/g/glibc/nscd_2.3.2.ds1-9_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 207806@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Jacobowitz <dan@debian.org> (supplier of updated glibc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat,  1 Nov 2003 18:54:16 -0500
Source: glibc
Binary: libc6.1-prof libc6-i686 libc1 libc0.3-pic locales glibc-doc libc6-pic libc-udeb libc1-prof libc0.3 libc0.3-dbg libc6.1-dev libc1-pic libc6-s390x libc6-prof libc1-dbg libc6-dev-sparc64 libc6 libc0.3-dev libc6-dbg nscd libc6.1-dbg libc6.1-pic libc6-sparc64 libc6-dev libc0.3-prof libc6-sparcv9 libc6.1 libc6-dev-s390x libc1-dev
Architecture: source i386 all
Version: 2.3.2.ds1-9
Distribution: unstable
Urgency: low
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Daniel Jacobowitz <dan@debian.org>
Description: 
 glibc-doc  - GNU C Library: Documentation
 libc-udeb  - GNU C Library: Shared libraries and Timezone data - udeb (udeb)
 libc6      - GNU C Library: Shared libraries and Timezone data
 libc6-dbg  - GNU C Library: Libraries with debugging symbols
 libc6-dev  - GNU C Library: Development Libraries and Header Files.
 libc6-i686 - GNU C Library: Shared libraries [i686 optimized]
 libc6-pic  - GNU C Library: PIC archive library
 libc6-prof - GNU C Library: Profiling Libraries.
 locales    - GNU C Library: National Language (locale) data [support]
 nscd       - GNU C Library: Name Service Cache Daemon
Closes: 207806 218524 218546 218561
Changes: 
 glibc (2.3.2.ds1-9) unstable; urgency=low
 .
   * GOTO Masanori <gotom@debian.org>
 .
     - debian/po/es.po: Update.  Patched by Carlos Valdivia Yagüe
       <valyag@dat.etsit.upm.es>.
     - debian/debhelper.in/libc.preinst: Replace s/libc6/glibc/
       in messages, actually there are not only libc6, but also
       libc6.1, libc0.3, and so on.
 .
   * Daniel Jacobowitz <dan@debian.org>
 .
     - Export libpthread symbols needed for thread debugging
       (glibc23-thread-debugging.dpatch).
     - Remove glibc23-thread-debugging.dpatch in response to upstream
       comments.  Don't strip libpthread symbols needed for thread debugging.
     - Add version sanity check for kernels whose extraversion starts with a
       dot (Closes: #218546).
     - Disable SSE for pre-2.4 kernels (Closes: #218524).
     - Symlink asm-sparc and asm-sparc64 into debian/include if necessary.
     - Don't duplicate .so symlinks in libc6-s390x and libc6-dev-s390x.
     - Add a build fix for sparc64; pread syscall has been renamed to
       pread64.
     - Add a FAQ entry for unresolved errno (Closes: #218561).
     - Import patch from CVS to fix ucontext_t/mcontext_t on powerpc32
       (Closes: #207806).
     - Patch from Randolph Chung for HPPA system calls
       (hppa-syscall.dpatch).
Files: 
 13a71d6a27f9a9756a915cc38046fdf1 1563 libs required glibc_2.3.2.ds1-9.dsc
 25eee52e09b9e29e0176341ec68c9274 1910644 libs required glibc_2.3.2.ds1-9.diff.gz
 05dd23608c831a08bb65b0877ed701f9 3833214 doc optional glibc-doc_2.3.2.ds1-9_all.deb
 74726e41e161427f95f7a2501d56393e 3924064 base standard locales_2.3.2.ds1-9_all.deb
 687bfdcbbc4be6bf48fbebb95ab31b22 4861384 base required libc6_2.3.2.ds1-9_i386.deb
 d74118c17886b2b448b8d60e15937241 2509884 libdevel standard libc6-dev_2.3.2.ds1-9_i386.deb
 f2c9a1ac5099399ad3deb881f0851166 9261826 libdevel extra libc6-dbg_2.3.2.ds1-9_i386.deb
 33c18e9fd7132b55a1554db9f5810412 1988504 libdevel extra libc6-prof_2.3.2.ds1-9_i386.deb
 c75703015fdd6d53eec0e25451e719bb 1017190 libdevel optional libc6-pic_2.3.2.ds1-9_i386.deb
 bdb9cf5ebdefe0f5f6e8425d5416a0f1 961108 libs extra libc6-i686_2.3.2.ds1-9_i386.deb
 5d1dc294e3f04469f6d42e8a5e358cf6 83744 admin optional nscd_2.3.2.ds1-9_i386.deb
 8611765962aa7da10bf8034da9a7574d 713022 debian-installer required libc-udeb_2.3.2.ds1-9_i386.udeb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/pSwwbgOPXuCjg3cRAlsiAKCwooNs0T2qAzcWjcFo6a/IfF21/QCgzEbK
Js9r/7S7gh4pa0OF82GoyIU=
=mp4y
-----END PGP SIGNATURE-----



Reply to: