e2ps dumped the core while processing a text file

Bug #619690 reported by Uqbar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
e2ps (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: e2ps

This is what happened:
~ e2ps -p -a4 obj-long.spo > obj-long.ps
*** glibc detected *** e2ps: free(): invalid pointer: 0x00000000010b8570 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7f2b2bbf85b6]
e2ps[0x4047d5]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7f2b2bb9fc4d]
e2ps(strcat+0x62)[0x400faa]
======= Memory map: ========
00400000-0041e000 r-xp 00000000 08:05 101670380 /usr/bin/e2ps
0051e000-0051f000 rw-p 0001e000 08:05 101670380 /usr/bin/e2ps
0051f000-00520000 rw-p 00000000 00:00 0
0109f000-010f1000 rw-p 00000000 00:00 0 [heap]
7f2b2b96a000-7f2b2b980000 r-xp 00000000 08:05 33555644 /lib/libgcc_s.so.1
7f2b2b980000-7f2b2bb7f000 ---p 00016000 08:05 33555644 /lib/libgcc_s.so.1
7f2b2bb7f000-7f2b2bb80000 r--p 00015000 08:05 33555644 /lib/libgcc_s.so.1
7f2b2bb80000-7f2b2bb81000 rw-p 00016000 08:05 33555644 /lib/libgcc_s.so.1
7f2b2bb81000-7f2b2bcfb000 r-xp 00000000 08:05 33765131 /lib/libc-2.11.1.so
7f2b2bcfb000-7f2b2befa000 ---p 0017a000 08:05 33765131 /lib/libc-2.11.1.so
7f2b2befa000-7f2b2befe000 r--p 00179000 08:05 33765131 /lib/libc-2.11.1.so
7f2b2befe000-7f2b2beff000 rw-p 0017d000 08:05 33765131 /lib/libc-2.11.1.so
7f2b2beff000-7f2b2bf04000 rw-p 00000000 00:00 0
7f2b2bf04000-7f2b2bf06000 r-xp 00000000 08:05 67226393 /usr/lib/libpaper.so.1.1.2
7f2b2bf06000-7f2b2c106000 ---p 00002000 08:05 67226393 /usr/lib/libpaper.so.1.1.2
7f2b2c106000-7f2b2c107000 r--p 00002000 08:05 67226393 /usr/lib/libpaper.so.1.1.2
7f2b2c107000-7f2b2c108000 rw-p 00003000 08:05 67226393 /usr/lib/libpaper.so.1.1.2
7f2b2c108000-7f2b2c128000 r-xp 00000000 08:05 33557353 /lib/ld-2.11.1.so
7f2b2c2ff000-7f2b2c302000 rw-p 00000000 00:00 0
7f2b2c325000-7f2b2c328000 rw-p 00000000 00:00 0
7f2b2c328000-7f2b2c329000 r--p 00020000 08:05 33557353 /lib/ld-2.11.1.so
7f2b2c329000-7f2b2c32a000 rw-p 00021000 08:05 33557353 /lib/ld-2.11.1.so
7f2b2c32a000-7f2b2c32b000 rw-p 00000000 00:00 0
7fff7bef1000-7fff7bf06000 rw-p 00000000 00:00 0 [stack]
7fff7bf09000-7fff7bf0a000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)
~

--------
I attach here both the text file and the dumped core file.
It's reproducible 100% of times.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: e2ps 4.34-4
ProcVersionSignature: Ubuntu 2.6.32-24.39-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Wed Aug 18 10:21:46 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100429)
ProcEnviron:
 LANGUAGE=
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: e2ps

Revision history for this message
Uqbar (uqbar) wrote :
Revision history for this message
Uqbar (uqbar) wrote :

It's a text file included into the "angband spoilers" archive.

Revision history for this message
Uqbar (uqbar) wrote :

I found out that adding a (missing) trailing newline in the file will not cause the core dump.
Anyway, it is a bug, as text files don'tr need to have a trailing newline.

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.