Bug 103257 - app-editors/teco segfaults for double free() call
Bug#: 103257 Product:  Gentoo Linux Version: 2005.0 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: critical Priority: P2
Resolution: FIXED Assigned To: taviso@gentoo.org Reported By: santini.alberto@gmail.com
Component: Ebuilds
URL: 
Summary: app-editors/teco segfaults for double free() call
Keywords:  
Status Whiteboard: 
Opened: 2005-08-21 09:39 0000
Description:   Opened: 2005-08-21 09:39 0000
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 From Tavis Ormandy (RETIRED) 2005-08-21 10:41:55 0000 -------
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.