Your message dated Fri, 17 Sep 2010 09:02:16 +0000
with message-id <[email protected]>
and subject line Bug#556379: fixed in unac 1.8.0-3
has caused the Debian Bug report #556379,
regarding libunac1: libunac crash with gcc-4.4 and x86-64 architecture
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.)


-- 
556379: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=556379
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libunac1
Version: 1.8.0-2
Severity: normal

Using Libunac.so always makes my application dieing (segfault).

The problem is new and related to the usage of gcc-4.4.
Compiling my test binary with previous version of gcc avoids the issue.

The package seems to be pretty old, but recompiling it with gcc-4.4 is
not enough to fix the issue.

The issue is also related to the optimization (-O6) and avoiding the
optimization
(-O0) fixes it.

But the root cause seems to be there:

--- unac.c.old  2009-11-15 16:02:37.000000000 +0100
+++ unac.c      2009-11-15 16:04:12.000000000 +0100
@@ -13873,9 +13873,9 @@
     *out_lengthp = 0;
   } else {
     char* utf16 = 0;
-    int utf16_length = 0;
+    size_t utf16_length = 0;
     char* utf16_unaccented = 0;
-    int utf16_unaccented_length = 0;
+    size_t utf16_unaccented_length = 0;

     if(convert(charset, utf16be(), in, in_length, &utf16,
&utf16_length) < 0) {
       return -1;

Would be interesting to know if that is in addition a gcc bug, because
gcc-4.4 only generated
following warnings:

unac.c: In function ‘unac_string’:
unac.c:13880: warning: passing argument 6 of ‘convert’ from incompatible
pointer type
unac.c:13763: note: expected ‘size_t *’ but argument is of type ‘int *’
unac.c:13884: warning: passing argument 4 of ‘unac_string_utf16’ from
incompatible pointer type
unac.c:13664: note: expected ‘size_t *’ but argument is of type ‘int *’

-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500,
'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-14-generic (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libunac1 depends on:
ii  libc6                   2.10.1-0ubuntu15 GNU C Library: Shared libraries

libunac1 recommends no packages.

libunac1 suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
Source: unac
Source-Version: 1.8.0-3

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

libunac1-dev_1.8.0-3_amd64.deb
  to main/u/unac/libunac1-dev_1.8.0-3_amd64.deb
libunac1_1.8.0-3_amd64.deb
  to main/u/unac/libunac1_1.8.0-3_amd64.deb
unac_1.8.0-3.diff.gz
  to main/u/unac/unac_1.8.0-3.diff.gz
unac_1.8.0-3.dsc
  to main/u/unac/unac_1.8.0-3.dsc
unaccent_1.8.0-3_amd64.deb
  to main/u/unac/unaccent_1.8.0-3_amd64.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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Loic Dachary <[email protected]> (supplier of updated unac 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: SHA1

Format: 1.8
Date: Fri, 17 Sep 2010 10:20:30 +0200
Source: unac
Binary: libunac1 libunac1-dev unaccent
Architecture: source amd64
Version: 1.8.0-3
Distribution: unstable
Urgency: low
Maintainer: Loic Dachary (OuoU) <[email protected]>
Changed-By: Loic Dachary <[email protected]>
Description: 
 libunac1   - The unac programming library - runtime version
 libunac1-dev - A C programmer's library that removes accents from a string
 unaccent   - Replace accented letters by their unaccented equivalent
Closes: 556379
Changes: 
 unac (1.8.0-3) unstable; urgency=low
 .
   * applied suggested patch + fixed additional related compilation warning
     patches/gcc-4-fix-bug-556379.patch (closes: #556379)
 .
   * simplify ancient debian/rules by converting it to cdbs
Checksums-Sha1: 
 655c596d7d09c9da0fa5705df41095e5be5d6443 1002 unac_1.8.0-3.dsc
 dcc4eebffb869842a7dec684ec1e50bcd4030ea4 302234 unac_1.8.0-3.diff.gz
 31bf19029f693c448f7318bc678af63faa5fbb4d 8480 libunac1_1.8.0-3_amd64.deb
 a7dd8e758d981ad1428f777cd2424ac0079b1503 8608 libunac1-dev_1.8.0-3_amd64.deb
 c9b84701f71c62d0cee2f7dcd0edea8dd3faec1b 8348 unaccent_1.8.0-3_amd64.deb
Checksums-Sha256: 
 fa5a4235d4ee49d4320854c3361a50a77c50014536172e1f8488ff16c45bce46 1002 
unac_1.8.0-3.dsc
 ead2ff666336b4204268f07a012efd3b6298085a52856ecbd8a28c4b4c687f91 302234 
unac_1.8.0-3.diff.gz
 6a2be2c77644e3950d2fbe380861e673538ea8b434337e61ae2b24c7c696508f 8480 
libunac1_1.8.0-3_amd64.deb
 3d9c031c86de5e6856a7c54570f1efbaf491cec1137650e4ef5a6ed107a08e81 8608 
libunac1-dev_1.8.0-3_amd64.deb
 51261887c0058b58ca2916a929c3f5fac124ab5bcbe972070af8b8b4c43a366b 8348 
unaccent_1.8.0-3_amd64.deb
Files: 
 44576164f9e73af6ef40ca5ddae1e1ab 1002 devel optional unac_1.8.0-3.dsc
 c0c47836333a8abf11d5263f5f42f3e3 302234 devel optional unac_1.8.0-3.diff.gz
 a01a22211de6e26b60ba1c1010b62805 8480 libs optional libunac1_1.8.0-3_amd64.deb
 df14448311550ed1134e81cd143ac65f 8608 libdevel optional 
libunac1-dev_1.8.0-3_amd64.deb
 657de7826e1eccea96f4c65ed2bf7b2f 8348 utils optional unaccent_1.8.0-3_amd64.deb

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

iEYEARECAAYFAkyTLAIACgkQ8dLMyEl6F20T9QCeJe/syZ2Bu/kh+i0S3tW1Og/N
+N0An2mgN7SdvZFAVIESY8S1JIrAHdYM
=6BBp
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to