Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 103257

Summary: app-editors/teco segfaults for double free() call
Product: Gentoo Linux Reporter: Alberto Santini <santini.alberto>
Component: New packagesAssignee: Tavis Ormandy (RETIRED) <taviso>
Status: RESOLVED FIXED    
Severity: critical    
Priority: High    
Version: 2005.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.