Bug 948695

Summary: man: double free or corruption (fasttop)
Product: [Fedora] Fedora Reporter: Harald Hoyer <harald>
Component: man-dbAssignee: Peter Schiffer <pschiffe>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: cjwatson, pschiffe
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-20 19:39:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Harald Hoyer 2013-04-05 06:58:36 UTC
$ rpm -qf /bin/man
man-db-2.6.3-5.fc19.x86_64

$ man -aw lzma
/usr/share/man/man1/xz.1.gz
*** Error in `man': double free or corruption (fasttop): 0x0000000001a83110 ***
Segmentation fault (core dumped)

$ gdb man
[...]
(gdb) run -aw lzma
[...]
/usr/share/man/man1/xz.1.gz
*** Error in `/usr/bin/man': double free or corruption (fasttop): 0x0000000000636110 ***
[...]
(gdb) up
#18 0x0000003797002696 in free_mandata_struct (pinfo=0x636110) at db_lookup.c:159
159			free (pinfo);			/* free the structure */
(gdb) info locals
next = 0x0
(gdb) print pinfo
$1 = (struct mandata *) 0x636110
(gdb) print *pinfo
$2 = {next = 0x0, addr = 0x627380 "\020\rd", name = 0x627360 "\220\203b", ext = 0x627382 "d", sec = 0x627384 "", id = 67 'C', pointer = 0x627393 "unxz", 
  comp = 0x62739a "gz", filter = 0x627398 "t", whatis = 0x62739d "", _st_mtime = 1364030474}

Comment 1 Peter Schiffer 2013-04-08 13:41:19 UTC
Thanks for the report.

Fixed in rawhide:
man-db-2.6.3-6.fc20
http://koji.fedoraproject.org/koji/buildinfo?buildID=409986

Comment 2 Fedora Update System 2013-04-08 13:52:03 UTC
man-db-2.6.3-6.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/man-db-2.6.3-6.fc19

Comment 3 Fedora Update System 2013-04-08 15:46:38 UTC
Package man-db-2.6.3-6.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing man-db-2.6.3-6.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5111/man-db-2.6.3-6.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-04-20 19:39:15 UTC
man-db-2.6.3-6.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.