Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#9372 closed bug (duplicate)

grep with -i-Param is crashing

Reported by: jahaiku Owned by: nobody
Priority: normal Milestone: R1
Component: - General Version: R1/alpha4.1
Keywords: Cc:
Blocked By: #9342 Blocking:
Has a Patch: no Platform: x86

Description

If you execute grep on a recent build like this

grep -r -i ToSearch .

it is crashing with the attached Backtrace. If you do not call grep with -i all is OK.

Attachments (1)

grep-231-debug-12-01-2013-19-07-31.report (20.9 KB) - added by jahaiku 7 years ago.
Backtrace of the crash

Download all attachments as: .zip

Change History (7)

Changed 7 years ago by jahaiku

Backtrace of the crash

comment:1 Changed 7 years ago by anevilyak

Blocked By: 9342 added
Resolution: duplicate
Status: newclosed

comment:2 Changed 7 years ago by scottmc

What hrev of Haiku did you see this on? What version of grep (grep --version)?

gcc2, gcc2h, gcc4, gcc4h, x86_64?

comment:3 Changed 7 years ago by jahaiku

This was a gcc4 build of hrev45150. The grep version is the included version of this hrev. This is the packagename: grep-2.14-x86-gcc4-2012-12-28.zip

BTW: Is it possible to include the gcc info and the hrev into the automatically generated bug report?

comment:4 in reply to:  3 ; Changed 7 years ago by anevilyak

Replying to jahaiku:

BTW: Is it possible to include the gcc info and the hrev into the automatically generated bug report?

The hrev is already in there. Discovering the compiler(s) used would be a bit less trivial though and not something I'd have time to look at any time soon.

comment:5 in reply to:  4 ; Changed 7 years ago by jahaiku

Replying to anevilyak:

Replying to jahaiku:

BTW: Is it possible to include the gcc info and the hrev into the automatically generated bug report?

The hrev is already in there. Discovering the compiler(s) used would be a bit less trivial though and not something I'd have time to look at any time soon.

In the AboutSystem there is a info saying, gcc4 or gcc2, isn't this the needed info?

comment:6 in reply to:  5 Changed 7 years ago by anevilyak

Replying to jahaiku:

In the AboutSystem there is a info saying, gcc4 or gcc2, isn't this the needed info?

AboutSystem has this hardcoded at compile time. The debugger cannot rely on that since it will eventually also support remote debugging, in which case it has to be queried from the target system, so discovering it is a bit more involved there.

Note: See TracTickets for help on using tickets.