Bug#364037: libc6: memory leak in regcomp

2006-04-21 Thread Jamil Djadala
Package: libc6
Version: 2.3.2.ds1-22sarge3
Severity: important



Hi, i found memory leak in regcomp. 
If regcomp fail due to invalid regular expression containing opening
bracket( , 40 bytes are lost.
see example source:


--- tmp.c begins here ---
#include regex.h

int
main(int argc, char **argv)
{
regex_t preg;

for (;;)
{
regcomp(preg, (, REG_EXTENDED);
regfree(preg);
//break;
}

return 0;
}
--- tmp.c ends here ---


bug exists on sarge i386, whith and without libc6-i686 installed.
Trying this on amd64 testing does not have memory leak.


--- ps output begins here ---
% while : ; do ps -C tmp o rsz,vsz,sz ; sleep 1 ; done
 RSZ   VSZSZ
 RSZ   VSZSZ
 RSZ   VSZSZ
17080 18112 4528
 RSZ   VSZSZ
52616 53752 13438
 RSZ   VSZSZ
87880 88996 22249
 RSZ   VSZSZ
123412 124504 31126
 RSZ   VSZSZ
158848 159880 39970
 RSZ   VSZSZ
194424 195520 48880
 RSZ   VSZSZ
230280 231424 57856
 RSZ   VSZSZ
265084 266140 66535
 RSZ   VSZSZ
300124 301252 75313
 RSZ   VSZSZ
334572 335704 83926
 RSZ   VSZSZ
369112 370156 92539
^C
--- ps output ends here ---

--- valgrind output begins here ---
% valgrind --leak-check=full ./tmp
==6295== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 13 from 1)
==6295== malloc/free: in use at exit: 40 bytes in 1 blocks.
==6295== malloc/free: 6 allocs, 5 frees, 436 bytes allocated.
==6295== For counts of detected errors, rerun with: -v
==6295== searching for pointers to 1 not-freed blocks.
==6295== checked 77824 bytes.
==6295==
==6295== 40 bytes in 1 blocks are definitely lost in loss record 1 of 1
==6295==at 0x1B90459D: malloc (vg_replace_malloc.c:130)
==6295==by 0x1B9CD57B: (within /lib/tls/i686/cmov/libc-2.3.2.so)
==6295==by 0x1B9CAE62: (within /lib/tls/i686/cmov/libc-2.3.2.so)
==6295==by 0x1B9CAA3F: (within /lib/tls/i686/cmov/libc-2.3.2.so)
==6295==by 0x1B9CA615: (within /lib/tls/i686/cmov/libc-2.3.2.so)
==6295==by 0x1B9CA48D: (within /lib/tls/i686/cmov/libc-2.3.2.so)
==6295==by 0x1B9CA3AE: (within /lib/tls/i686/cmov/libc-2.3.2.so)
==6295==by 0x1B9C8DFC: (within /lib/tls/i686/cmov/libc-2.3.2.so)
==6295==by 0x1B9C8A94: regcomp (in /lib/tls/i686/cmov/libc-2.3.2.so)
==6295==by 0x80483EE: main (tmp.c:10)
==6295==
==6295== LEAK SUMMARY:
==6295==definitely lost: 40 bytes in 1 blocks.
==6295==  possibly lost: 0 bytes in 0 blocks.
==6295==still reachable: 0 bytes in 0 blocks.
==6295== suppressed: 0 bytes in 0 blocks.
==6295== Reachable blocks (those to which a pointer was found) are not shown.
==6295== To see them, rerun with: --show-reachable=yes
%
--- valgrind output ends here ---


Regards,
Jamil Djadala


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-3-686
Locale: LANG=bg_BG, LC_CTYPE=bg_BG (charmap=CP1251)

Versions of packages libc6 depends on:
ii  libdb1-compat 2.1.3-7The Berkeley database routines [gl

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



r1446 - in glibc-package/trunk/debian: . debhelper.in

2006-04-21 Thread Denis Barbier
Author: barbier
Date: 2006-04-20 21:28:44 + (Thu, 20 Apr 2006)
New Revision: 1446

Modified:
   glibc-package/trunk/debian/changelog
   glibc-package/trunk/debian/debhelper.in/locales.postinst
Log:
locales.postinst: Do not abort if the current locale is not generated.


Modified: glibc-package/trunk/debian/changelog
===
--- glibc-package/trunk/debian/changelog2006-04-18 12:21:25 UTC (rev 
1445)
+++ glibc-package/trunk/debian/changelog2006-04-20 21:28:44 UTC (rev 
1446)
@@ -19,6 +19,7 @@
 fixed in a later release.
   * Fix location of locales/NEWS.Debian.  Thanks Matthijs Mohlmann.
 (Closes: #362763)
+  * locales.postinst: Do not abort if the current locale is not generated.
 
  -- Aurelien Jarno [EMAIL PROTECTED]  Fri, 14 Apr 2006 20:28:41 +0200
 

Modified: glibc-package/trunk/debian/debhelper.in/locales.postinst
===
--- glibc-package/trunk/debian/debhelper.in/locales.postinst2006-04-18 
12:21:25 UTC (rev 1445)
+++ glibc-package/trunk/debian/debhelper.in/locales.postinst2006-04-20 
21:28:44 UTC (rev 1446)
@@ -66,7 +66,7 @@
 # Set default LANG environment variable
 if [ -e $EE ]; then
 # Remove previous definitions
-/usr/sbin/update-locale LANG
+/usr/sbin/update-locale --no-checks LANG
 fi
 if [ -n $SELECTED ]  [ $SELECTED != None ]; then
 /usr/sbin/update-locale LANG=$SELECTED


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#363442: libc6-xen should not conflict with any other libc6-$flavor

2006-04-21 Thread Gabor Gombas
On Wed, Apr 19, 2006 at 01:02:59PM -0500, Adam Heath wrote:

 I'm ready to upload xen 3.0.2, with a dependency on libc6-xen.

IMHO just go ahead with the upload :-) The removal of the other
optimized flavors due to the conflict with libc6-xen should only cause
some performance regression when you boot a non-xen kernel, it should
not have any effect on usability.

Gabor

-- 
 -
 MTA SZTAKI Computer and Automation Research Institute
Hungarian Academy of Sciences
 -


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#364098: glibc_2.3.999-1(m68k/experimental):

2006-04-21 Thread wouter
Package: glibc
Version: 2.3.999-1
Severity: serious

There was an error while trying to autobuild your package:

 Automatic build of glibc_2.3.999-1 on jazz by sbuild/m68k 98
 Build started at 20060421-1448

[...]

 ** Using build dependencies supplied by package:
 Build-Depends: gettext, make (= 3.80-1), dpkg-dev (= 1.13.5), bzip2, 
 texinfo, texi2html, file, linux-kernel-headers (= 2.6.13+0rc3-2) [!hurd-i386 
 !kfreebsd-i386 !kfreebsd-amd64], mig (= 1.3-2) [hurd-i386], hurd-dev (= 
 20020608-1) [hurd-i386], gnumach-dev [hurd-i386], kfreebsd-kernel-headers 
 [kfreebsd-i386 kfreebsd-amd64], gcc-4.0 [!m68k], gcc-3.4 [m68k], binutils (= 
 2.16.1cvs20051109-1), autoconf, sed (= 4.0.5-4), gawk, debhelper (= 
 4.1.76), libc6-dev-amd64 [i386], libc6-dev-ppc64 [powerpc], libc6-dev-i386 
 [amd64] | ia32-libs-dev (= 1.5) [amd64], libc6-dev-powerpc [ppc64], quilt

[...]

 glibc-ports-2.4/sysdeps/mach/mips/sysdep.h
 glibc-ports-2.4/sysdeps/mach/mips/thread_state.h
 glibc-ports-2.4/sysdeps/mach/mips/machine-lock.h
 glibc-ports-2.4/sysdeps/mach/mips/machine-sp.h
 glibc-ports-2.4/sysdeps/mach/mips/syscall.S
 glibc-ports-2.4/sysdeps/mach/mips/Makefile
 glibc-ports-2.4/sysdeps/mach/mips/cacheflush.c
 glibc-ports-2.4/sysdeps/mach/hppa/
 glibc-ports-2.4/sysdeps/mach/hppa/machine-lock.h
 glibc-ports-2.4/ChangeLog.hppa
 glibc-ports-2.4/ChangeLog.mips
 touch /build/buildd/glibc-2.3.999/stamp-dir/glibc-ports-2.4.tar.bz2
 touch /build/buildd/glibc-2.3.999/stamp-dir/unpack
 Applying patches...failed! (check 
 /build/buildd/glibc-2.3.999/stamp-dir/patch-log for details)
 make: *** [/build/buildd/glibc-2.3.999/stamp-dir/patch-stamp] Error 1

A full build log can be found at:
http://experimental.ftbfs.de/build.php?arch=m68kpkg=glibcver=2.3.999-1

The patch-log file is attached.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#364098: mumble, mumble

2006-04-21 Thread Wouter Verhelst

-- 
Fun will now commence
  -- Seven Of Nine, Ashes to Ashes, stardate 53679.4
Applying patch localedata/locale-de_CH.diff
patching file localedata/locales/de_CH

Applying patch locale-ru_RU.diff
patching file intl/locale.alias

Applying patch localedata/locale-eo_EO.diff
patching file localedata/locales/eo
patching file localedata/SUPPORTED

Applying patch localedata/locale-no_NO.diff
patching file localedata/locales/no_NO

Applying patch glibc-i686-timing.diff
patching file sysdeps/generic/ldsodefs.h
Hunk #1 succeeded at 451 (offset 193 lines).
Hunk #2 succeeded at 662 (offset 200 lines).
patching file sysdeps/i386/hp-timing.h
patching file elf/dl-altinit.c
patching file elf/Makefile
Hunk #1 succeeded at 23 with fuzz 2.

Applying patch glibc-sparc-timing.diff
patching file sysdeps/sparc/sparc32/hp-timing.h

Applying patch makeconfig.diff
patching file Makeconfig
Hunk #1 succeeded at 544 (offset 3 lines).

Applying patch ldconfig.diff
patching file elf/ldconfig.c
Hunk #1 succeeded at 992 (offset 20 lines).

Applying patch ldd.diff
patching file elf/ldd.bash.in

Applying patch fhs-linux-paths.diff
patching file sysdeps/unix/sysv/linux/paths.h
Hunk #1 succeeded at 67 (offset -4 lines).

Applying patch glibc22-nss-upgrade.diff
patching file nss/nsswitch.c
Hunk #1 succeeded at 344 (offset 11 lines).

Applying patch sparc64-fixups.diff
patching file elf/ldconfig.c
Hunk #1 succeeded at 320 (offset 33 lines).

Applying patch glibc22-ttyname-devfs.diff
patching file sysdeps/unix/sysv/linux/ttyname_r.c
Hunk #5 succeeded at 150 (offset 7 lines).
patching file sysdeps/unix/sysv/linux/ttyname.c
Hunk #1 succeeded at 33 with fuzz 2 (offset 3 lines).
Hunk #2 succeeded at 42 (offset 3 lines).
Hunk #3 succeeded at 58 (offset 3 lines).
Hunk #4 succeeded at 81 (offset 3 lines).
Hunk #5 succeeded at 115 (offset 5 lines).
Hunk #6 succeeded at 152 (offset 5 lines).

Applying patch powerpc-sysconf.diff
patching file sysdeps/unix/sysv/linux/powerpc/getsysstats.c

Applying patch glibc23-hppa-Rminkernel.diff
patching file sysdeps/unix/sysv/linux/configure.in
Hunk #1 succeeded at 69 (offset 4 lines).
patching file sysdeps/unix/sysv/linux/configure
Hunk #1 succeeded at 109 (offset 3 lines).

Applying patch glibc23-asserth-decls.diff
patching file assert/assert.h

Applying patch glibc23-cmov.diff
patching file sysdeps/i386/dl-procinfo.h

Applying patch hurd-enable-ldconfig.diff
patching file sysdeps/mach/hurd/configure
Hunk #1 succeeded at 90 with fuzz 2 (offset -25 lines).
patching file sysdeps/mach/hurd/configure.in
patching file elf/ldconfig.c
Hunk #1 succeeded at 57 (offset 8 lines).
patching file sysdeps/mach/hurd/dl-cache.c

Applying patch sparcv8-target.diff
patching file configure
Hunk #1 succeeded at 1798 (offset 2 lines).
patching file configure.in
Hunk #1 succeeded at 307 (offset -30 lines).

Applying patch 50_glibc232-arm-dwarf2-buildfix.diff
patching file sysdeps/arm/framestate.c
patching file sysdeps/arm/unwind-pe.c

Applying patch 50_glibc232-m68k-dwarf2-buildfix.diff
patching file sysdeps/m68k/framestate.c
patching file sysdeps/m68k/unwind-pe.c

Applying patch glibc-2.3.2-ldconfig-tls.diff
patching file elf/cache.c

Applying patch 90_glibc233_tcsetaddr.diff
patching file sysdeps/unix/sysv/linux/tcsetattr.c
Hunk #1 succeeded at 48 (offset -7 lines).
Hunk #2 succeeded at 85 (offset -7 lines).

Applying patch localedef-fix-trampoline.diff
patching file locale/programs/3level.h
Hunk #1 succeeded at 202 (offset -2 lines).

Applying patch localedata/locale-eu_FR.diff
patching file localedata/locales/eu_FR
patching file localedata/SUPPORTED
Hunk #1 succeeded at 163 with fuzz 1 (offset -3 lines).
patching file localedata/locales/[EMAIL PROTECTED]

Applying patch glibc23-mips-lazy-eval.diff
patching file elf/do-lookup.h
Hunk #1 succeeded at 192 (offset -17 lines).

Applying patch glibc235-gcc4-wcstol_l.diff
patching file sysdeps/wordsize-64/strtol_l.c
patching file sysdeps/wordsize-64/wcstol_l.c

Applying patch glibc235-gcc4-ppc-procfs.diff
Patch glibc235-gcc4-ppc-procfs.diff does not exist


Bug#364121: locales can't be installed

2006-04-21 Thread Przemyslaw Grzywacz
Package: locales
Version: 2.3.6-7
Severity: critical
Justification: breaks unrelated software

I can't upgrade my locales for few days now, I wanted to report it yesterday, 
but I saw someone already did it.
But since you don't know yet what happend I thought my report may be usefull.

I had two locales selected at install time en_EN ISO-8859-1 and pl_PL 
ISO-8859-2, but after one of my updates, pl_PL (in /etc/environement) chanded 
itselt to en_EN:en_PL:en.

I've noticed am other unusual thing, but I don't know if it has anything to do 
with this bug.

/usr/share/locale/pl/charset contain UTF-8


In general I don't care for most bugs, but this one make subversion die which I 
use, so this is a problem to me.

If you need some more details on my system or something, I would be happy to 
help.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.5
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=locale: Cannot set LC_CTYPE to 
default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)

Versions of packages locales depends on:
ii  debconf [debconf-2.0] 1.4.72 Debian configuration management sy
ii  libc6 [glibc-2.3.6-2] 2.3.6-5GNU C Library: Shared libraries an

locales recommends no packages.

-- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = en_US:pl_PL,
LC_ALL = (unset),
LANG = en_US
are supported and installed on your system.
perl: warning: Falling back to the standard locale (C).
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
* locales/default_environment_locale: None
* locales/locales_to_be_generated: pl_PL ISO-8859-2


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#364198: libc6: manpages for woody distribution

2006-04-21 Thread Justin Pryzby
Package: libc6
Version: 2.3.6-7
Severity: minor

The following manpages all have woody at the bottom, which should
either be removed, or updated and kept up to date:

  getconf
  getent
  catchsegv
  sprof


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#364121: locales can't be installed

2006-04-21 Thread Denis Barbier
severity 364121 important
merge 364121 363644
thanks

On Fri, Apr 21, 2006 at 06:17:11PM +0200, Przemyslaw Grzywacz wrote:
 Package: locales
 Version: 2.3.6-7
 Severity: critical
 Justification: breaks unrelated software
 
 I can't upgrade my locales for few days now, I wanted to report it yesterday, 
 but I saw someone already did it.
 But since you don't know yet what happend I thought my report may be usefull.

Your feedback is very welcome, but it looks like this is the same bug,
so let's merge them.

 I had two locales selected at install time en_EN ISO-8859-1 and pl_PL 
 ISO-8859-2, but after one of my updates, pl_PL (in /etc/environement) chanded 
 itselt to en_EN:en_PL:en.

I do not understand how this can happen, it seems that LANG and LANGUAGE
are mixed.  Can you please post your /etc/default/locale and
/etc/environment files?
BTW if your settings were set to
  LANG=pl_PL
  LANGUAGE=en_EN:en_PL:en
please unset LANGUAGE, it does no good here.

 I've noticed am other unusual thing, but I don't know if it has anything to 
 do with this bug.
 
 /usr/share/locale/pl/charset contain UTF-8

This file does not come from the locales package.

 In general I don't care for most bugs, but this one make subversion die which 
 I use, so this is a problem to me.
 
 If you need some more details on my system or something, I would be happy to 
 help.

If you edit /etc/environment and /etc/default/locale manually and set
   LANG=pl_PL
are you able to reconfigure locales?

Denis


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Processed: Re: Bug#364121: locales can't be installed

2006-04-21 Thread Debian Bug Tracking System
Processing commands for [EMAIL PROTECTED]:

 severity 364121 important
Bug#364121: locales can't be installed
Severity set to `important'.

 merge 364121 363644
Bug#363644: locales: fails to install/postinst
Bug#364121: locales can't be installed
Merged 363644 364121.

 thanks
Stopping processing here.

Please contact me if you need assistance.

Debian bug tracking system administrator
(administrator, Debian Bugs database)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]