Your message dated Thu, 03 Nov 2011 22:19:16 +0000
with message-id <[email protected]>
and subject line Bug#644646: fixed in dietlibc 0.33~cvs20110918-5
has caused the Debian Bug report #644646,
regarding Accepted dietlibc 0.33~cvs20110918-4 (source all amd64)
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
644646: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=644646
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: dietlibc
Version: 0.33~cvs20110918-3
Severity: important

Hector Oron dixit:

> dietlibc (0.33~cvs20110918-4) unstable; urgency=low
> .
>   * d/rules: disable tc523086.c test on ARM (segfaults on armhf)

We’re talking about the following test programme:
http://anonscm.debian.org/gitweb/?p=collab-maint/dietlibc.git;a=blob;f=debian/test/tc523086.c;h=d160eb1fa977b816d1880fbcea0bcd59bdc09890;hb=7e687dbd3ae266d0bd678aea1be273cd341b7dd6

Could you please try to find out exactly _why_ (or at least _where_)
this segfaults, as I’m not in the possession of access to an armhf
box – as far as I can see, the programme is valid C, and if this
segfaults on armhf, dietlibc is as broken there as on hppa and
should indeed FTBFS due to failing this test. (Please do also try
whether this segfaults with eglibc.)

Is the segfault in strstr?

Analysis:

  13         if ((buf = malloc(32)) == NULL)
  14                 return (255);

Let’s assume the malloc base is 0x1000. Then buf can be anything
from 0x1000 to 0x101F (0x1020 would behave the same as 0x1000).

  15         /* align */
  16         s = (void *)((((ptrdiff_t)buf + 15) & ~15) + 12);

This assigns s a value of (depending on buf):
0x1000 → 0x100C         (buf from 0x1000 to 0x101F) → 0x13 bytes available
0x1001 → 0x101C         (buf from 0x1001 to 0x1020) → 0x04 bytes available
0x1010 → 0x101C         (buf from 0x1010 to 0x102F) → 0x13 bytes available
0x101E → 0x102C         (buf from 0x101E to 0x103D) → 0x11 bytes available
0x101F → 0x102C         (buf from 0x101F to 0x103E) → 0x12 bytes available

  17         s[0] = 'a';
  18         s[1] = '\0';

This writes to *s and *(s+1); as the minimum available is 4 bytes, this
will be fine.

  19
  20         cp = strstr(Heuhaufen, s);

Heuhaufen is a constant string, so the only variable here is s,
which consists of the string "a" (NUL-terminated, 2 bytes long).

I fail to see where this can segfault, other than in the dietlibc
code (in which case the package RIGHTFULLY FTBFS), or in compiler-
generated code (unlikely).

Therefore I am raising Severity.

bye,
//mirabilos
-- 
Solange man keine schmutzigen Tricks macht, und ich meine *wirklich*
schmutzige Tricks, wie bei einer doppelt verketteten Liste beide
Pointer XORen und in nur einem Word speichern, funktioniert Boehm ganz
hervorragend.           -- Andreas Bogk über boehm-gc in d.a.s.r



--- End Message ---
--- Begin Message ---
Source: dietlibc
Source-Version: 0.33~cvs20110918-5

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

dietlibc-doc_0.33~cvs20110918-5_all.deb
  to main/d/dietlibc/dietlibc-doc_0.33~cvs20110918-5_all.deb
dietlibc_0.33~cvs20110918-5.debian.tar.gz
  to main/d/dietlibc/dietlibc_0.33~cvs20110918-5.debian.tar.gz
dietlibc_0.33~cvs20110918-5.dsc
  to main/d/dietlibc/dietlibc_0.33~cvs20110918-5.dsc



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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thorsten Glaser <[email protected]> (supplier of updated dietlibc 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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

Format: 1.8
Date: Thu, 03 Nov 2011 21:33:39 +0000
Source: dietlibc
Binary: dietlibc-dev dietlibc-doc
Architecture: source all
Version: 0.33~cvs20110918-5
Distribution: experimental
Urgency: low
Maintainer: Hector Oron <[email protected]>
Changed-By: Thorsten Glaser <[email protected]>
Description: 
 dietlibc-dev - diet libc - a libc optimized for small size
 dietlibc-doc - diet libc documentation - a libc optimized for small size
Closes: 644646
Changes: 
 dietlibc (0.33~cvs20110918-5) experimental; urgency=low
 .
   * Remove more mentions of the gone dynamic linking support
   * quilt refresh all patches
   * Pass -fno-stack-protector from diet to gcc when dietlibc is
     compiled without SSP support because otherwise programs will
     segfault, as dietlibc does not set up the registers needed
   * Re-enable tc523086, as I believe the testcase is right, and
     if an armhf buildd fails, the buildd is bad (Closes: #644646)
   * Fix all lintian warnings except CVS in orig.tar.gz
     - debian/copyright Format URI, fix format (spurious newline)
     - add comment to d/patches/0014-sparc_v9-does-not-imply-arch64
     - remove the .comment section when stripping binaries
   * Honour DEB_BUILD_OPTIONS=nostrip as well
Checksums-Sha1: 
 5cf67613002f6bacae2b01901ca9c6cca8b15d0d 1956 dietlibc_0.33~cvs20110918-5.dsc
 178fff653afaf3176e2b69b43ffe311e461186c9 74875 
dietlibc_0.33~cvs20110918-5.debian.tar.gz
 a4bf654fcc24ca08a47bf83cb38ae2e6422f4090 54428 
dietlibc-doc_0.33~cvs20110918-5_all.deb
Checksums-Sha256: 
 dcba02bd1972a91bb8530ab67d0ca3158508efb7241dcd3cf279703dba139dc8 1956 
dietlibc_0.33~cvs20110918-5.dsc
 17810a2e18b6ae05d2b2f9e75fadcacfd2a45d7ceb6eb23b3af71c3f0094e897 74875 
dietlibc_0.33~cvs20110918-5.debian.tar.gz
 47fdfcf56df59119649b13c746047b9a6ee8ca4b8a3f8272141026ccc9070257 54428 
dietlibc-doc_0.33~cvs20110918-5_all.deb
Files: 
 5250bbf1c4dd59de1c42f7bb237d1ab7 1956 devel optional 
dietlibc_0.33~cvs20110918-5.dsc
 d9a968213ad89ad48a5d0fff8e877631 74875 devel optional 
dietlibc_0.33~cvs20110918-5.debian.tar.gz
 fcf48acff4d93f010f140974b4b04244 54428 doc optional 
dietlibc-doc_0.33~cvs20110918-5_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MirBSD)

iQIcBAEBCQAGBQJOswqGAAoJEHa1NLLpkAfgXRQP/Ag7k8TTPLZhAaXSW2vIJEAI
8P+IGIPv+w16hesWF4HucnFmnUkBuEhZIUl0bg1lMuaweie9kFNMeN0zr6yXF3R0
8D+zCDSzxUH+BnKN55XDku1lNXZPdPi+8FT7DLW983c2a538+thruszdGu87Goiu
yy5lDMd+wkakGAn7tr+lXYmVk3gShiHHlT+Y6Rh31Scq0HwqXug1VT5PkOMlivFb
Yq1K7jhxpwZcDhlyHherHLJzJQAvfK1r4kRz1+igFBs4XID1KRZyvUdrnPAFn0Jx
+QACZO8b8J7TzVPi3ziObN1/2Dj0Lgpii9A9mlwwW5xvKpozoyA0DJ0riIKtJxkO
Z9ql5qJd7Q4Eo+A4405mURc7IbsmxOi+Qfz+8DJ8ZqNp1InfKRrZzKIrkhT2eQvv
kWdxHB412kFOeyBGyFsMvSUlyBmahif9CaKMSupBNGn0RoU8b71oPPXiLFl+Ooj3
Fgw5sn73mB5YQsGiVcMhLJ8TfVSZVpknmdOEqc5TX5ae8OgSWxA9uUygn7yPKw++
pdzBpyDEuQkUe+WHN5scHHHgUQ4k0C9jGeNHFArEVAnLfCBXsj4i7U7s/fAn/tmy
9QKHKCd2pjgbG2QFESPH6MgcG+dW+cf7m43bvKw4Rbnx3GNTiJtPIoqStuMDDVJg
CzShsHbKgpNQHz/eGK4h
=VgAp
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to