Opened 11 years ago

Closed 11 years ago

Last modified 11 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:
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 11 years ago.
Backtrace of the crash

Download all attachments as: .zip

Change History (7)

by jahaiku, 11 years ago

Backtrace of the crash

comment:1 by anevilyak, 11 years ago

Blocked By: 9342 added
Resolution: duplicate
Status: newclosed

comment:2 by scottmc, 11 years ago

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

gcc2, gcc2h, gcc4, gcc4h, x86_64?

comment:3 by jahaiku, 11 years ago

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?

in reply to:  3 ; comment:4 by anevilyak, 11 years ago

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 reply to:  4 ; comment:5 by jahaiku, 11 years ago

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?

in reply to:  5 comment:6 by anevilyak, 11 years ago

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.