Bug 34609 - joe 2.9.8 editor seg-faults on 'find and replace' when compiled with -Os
Bug#: 34609 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: minor Priority: P2
Resolution: FIXED Assigned To: ppc@gentoo.org Reported By: ronan@iol.ie
Component: Ebuilds
URL: 
Summary: joe 2.9.8 editor seg-faults on 'find and replace' when compiled with -Os
Keywords:  
Status Whiteboard: 
Opened: 2003-11-28 03:47 0000
Description:   Opened: 2003-11-28 03:47 0000
Having rebuild joe-2.9.8.ebuild with (amongst other things) -Os in my CFLAGS,
I discovered that it would seg fault whenever I did a search and replace (^KF,
search string, (R)eplace, string, return).

Rebuilding joe with -O2 (or I suspect, -O3) fixed the problem.
Ebuild needs to be rebuilt to replace -Os with -O2 (or 3)

Reproduced this on two machines - an i686 and an i586.


Reproducible: Always
Steps to Reproduce:
1. Build joe with -Os 
2. Open a file for editing with joe
3. Enter "^KF", search string, "R" for replace, replace string then return

Actual Results:  
Seg fault

Expected Results:  
Not seg faulted

Full CFLAGS for the build were:

CFLAGS="-O2 -pipe -march=i686
       -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4

------- Comment #1 From Christian Birchinger 2003-11-28 17:22:51 0000 -------
Added replace-flag function.

------- Comment #2 From Christian Birchinger 2003-11-28 17:23:19 0000 -------
Could you please test and mark stable on PPC. Each version has different arch
tags and i'd like to clean the old versions.

------- Comment #3 From Pieter Van den Abeele 2004-08-19 15:51:59 0000 -------
fixed in cvs