<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>34609</bug_id>
          
          <creation_ts>2003-11-28 03:47 0000</creation_ts>
          <short_desc>joe 2.9.8 editor seg-faults on &apos;find and replace&apos; when compiled with -Os</short_desc>
          <delta_ts>2004-08-19 15:51:59 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ronan@iol.ie</reporter>
          <assigned_to>ppc@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ronan@iol.ie</who>
            <bug_when>2003-11-28 03:47:04 0000</bug_when>
            <thetext>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 &quot;^KF&quot;, search string, &quot;R&quot; for replace, replace string then return

Actual Results:  
Seg fault

Expected Results:  
Not seg faulted

Full CFLAGS for the build were:

CFLAGS=&quot;-O2 -pipe -march=i686
       -fomit-frame-pointer -falign-functions=4 -falign-jumps=4 -falign-loops=4</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>joker@gentoo.org</who>
            <bug_when>2003-11-28 17:22:51 0000</bug_when>
            <thetext>Added replace-flag function.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>joker@gentoo.org</who>
            <bug_when>2003-11-28 17:23:19 0000</bug_when>
            <thetext>Could you please test and mark stable on PPC. Each version has different arch tags and i&apos;d like to clean the old versions.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pvdabeel@gentoo.org</who>
            <bug_when>2004-08-19 15:51:59 0000</bug_when>
            <thetext>fixed in cvs</thetext>
          </long_desc>
      
    </bug>

</bugzilla>