Re: Bug#566947: emacs23-nox fails to install

2010-04-21 Thread Deng Xiyue
On Tue, Apr 20, 2010 at 10:42:00PM +0200, Moritz Muehlenhoff wrote:
 On Thu, Feb 04, 2010 at 01:02:32PM +0100, Aurelien Jarno wrote:
  Deng Xiyue a écrit :
   On Tue, Jan 26, 2010 at 05:44:53PM +0100, Aurelien Jarno wrote:
   Sven Joachim a écrit :
   [ Putting the glibc maintainers and the mips porters into the loop.
 Summary: emacs23-nox aborts with malloc assertion failure on mipsel. ]
  
   On 2010-01-26 02:17 +0100, Deng Xiyue wrote:
  
   Package: emacs23-nox
   Version: 23.1+1-5
   Severity: grave
  
   When installing emacs23-nox, aptitude stops with the following outputs:
  
   ---BEGIN OF OUTPUT---
  
   $ LANG=C sudo aptitude install emacs23-nox
   Reading package lists... Done
   Building dependency tree
   Reading state information... Done
   Reading extended state information
   Initializing package states... Done
   Reading task descriptions... Done
   The following partially installed packages will be configured:
 emacs23-nox
   0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
   Need to get 0B of archives. After unpacking 0B will be used.
   Writing extended state information... Done
   Setting up emacs23-nox (23.1+1-5) ...
   emacs-install emacs23
   install/cscope: Byte-compiling for emacs23
   emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) 
   (((char *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct 
   malloc_chunk, fd  old_size == 0) || ((unsigned long) (old_size) 
   = (unsigned long)__builtin_offsetof (struct malloc_chunk, 
   fd_nextsize))+((2 * (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) 
   - 1)))  ((old_top)-size  0x1)  ((unsigned long)old_end  
   pagemask) == 0)' failed.
   Fatal error (6)Aborted
   I don't have this failure here when trying to install emacs23 (cscope is
   also installed). Do you know if there are some more conditions to
   trigger this bug?
  
   
   Actually, installing package emacs23 works fine, only installing
   emacs23-nox fails with the above assertion.
   
   Also, it looks like a memory corruption. Have you tried to reboot the
   machine? A different kernel?
  
   
   I have tried rebooting, no luck.  Installing on my amd64 sid virtual
   machine works without problem, so looks like it is mips* specific.
   
   FYI, this is a loongson2f laptop, so both the kernel and binutils have
   been patched to work with this kind of machine, and related patches are
   being review for integration with upstream kernel source.  I don't know
   whether those patches have any impact on this problem.
  
  What kind of patch is needed to binutils? Binutils contains the tool to
  generated the binaries, so if the patch changes the generated code, it
  means that Debian is simply not compatible with the loongson2f.
 
 I noticed the following in the binutils (2.20.1-6) changelog:
 
* Backport fixups of Loongson2F from the trunk.

 Deng, does rebuilding emacs23 with the current binutils help?
 

Rebuilt with current binutils, now it did make emacs23-nox installable
on my loongson2f-based machine.  So this should be a loongson2f specific
problem.  I wonder whether a binNMU will be helpful, as I don't know
whether the patch works on non-loongson2f based machine.

Feel free to close this bug or handle it as appropriate.

Regards,
Xiyue Deng

 Cheers,
 Moritz


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100421090330.ga27...@localhost



Re: Bug#566947: emacs23-nox fails to install

2010-04-20 Thread Moritz Muehlenhoff
On Thu, Feb 04, 2010 at 01:02:32PM +0100, Aurelien Jarno wrote:
 Deng Xiyue a écrit :
  On Tue, Jan 26, 2010 at 05:44:53PM +0100, Aurelien Jarno wrote:
  Sven Joachim a écrit :
  [ Putting the glibc maintainers and the mips porters into the loop.
Summary: emacs23-nox aborts with malloc assertion failure on mipsel. ]
 
  On 2010-01-26 02:17 +0100, Deng Xiyue wrote:
 
  Package: emacs23-nox
  Version: 23.1+1-5
  Severity: grave
 
  When installing emacs23-nox, aptitude stops with the following outputs:
 
  ---BEGIN OF OUTPUT---
 
  $ LANG=C sudo aptitude install emacs23-nox
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Reading extended state information
  Initializing package states... Done
  Reading task descriptions... Done
  The following partially installed packages will be configured:
emacs23-nox
  0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  Need to get 0B of archives. After unpacking 0B will be used.
  Writing extended state information... Done
  Setting up emacs23-nox (23.1+1-5) ...
  emacs-install emacs23
  install/cscope: Byte-compiling for emacs23
  emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) 
  (((char *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct 
  malloc_chunk, fd  old_size == 0) || ((unsigned long) (old_size) = 
  (unsigned long)__builtin_offsetof (struct malloc_chunk, 
  fd_nextsize))+((2 * (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 
  1)))  ((old_top)-size  0x1)  ((unsigned long)old_end  pagemask) 
  == 0)' failed.
  Fatal error (6)Aborted
  I don't have this failure here when trying to install emacs23 (cscope is
  also installed). Do you know if there are some more conditions to
  trigger this bug?
 
  
  Actually, installing package emacs23 works fine, only installing
  emacs23-nox fails with the above assertion.
  
  Also, it looks like a memory corruption. Have you tried to reboot the
  machine? A different kernel?
 
  
  I have tried rebooting, no luck.  Installing on my amd64 sid virtual
  machine works without problem, so looks like it is mips* specific.
  
  FYI, this is a loongson2f laptop, so both the kernel and binutils have
  been patched to work with this kind of machine, and related patches are
  being review for integration with upstream kernel source.  I don't know
  whether those patches have any impact on this problem.
 
 What kind of patch is needed to binutils? Binutils contains the tool to
 generated the binaries, so if the patch changes the generated code, it
 means that Debian is simply not compatible with the loongson2f.

I noticed the following in the binutils (2.20.1-6) changelog:

   * Backport fixups of Loongson2F from the trunk.
   
Deng, does rebuilding emacs23 with the current binutils help?

Cheers,
Moritz


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100420204200.ga27...@inutil.org



Re: Bug#566947: emacs23-nox fails to install

2010-02-04 Thread Aurelien Jarno
Deng Xiyue a écrit :
 On Tue, Jan 26, 2010 at 05:44:53PM +0100, Aurelien Jarno wrote:
 Sven Joachim a écrit :
 [ Putting the glibc maintainers and the mips porters into the loop.
   Summary: emacs23-nox aborts with malloc assertion failure on mipsel. ]

 On 2010-01-26 02:17 +0100, Deng Xiyue wrote:

 Package: emacs23-nox
 Version: 23.1+1-5
 Severity: grave

 When installing emacs23-nox, aptitude stops with the following outputs:

 ---BEGIN OF OUTPUT---

 $ LANG=C sudo aptitude install emacs23-nox
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 Reading extended state information
 Initializing package states... Done
 Reading task descriptions... Done
 The following partially installed packages will be configured:
   emacs23-nox
 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 Need to get 0B of archives. After unpacking 0B will be used.
 Writing extended state information... Done
 Setting up emacs23-nox (23.1+1-5) ...
 emacs-install emacs23
 install/cscope: Byte-compiling for emacs23
 emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) 
 (((char *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct 
 malloc_chunk, fd  old_size == 0) || ((unsigned long) (old_size) = 
 (unsigned long)__builtin_offsetof (struct malloc_chunk, 
 fd_nextsize))+((2 * (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 
 1)))  ((old_top)-size  0x1)  ((unsigned long)old_end  pagemask) == 
 0)' failed.
 Fatal error (6)Aborted
 I don't have this failure here when trying to install emacs23 (cscope is
 also installed). Do you know if there are some more conditions to
 trigger this bug?

 
 Actually, installing package emacs23 works fine, only installing
 emacs23-nox fails with the above assertion.
 
 Also, it looks like a memory corruption. Have you tried to reboot the
 machine? A different kernel?

 
 I have tried rebooting, no luck.  Installing on my amd64 sid virtual
 machine works without problem, so looks like it is mips* specific.
 
 FYI, this is a loongson2f laptop, so both the kernel and binutils have
 been patched to work with this kind of machine, and related patches are
 being review for integration with upstream kernel source.  I don't know
 whether those patches have any impact on this problem.
 

What kind of patch is needed to binutils? Binutils contains the tool to
generated the binaries, so if the patch changes the generated code, it
means that Debian is simply not compatible with the loongson2f.

-- 
Aurelien Jarno  GPG: 1024D/F1BCDB73
aurel...@aurel32.net http://www.aurel32.net


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Bug#566947: emacs23-nox fails to install

2010-01-26 Thread Sven Joachim
[ Putting the glibc maintainers and the mips porters into the loop.
  Summary: emacs23-nox aborts with malloc assertion failure on mipsel. ]

On 2010-01-26 02:17 +0100, Deng Xiyue wrote:

 Package: emacs23-nox
 Version: 23.1+1-5
 Severity: grave

 When installing emacs23-nox, aptitude stops with the following outputs:

 ---BEGIN OF OUTPUT---

 $ LANG=C sudo aptitude install emacs23-nox
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 Reading extended state information
 Initializing package states... Done
 Reading task descriptions... Done
 The following partially installed packages will be configured:
   emacs23-nox
 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 Need to get 0B of archives. After unpacking 0B will be used.
 Writing extended state information... Done
 Setting up emacs23-nox (23.1+1-5) ...
 emacs-install emacs23
 install/cscope: Byte-compiling for emacs23
 emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char 
 *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, 
 fd  old_size == 0) || ((unsigned long) (old_size) = (unsigned 
 long)__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * 
 (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 1)))  ((old_top)-size 
  0x1)  ((unsigned long)old_end  pagemask) == 0)' failed.
 Fatal error (6)Aborted

This assertion failure happens in libc6.  I'm inclined to reassign the
bug, but I'll leave this to more knowledgeable people.  The fact that
the eglibc testsuite is currently disabled on mipsel¹ does not exactly
increase confidence in the libc6 package on that architecture.

 install/dictionaries-common: Byte-compiling for emacsen flavour emacs23
 emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char 
 *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, 
 fd  old_size == 0) || ((unsigned long) (old_size) = (unsigned 
 long)__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * 
 (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 1)))  ((old_top)-size 
  0x1)  ((unsigned long)old_end  pagemask) == 0)' failed.
 Fatal error (6)Aborted
 emacsen-common: Handling install of emacsen flavor emacs23
 emacsen-common: byte-compiling for emacs23
 emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char 
 *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, 
 fd  old_size == 0) || ((unsigned long) (old_size) = (unsigned 
 long)__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * 
 (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 1)))  ((old_top)-size 
  0x1)  ((unsigned long)old_end  pagemask) == 0)' failed.
 Fatal error (6)Aborted
 emacs-install: /usr/lib/emacsen-common/packages/install/emacsen-common 
 emacs23 failed at /usr/lib/emacsen-common/emacs-install line 28, TSORT line 
 6.
 dpkg: error processing emacs23-nox (--configure):
  subprocess installed post-installation script returned error exit status 134
 Errors were encountered while processing:
  emacs23-nox
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 A package failed to install.  Trying to recover:
 Setting up emacs23-nox (23.1+1-5) ...
 emacs-install emacs23
 install/cscope: Byte-compiling for emacs23
 emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char 
 *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, 
 fd  old_size == 0) || ((unsigned long) (old_size) = (unsigned 
 long)__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * 
 (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 1)))  ((old_top)-size 
  0x1)  ((unsigned long)old_end  pagemask) == 0)' failed.
 Fatal error (6)Aborted
 install/dictionaries-common: Byte-compiling for emacsen flavour emacs23
 emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char 
 *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, 
 fd  old_size == 0) || ((unsigned long) (old_size) = (unsigned 
 long)__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * 
 (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 1)))  ((old_top)-size 
  0x1)  ((unsigned long)old_end  pagemask) == 0)' failed.
 Fatal error (6)Aborted
 emacsen-common: Handling install of emacsen flavor emacs23
 emacsen-common: byte-compiling for emacs23
 emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) (((char 
 *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, 
 fd  old_size == 0) || ((unsigned long) (old_size) = (unsigned 
 long)__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 * 
 (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 1)))  ((old_top)-size 
  0x1)  ((unsigned long)old_end  pagemask) == 0)' failed.
 Fatal error (6)Aborted
 emacs-install: /usr/lib/emacsen-common/packages/install/emacsen-common 
 emacs23 failed at /usr/lib/emacsen-common/emacs-install line 

Re: Bug#566947: emacs23-nox fails to install

2010-01-26 Thread Aurelien Jarno
Sven Joachim a écrit :
 [ Putting the glibc maintainers and the mips porters into the loop.
   Summary: emacs23-nox aborts with malloc assertion failure on mipsel. ]
 
 On 2010-01-26 02:17 +0100, Deng Xiyue wrote:
 
 Package: emacs23-nox
 Version: 23.1+1-5
 Severity: grave

 When installing emacs23-nox, aptitude stops with the following outputs:

 ---BEGIN OF OUTPUT---

 $ LANG=C sudo aptitude install emacs23-nox
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 Reading extended state information
 Initializing package states... Done
 Reading task descriptions... Done
 The following partially installed packages will be configured:
   emacs23-nox
 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 Need to get 0B of archives. After unpacking 0B will be used.
 Writing extended state information... Done
 Setting up emacs23-nox (23.1+1-5) ...
 emacs-install emacs23
 install/cscope: Byte-compiling for emacs23
 emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) 
 (((char *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct 
 malloc_chunk, fd  old_size == 0) || ((unsigned long) (old_size) = 
 (unsigned long)__builtin_offsetof (struct malloc_chunk, 
 fd_nextsize))+((2 * (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 
 1)))  ((old_top)-size  0x1)  ((unsigned long)old_end  pagemask) == 
 0)' failed.
 Fatal error (6)Aborted

I don't have this failure here when trying to install emacs23 (cscope is
also installed). Do you know if there are some more conditions to
trigger this bug?

Also, it looks like a memory corruption. Have you tried to reboot the
machine? A different kernel?

 This assertion failure happens in libc6.  I'm inclined to reassign the
 bug, but I'll leave this to more knowledgeable people.  The fact that
 the eglibc testsuite is currently disabled on mipsel¹ does not exactly
 increase confidence in the libc6 package on that architecture.

The testsuite has been disabled due to broken buildds, not due to a
broken package. It is actually run when build on a different machines
than the build daemons, and it passes without any problem, provided you
have a recent kernel (lenny one for example).

-- 
Aurelien Jarno  GPG: 1024D/F1BCDB73
aurel...@aurel32.net http://www.aurel32.net


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Bug#566947: emacs23-nox fails to install

2010-01-26 Thread Deng Xiyue
On Tue, Jan 26, 2010 at 01:39:24PM +0100, Sven Joachim wrote:
  Versions of packages emacs23-nox depends on:
  ii  emacs23-bin-common23.1+1-5   The GNU Emacs editor's shared, 
  arc
  ii  install-info  4.13a.dfsg.1-5 Manage installed documentation 
  in 
  ii  libasound21.0.21a-1  shared library for ALSA 
  applicatio
  ii  libc6 2.10.2-2   GNU C Library: Shared libraries
 
 It will probably not help, but could you please upgrade libc6 to the
 version in unstable (2.10.2-5) and retry?


As you expected, upgrading libc6 to unstable version (2.10.2-5) doesn't
help.

 Regards,
 Sven
 
 
 ¹ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=516087


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Bug#566947: emacs23-nox fails to install

2010-01-26 Thread Deng Xiyue
On Tue, Jan 26, 2010 at 05:44:53PM +0100, Aurelien Jarno wrote:
 Sven Joachim a écrit :
  [ Putting the glibc maintainers and the mips porters into the loop.
Summary: emacs23-nox aborts with malloc assertion failure on mipsel. ]
  
  On 2010-01-26 02:17 +0100, Deng Xiyue wrote:
  
  Package: emacs23-nox
  Version: 23.1+1-5
  Severity: grave
 
  When installing emacs23-nox, aptitude stops with the following outputs:
 
  ---BEGIN OF OUTPUT---
 
  $ LANG=C sudo aptitude install emacs23-nox
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Reading extended state information
  Initializing package states... Done
  Reading task descriptions... Done
  The following partially installed packages will be configured:
emacs23-nox
  0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  Need to get 0B of archives. After unpacking 0B will be used.
  Writing extended state information... Done
  Setting up emacs23-nox (23.1+1-5) ...
  emacs-install emacs23
  install/cscope: Byte-compiling for emacs23
  emacs23: malloc.c:3096: sYSMALLOc: Assertion `(old_top == (((mbinptr) 
  (((char *) ((av)-bins[((1) - 1) * 2])) - __builtin_offsetof (struct 
  malloc_chunk, fd  old_size == 0) || ((unsigned long) (old_size) = 
  (unsigned long)__builtin_offsetof (struct malloc_chunk, 
  fd_nextsize))+((2 * (sizeof(size_t))) - 1))  ~((2 * (sizeof(size_t))) - 
  1)))  ((old_top)-size  0x1)  ((unsigned long)old_end  pagemask) == 
  0)' failed.
  Fatal error (6)Aborted
 
 I don't have this failure here when trying to install emacs23 (cscope is
 also installed). Do you know if there are some more conditions to
 trigger this bug?
 

Actually, installing package emacs23 works fine, only installing
emacs23-nox fails with the above assertion.

 Also, it looks like a memory corruption. Have you tried to reboot the
 machine? A different kernel?
 

I have tried rebooting, no luck.  Installing on my amd64 sid virtual
machine works without problem, so looks like it is mips* specific.

FYI, this is a loongson2f laptop, so both the kernel and binutils have
been patched to work with this kind of machine, and related patches are
being review for integration with upstream kernel source.  I don't know
whether those patches have any impact on this problem.

  This assertion failure happens in libc6.  I'm inclined to reassign the
  bug, but I'll leave this to more knowledgeable people.  The fact that
  the eglibc testsuite is currently disabled on mipsel¹ does not exactly
  increase confidence in the libc6 package on that architecture.
 
 The testsuite has been disabled due to broken buildds, not due to a
 broken package. It is actually run when build on a different machines
 than the build daemons, and it passes without any problem, provided you
 have a recent kernel (lenny one for example).
 
 -- 
 Aurelien Jarno  GPG: 1024D/F1BCDB73
 aurel...@aurel32.net http://www.aurel32.net


-- 
To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org