Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103257 - app-editors/teco segfaults for double free() call
Summary: app-editors/teco segfaults for double free() call
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Tavis Ormandy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-21 09:39 UTC by Alberto Santini
Modified: 2005-08-21 10:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Santini 2005-08-21 09:39:01 UTC
New versions of glibc don't allow double free() on the same pointer. If so, the 
program will segfault. The default .tecorc provided with the TECO ebuild causes 
this bug. We should modify the ebuild from:

pkg_postinst() {
        einfo "The TECO binary is called te."
        einfo "Sample configurations and documentation is available in /usr/
share/doc/"
}

to

pkg_postinst() {
        einfo "The TECO binary is called te."
        einfo "Sample configurations and documentation is available in /usr/
share/doc/"
        einfo "If you are experiencing problems related to segafaults crashes, 
you should use this alias to run teco:"
        einfo "alias te='MALLOC_CHECK_=0 te'"
}

Reproducible: Always
Steps to Reproduce:
1. emerge teco
2. zcat /usr/share/doc/teco-<version>/sample.tecorc.gz > ~/.tecorc
3. te

Actual Results:  
The program Segfaults immediately

Expected Results:  
It should have shown an asterisk at the bottom of the screen

My glibc version: 2.3.5-r1
My gcc version: 3.4.4
My TECO version: 1.00-r2
Comment 1 Tavis Ormandy (RETIRED) gentoo-dev 2005-08-21 10:41:55 UTC
I see it, I think it should be fixed in cvs with -r3.

good to know I'm not the only teco user out there :)

=> FIXED.