Bug#231438: locales fails to install due to locale-gen segfault
On Sun, Mar 21, 2004 at 10:10:24AM +0900, GOTO Masanori wrote: At Tue, 16 Mar 2004 21:13:13 +, James Troup wrote: tags 231438 + patch thanks Daniel Jacobowitz [EMAIL PROTECTED] writes: localedef uses trampoline in its internal; it may conflict with exec-shield like pax, please see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=198099 Hmm, Red Hat _must_ have a patch for that by now They do. I've attached a .dpatch below with the relevant patch extracted from the latest Fedora .src.rpm. I built and tested this on i686-linux both with and without exec-shield and got someone else to do the same. (There are also no testsuite regressions.) Thanks for looking this bug and patch. But XFree86 has also this kind of problem. Pax uses a file which lists program names to avoid this issue. So is this ok to apply this patch for glibc? Or should exec-shield users be aware echo 0 /proc/sys/kernel/exec-shield? I think the patch is appropriate. I haven't tested it but it definitely looks right. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#231438: locales fails to install due to locale-gen segfault
GOTO Masanori [EMAIL PROTECTED] writes: localedef uses trampoline in its internal; it may conflict with exec-shield like pax, please see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=198099 Hmm, Red Hat _must_ have a patch for that by now They do. I've attached a .dpatch below with the relevant patch extracted from the latest Fedora .src.rpm. I built and tested this on i686-linux both with and without exec-shield and got someone else to do the same. (There are also no testsuite regressions.) Thanks for looking this bug and patch. But XFree86 has also this kind of problem. I hope XFree86 can eventually be fixed too, either by upstream adopting Red Hat's patches, or by the Debian package doing so. Pax uses a file which lists program names to avoid this issue. exec-shield doesn't have anything like this. So is this ok to apply this patch for glibc? I think the patch is small, non-invasive and has been tested fairly widely due to it's use in Fedora. Or should exec-shield users be aware echo 0 /proc/sys/kernel/exec-shield? That's not really a very nice option especially not when we can easily just fix localedef to not segfault. -- James -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#231438: locales fails to install due to locale-gen segfault
At Tue, 16 Mar 2004 21:13:13 +, James Troup wrote: tags 231438 + patch thanks Daniel Jacobowitz [EMAIL PROTECTED] writes: localedef uses trampoline in its internal; it may conflict with exec-shield like pax, please see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=198099 Hmm, Red Hat _must_ have a patch for that by now They do. I've attached a .dpatch below with the relevant patch extracted from the latest Fedora .src.rpm. I built and tested this on i686-linux both with and without exec-shield and got someone else to do the same. (There are also no testsuite regressions.) Thanks for looking this bug and patch. But XFree86 has also this kind of problem. Pax uses a file which lists program names to avoid this issue. So is this ok to apply this patch for glibc? Or should exec-shield users be aware echo 0 /proc/sys/kernel/exec-shield? Regards, -- gotom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#231438: locales fails to install due to locale-gen segfault
tags 231438 + patch thanks Daniel Jacobowitz [EMAIL PROTECTED] writes: localedef uses trampoline in its internal; it may conflict with exec-shield like pax, please see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=198099 Hmm, Red Hat _must_ have a patch for that by now They do. I've attached a .dpatch below with the relevant patch extracted from the latest Fedora .src.rpm. I built and tested this on i686-linux both with and without exec-shield and got someone else to do the same. (There are also no testsuite regressions.) -- James #! /bin/sh -e # DP: Description: Fix localedef segfault when run under exec-shield, #PaX or similar. (#231438, #198099) # DP: Author: (probably) Jakub Jelinek [EMAIL PROTECTED] # DP: Upstream status: Unknown # DP: Status Details: Unknown # DP: Date: 2004-03-16 if [ $# -ne 2 ]; then echo 2 `basename $0`: script expects -patch|-unpatch as argument exit 1 fi case $1 in -patch) patch -d $2 -f --no-backup-if-mismatch -p1 $0;; -unpatch) patch -d $2 -f --no-backup-if-mismatch -R -p1 $0;; *) echo 2 `basename $0`: script expects -patch|-unpatch as argument exit 1 esac exit 0 --- glibc-2.3.3-net/locale/programs/3level.h16 Jun 2003 07:19:09 - 1.1.1.5 +++ glibc-2.3.3-redhat/locale/programs/3level.h 16 Jun 2003 09:32:40 - 1.4 @@ -204,6 +204,42 @@ CONCAT(TABLE,_iterate) (struct TABLE *t, } } } + +/* GCC ATM seems to do a poor job with pointers to nested functions passed + to inlined functions. Help it a little bit with this hack. */ +#define wchead_table_iterate(tp, fn) \ +do \ + { \ +struct wchead_table *t = (tp); \ +uint32_t index1; \ +for (index1 = 0; index1 t-level1_size; index1++) \ + { \ + uint32_t lookup1 = t-level1[index1]; \ + if (lookup1 != ((uint32_t) ~0)) \ + { \ + uint32_t lookup1_shifted = lookup1 t-q; \ + uint32_t index2; \ + for (index2 = 0; index2 (1 t-q); index2++) \ + { \ + uint32_t lookup2 = t-level2[index2 + lookup1_shifted]; \ + if (lookup2 != ((uint32_t) ~0)) \ + { \ + uint32_t lookup2_shifted = lookup2 t-p; \ + uint32_t index3; \ + for (index3 = 0; index3 (1 t-p); index3++) \ + { \ + struct element_t *lookup3 \ + = t-level3[index3 + lookup2_shifted]; \ + if (lookup3 != NULL) \ + fn index1 t-q) + index2) t-p) + index3, \ + lookup3); \ + } \ + } \ + } \ + } \ + } \ + } while (0) + #endif #ifndef NO_FINALIZE -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#231438: locales fails to install due to locale-gen segfault
At Fri, 6 Feb 2004 15:30:39 -0500, Daniel Jacobowitz wrote: On Fri, Feb 06, 2004 at 10:23:01AM -0600, Manoj Srivastava wrote: Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. Architecture: i386 (i686) Kernel: Linux 2.4.24 Any interesting kernel patches? Pax has been reported to have this effect. I generated a larger list of locales when installing -11 and -12 without trouble. Or memory shortage? Anyway, check your environment. Regards, -- gotom -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#231438: locales fails to install due to locale-gen segfault
On Mon, 09 Feb 2004 18:34:53 +0900, GOTO Masanori [EMAIL PROTECTED] said: At Fri, 6 Feb 2004 15:30:39 -0500, Daniel Jacobowitz wrote: On Fri, Feb 06, 2004 at 10:23:01AM -0600, Manoj Srivastava wrote: Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. Architecture: i386 (i686) Kernel: Linux 2.4.24 Any interesting kernel patches? Pax has been reported to have this effect. I generated a larger list of locales when installing -11 and -12 without trouble. Or memory shortage? Anyway, check your environment. Oh, no, it was not memory shortage. I have 94MB ram and 996Mb swap free. At this point, from discussions on IRC, I would tend to suspect exec-shield. I'll try compiling a kernel without exec-shield to confirm. manoj -- At West Point, the cadets had been full of bravado...But bravado was grounded in ignorance; true courage was possible only after one gained the visceral comprehension that death was the potential price of valor. Rick Atkinson, _The Long Grey Line_ Manoj Srivastava [EMAIL PROTECTED] http://www.debian.org/%7Esrivasta/ 1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#231438: locales fails to install due to locale-gen segfault
On Mon, Feb 09, 2004 at 09:07:09PM +0900, GOTO Masanori wrote: At Mon, 09 Feb 2004 04:19:59 -0600, Manoj Srivastava wrote: On Mon, 09 Feb 2004 18:34:53 +0900, GOTO Masanori [EMAIL PROTECTED] said: At Fri, 6 Feb 2004 15:30:39 -0500, Daniel Jacobowitz wrote: On Fri, Feb 06, 2004 at 10:23:01AM -0600, Manoj Srivastava wrote: Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. Architecture: i386 (i686) Kernel: Linux 2.4.24 Any interesting kernel patches? Pax has been reported to have this effect. I generated a larger list of locales when installing -11 and -12 without trouble. Or memory shortage? Anyway, check your environment. Oh, no, it was not memory shortage. I have 94MB ram and 996Mb swap free. At this point, from discussions on IRC, I would tend to suspect exec-shield. I'll try compiling a kernel without exec-shield to confirm. localedef uses trampoline in its internal; it may conflict with exec-shield like pax, please see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=198099 Hmm, Red Hat _must_ have a patch for that by now -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#231438: locales fails to install due to locale-gen segfault
Manoj Srivastava [EMAIL PROTECTED] writes: Hmm. I can get rid of exec-shield and compile a new set, to try and narrow down the patch. Eh, just turn off exec-shield in proc[0] - no need to recompile your kernel. -- James [0] echo 0 /proc/sys/kernel/exec-shield -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#231438: locales fails to install due to locale-gen segfault
On Fri, 6 Feb 2004 15:30:39 -0500, Daniel Jacobowitz [EMAIL PROTECTED] said: On Fri, Feb 06, 2004 at 10:23:01AM -0600, Manoj Srivastava wrote: Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. Architecture: i386 (i686) Kernel: Linux 2.4.24 Any interesting kernel patches? Pax has been reported to have this effect. I generated a larger list of locales when installing -11 and -12 without trouble. Yes. I was initially gonna blame the lsm patch, but I then did a quick survey of all my installed kernels. They all fail, and heve these patches in common: acl exec-shield lowlatency Hmm. I can get rid of exec-shield and compile a new set, to try and narrow down the patch. manoj -- When I'm gone, boxing will be nothing again. The fans with the cigars and the hats turned down'll be there, but no more housewives and little men in the street and foreign presidents. It's goin' to be back to the fighter who comes to town, smells a flower, visits a hospital, blows a horn and says he's in shape. Old hat. I was the onliest boxer in history people asked questions like a senator. Muhammad Ali Manoj Srivastava [EMAIL PROTECTED] http://www.debian.org/%7Esrivasta/ 1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Bug#231438: locales fails to install due to locale-gen segfault
At Fri, 6 Feb 2004 15:30:39 -0500, Daniel Jacobowitz wrote: On Fri, Feb 06, 2004 at 10:23:01AM -0600, Manoj Srivastava wrote: Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. Architecture: i386 (i686) Kernel: Linux 2.4.24 Any interesting kernel patches? Pax has been reported to have this effect. I generated a larger list of locales when installing -11 and -12 without trouble. Or memory shortage? Anyway, check your environment. Regards, -- gotom
Bug#231438: locales fails to install due to locale-gen segfault
On Mon, 09 Feb 2004 18:34:53 +0900, GOTO Masanori [EMAIL PROTECTED] said: At Fri, 6 Feb 2004 15:30:39 -0500, Daniel Jacobowitz wrote: On Fri, Feb 06, 2004 at 10:23:01AM -0600, Manoj Srivastava wrote: Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. Architecture: i386 (i686) Kernel: Linux 2.4.24 Any interesting kernel patches? Pax has been reported to have this effect. I generated a larger list of locales when installing -11 and -12 without trouble. Or memory shortage? Anyway, check your environment. Oh, no, it was not memory shortage. I have 94MB ram and 996Mb swap free. At this point, from discussions on IRC, I would tend to suspect exec-shield. I'll try compiling a kernel without exec-shield to confirm. manoj -- At West Point, the cadets had been full of bravado...But bravado was grounded in ignorance; true courage was possible only after one gained the visceral comprehension that death was the potential price of valor. Rick Atkinson, _The Long Grey Line_ Manoj Srivastava [EMAIL PROTECTED] http://www.debian.org/%7Esrivasta/ 1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Bug#231438: locales fails to install due to locale-gen segfault
At Mon, 09 Feb 2004 04:19:59 -0600, Manoj Srivastava wrote: On Mon, 09 Feb 2004 18:34:53 +0900, GOTO Masanori [EMAIL PROTECTED] said: At Fri, 6 Feb 2004 15:30:39 -0500, Daniel Jacobowitz wrote: On Fri, Feb 06, 2004 at 10:23:01AM -0600, Manoj Srivastava wrote: Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. Architecture: i386 (i686) Kernel: Linux 2.4.24 Any interesting kernel patches? Pax has been reported to have this effect. I generated a larger list of locales when installing -11 and -12 without trouble. Or memory shortage? Anyway, check your environment. Oh, no, it was not memory shortage. I have 94MB ram and 996Mb swap free. At this point, from discussions on IRC, I would tend to suspect exec-shield. I'll try compiling a kernel without exec-shield to confirm. localedef uses trampoline in its internal; it may conflict with exec-shield like pax, please see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=198099 Regards, -- gotom
Bug#231438: locales fails to install due to locale-gen segfault
On Mon, Feb 09, 2004 at 09:07:09PM +0900, GOTO Masanori wrote: At Mon, 09 Feb 2004 04:19:59 -0600, Manoj Srivastava wrote: On Mon, 09 Feb 2004 18:34:53 +0900, GOTO Masanori [EMAIL PROTECTED] said: At Fri, 6 Feb 2004 15:30:39 -0500, Daniel Jacobowitz wrote: On Fri, Feb 06, 2004 at 10:23:01AM -0600, Manoj Srivastava wrote: Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. Architecture: i386 (i686) Kernel: Linux 2.4.24 Any interesting kernel patches? Pax has been reported to have this effect. I generated a larger list of locales when installing -11 and -12 without trouble. Or memory shortage? Anyway, check your environment. Oh, no, it was not memory shortage. I have 94MB ram and 996Mb swap free. At this point, from discussions on IRC, I would tend to suspect exec-shield. I'll try compiling a kernel without exec-shield to confirm. localedef uses trampoline in its internal; it may conflict with exec-shield like pax, please see: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=198099 Hmm, Red Hat _must_ have a patch for that by now -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer
Bug#231438: locales fails to install due to locale-gen segfault
Manoj Srivastava [EMAIL PROTECTED] writes: Hmm. I can get rid of exec-shield and compile a new set, to try and narrow down the patch. Eh, just turn off exec-shield in proc[0] - no need to recompile your kernel. -- James [0] echo 0 /proc/sys/kernel/exec-shield
Bug#231438: locales fails to install due to locale-gen segfault
Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. == __ bash -x /usr/sbin/locale-gen + set -e + LOCALEGEN=/etc/locale.gen + LOCALES=/usr/share/i18n/locales + '[' -n '' ']' + '[' -f /etc/locale.gen -a -s /etc/locale.gen ']' + rm -rf '/usr/lib/locale/*' + umask 022 + echo 'Generating locales...' Generating locales... + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + '[' -n '' -a -n '' ']' + continue + read locale charset + '[' -n en_GB -a -n ISO-8859-1 ']' ++ echo en_GB ++ sed 's/\([EMAIL PROTECTED]).*/\1/' + echo -n ' en_GB' en_GB+ echo -n .ISO-8859-1 .ISO-8859-1++ echo en_GB ++ sed 's/\([EMAIL PROTECTED])\([EMAIL PROTECTED])*/\2/' + echo -n + echo -n ... ...+ '[' -f /usr/share/i18n/locales/en_GB ']' + input=en_GB + localedef -i en_GB -c -f ISO-8859-1 -A /etc/locale.alias en_GB /usr/sbin/locale-gen: line 32: 26146 Segmentation fault localedef -i $input == __ strace localedef -i en_GB -c -f ISO-8859-1 -A /etc/locale.alias en_GB execve(/usr/bin/localedef, [localedef, -i, en_GB, -c, -f, ISO-8859-1, -A, /etc/loc ale.alias, en_GB], [/* 95 vars */]) = 0 uname({sys=Linux, node=calidity, ...}) = 0 brk(0) = 0x881 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb80f8000 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) open(/etc/ld.so.preload, O_RDONLY)= -1 ENOENT (No such file or directory) open(/etc/ld.so.cache, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=51769, ...}) = 0 old_mmap(NULL, 51769, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb80eb000 close(3)= 0 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) open(/lib/libc.so.6, O_RDONLY)= 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200^\1..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=1244004, ...}) = 0 old_mmap(NULL, 1254244, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xc7c000 old_mmap(0xda4000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0xda4000 old_mmap(0xdac000, 9060, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xdac0 00 close(3)= 0 munmap(0xb80eb000, 51769) = 0 brk(0) = 0x881 brk(0x8831000) = 0x8831000 brk(0) = 0x8831000 open(ISO-8859-1, O_RDONLY)= -1 ENOENT (No such file or directory) open(/usr/share/i18n/charmaps/ISO-8859-1, O_RDONLY) = -1 ENOENT (No such file or directory) open(/usr/share/i18n/charmaps/ISO-8859-1.gz, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=3150, ...}) = 0 pipe([5, 7])= 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 fork() = 30283 close(7)= 0 close(3)= 0 fcntl64(5, F_GETFL) = 0 (flags O_RDONLY) fstat64(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb80f7000 _llseek(5, 0, 0xbfebda90, SEEK_CUR) = -1 ESPIPE (Illegal seek) read(5, code_set_name ISO-8859-1\ncomm..., 4096) = 4096 read(5, LATIN CAPITAL LETTER Z\nU00..., 4096) = 4096 read(5, SUPERSCRIPT THREE\nU00B4..., 4096) = 4096 --- SIGCHLD (Child exited) @ 0 (0) --- read(5, L LETTER U WITH CIRCUMFLEX\nU00F..., 4096) = 337 read(5, , 4096) = 0 close(5)= 0 munmap(0xb80f7000, 4096)= 0 open(en_GB, O_RDONLY) = -1 ENOENT (No such file or directory) open(/usr/share/i18n/locales/en_GB, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=5114, ...}) = 0 mmap2(NULL, 5114, PROT_READ, MAP_SHARED, 3, 0) = 0xb80f6000 _llseek(3, 5114, [5114], SEEK_SET) = 0 open(i18n, O_RDONLY) = -1 ENOENT (No such file or directory) open(/usr/share/i18n/locales/i18n, O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0644, st_size=95199, ...}) = 0 mmap2(NULL, 95199, PROT_READ, MAP_SHARED, 5,
Bug#231438: locales fails to install due to locale-gen segfault
On Fri, Feb 06, 2004 at 10:23:01AM -0600, Manoj Srivastava wrote: Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. Architecture: i386 (i686) Kernel: Linux 2.4.24 Any interesting kernel patches? Pax has been reported to have this effect. I generated a larger list of locales when installing -11 and -12 without trouble. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#231438: locales fails to install due to locale-gen segfault
Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. == __ bash -x /usr/sbin/locale-gen + set -e + LOCALEGEN=/etc/locale.gen + LOCALES=/usr/share/i18n/locales + '[' -n '' ']' + '[' -f /etc/locale.gen -a -s /etc/locale.gen ']' + rm -rf '/usr/lib/locale/*' + umask 022 + echo 'Generating locales...' Generating locales... + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + continue + read locale charset + '[' -n '' -a -n '' ']' + continue + read locale charset + '[' -n en_GB -a -n ISO-8859-1 ']' ++ echo en_GB ++ sed 's/\([EMAIL PROTECTED]).*/\1/' + echo -n ' en_GB' en_GB+ echo -n .ISO-8859-1 .ISO-8859-1++ echo en_GB ++ sed 's/\([EMAIL PROTECTED])\([EMAIL PROTECTED])*/\2/' + echo -n + echo -n ... ...+ '[' -f /usr/share/i18n/locales/en_GB ']' + input=en_GB + localedef -i en_GB -c -f ISO-8859-1 -A /etc/locale.alias en_GB /usr/sbin/locale-gen: line 32: 26146 Segmentation fault localedef -i $input == __ strace localedef -i en_GB -c -f ISO-8859-1 -A /etc/locale.alias en_GB execve(/usr/bin/localedef, [localedef, -i, en_GB, -c, -f, ISO-8859-1, -A, /etc/loc ale.alias, en_GB], [/* 95 vars */]) = 0 uname({sys=Linux, node=calidity, ...}) = 0 brk(0) = 0x881 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb80f8000 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) open(/etc/ld.so.preload, O_RDONLY)= -1 ENOENT (No such file or directory) open(/etc/ld.so.cache, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=51769, ...}) = 0 old_mmap(NULL, 51769, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb80eb000 close(3)= 0 access(/etc/ld.so.nohwcap, F_OK) = -1 ENOENT (No such file or directory) open(/lib/libc.so.6, O_RDONLY)= 3 read(3, \177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200^\1..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0644, st_size=1244004, ...}) = 0 old_mmap(NULL, 1254244, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xc7c000 old_mmap(0xda4000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x127000) = 0xda4000 old_mmap(0xdac000, 9060, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xdac0 00 close(3)= 0 munmap(0xb80eb000, 51769) = 0 brk(0) = 0x881 brk(0x8831000) = 0x8831000 brk(0) = 0x8831000 open(ISO-8859-1, O_RDONLY)= -1 ENOENT (No such file or directory) open(/usr/share/i18n/charmaps/ISO-8859-1, O_RDONLY) = -1 ENOENT (No such file or directory) open(/usr/share/i18n/charmaps/ISO-8859-1.gz, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=3150, ...}) = 0 pipe([5, 7])= 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 fork() = 30283 close(7)= 0 close(3)= 0 fcntl64(5, F_GETFL) = 0 (flags O_RDONLY) fstat64(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb80f7000 _llseek(5, 0, 0xbfebda90, SEEK_CUR) = -1 ESPIPE (Illegal seek) read(5, code_set_name ISO-8859-1\ncomm..., 4096) = 4096 read(5, LATIN CAPITAL LETTER Z\nU00..., 4096) = 4096 read(5, SUPERSCRIPT THREE\nU00B4..., 4096) = 4096 --- SIGCHLD (Child exited) @ 0 (0) --- read(5, L LETTER U WITH CIRCUMFLEX\nU00F..., 4096) = 337 read(5, , 4096) = 0 close(5)= 0 munmap(0xb80f7000, 4096)= 0 open(en_GB, O_RDONLY) = -1 ENOENT (No such file or directory) open(/usr/share/i18n/locales/en_GB, O_RDONLY) = 3 fstat64(3, {st_mode=S_IFREG|0644, st_size=5114, ...}) = 0 mmap2(NULL, 5114, PROT_READ, MAP_SHARED, 3, 0) = 0xb80f6000 _llseek(3, 5114, [5114], SEEK_SET) = 0 open(i18n, O_RDONLY) = -1 ENOENT (No such file or directory) open(/usr/share/i18n/locales/i18n, O_RDONLY) = 5 fstat64(5, {st_mode=S_IFREG|0644, st_size=95199, ...}) = 0 mmap2(NULL, 95199, PROT_READ, MAP_SHARED, 5,
Bug#231438: locales fails to install due to locale-gen segfault
On Fri, Feb 06, 2004 at 10:23:01AM -0600, Manoj Srivastava wrote: Package: locales Version: 2.3.2.ds1-11 Severity: grave Justification: The package fails to install, and causes dictd to also fail to install, amongst others. Architecture: i386 (i686) Kernel: Linux 2.4.24 Any interesting kernel patches? Pax has been reported to have this effect. I generated a larger list of locales when installing -11 and -12 without trouble. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer