Assertion failure and crash

Bug #424668 reported by Jeffrey Baker on 2009-09-05
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netkit-ftp (Ubuntu)
Undecided
Unassigned

Bug Description

ftp crashes:

ftp> ls -l MS*
ftp: malloc.c:3074: 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.
Aborted (core dumped)

I was connected to ftp.microsoft.com at the time.

Architecture: amd64
DistroRelease: Ubuntu 9.10
Package: netkit-ftp (not installed)
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_US.UTF-8
ProcVersionSignature: Ubuntu 2.6.31-9.29-generic
Uname: Linux 2.6.31-9-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

tags: added: apport-collected
Jeffrey Baker (jwbaker) wrote :

Wow, apport-collect is even more retarded than I suspected. The version of ftp installed is 0.17-18

poet_imp (paul-lemmons) wrote :

The problem is not isolated to FTP. I get the same error when trying to run nmon on the 2.6.31.11 kernel.

paul@paul-laptop:~/Downloads/nmon$ gdb ./nmon_x86_ubuntu810
GNU gdb (GDB) 6.8.92-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/paul/Downloads/nmon/nmon_x86_ubuntu810...done.
(gdb) run
Starting program: /home/paul/Downloads/nmon/nmon_x86_ubuntu810
nmon_x86_ubuntu810: malloc.c:3074: 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.

Program received signal SIGABRT, Aborted.
0xb7fe0430 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7fe0430 in __kernel_vsyscall ()
#1 0xb7e564d1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7e59932 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7e4f648 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7e9a2d0 in ?? () from /lib/tls/i686/cmov/libc.so.6
#5 0xb7e9b868 in malloc () from /lib/tls/i686/cmov/libc.so.6
#6 0x08050392 in main (argc=1, argv=0xbffff3b4) at lmon.c:3310
(gdb)

# uname -a
Linux paul-laptop 2.6.31-11-generic-pae #38-Ubuntu SMP Fri Oct 2 12:53:03 UTC 2009 i686 GNU/Linux

ender_wiggin (a-piskorz) wrote :

Same here. I get this error while trying to run nmon on Ubuntu 9.10 with the 2.6.31-18 kernel on a Intel box:

$ nmon
nmon: malloc.c:3074: 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.
Aborted

I use nmon a lot on AIX and consider it a great tool hence I would like to be able to use it on my Ubuntu laptop as well. If anyone can look into this that would be great. Any info you need - please let me know.

poet_imp (paul-lemmons) wrote :

This bug has been fixed. Go to the source forge site get the latest. You may need to compile it yourself (I haven't looked recently) but that is pretty easy to do.

poet_imp (paul-lemmons) wrote :

Clarification... nmon has been fixed... which is not the base for this bug....

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers