Re: [Linux] Bug in "Powered Grep"
Brought to you by:
set
From: Salvador E. T. <sal...@in...> - 2006-02-14 13:25:54
|
I can't reproduce the problem, the fault seems to be from: #2 0x080abafc in TSOSListBoxMsg::selectItem (this=0x8251340, item=40) at ../setedit/edmsg.cc:194 That's the code around it: if (fI->type & fitCont) { DynStrCatStruct st; DynStrCatInit(&st,msg+offset,len); DynStrCat(&st,msg2+fI->offset,fI->len); // Line 194 msg=st.str; len=st.len; offset=0; allocated=1; } The only way to get there is by having fitCont bit enabled and that's impossible because the powered grep is doing this: fI.type=fitNone; // Look for file name and line number // It fails if: The file is absolute and starts with a number if (TVCodePage::isAlpha(buf[0]) && buf[1]==':' && (!ucisdigit(buf[2]))) offset=2; endOfName=strchr(buf+offset,':'); if (endOfName) endOfLine=strchr(endOfName+1,':'); if (!endOfName || !endOfLine || !ucisdigit(endOfName[1])) return 0; char *ret; fI.type=fitInfo; So you can only have fitNone or fitInfo, but never fitCont. As you say the lines are blue then you are getting fitInfo. The only way to get it is by a severe memory corruption. I can only suggest recompiling *all* (TV and SETEdit), just do a full clean-up and compile again. I have no other idea. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |