Menu

#1 specific pattern causing appcrash  Edit

None
closed
None
2024-09-16
2015-10-30
Anonymous
No

C:\install>mgrep -i "\@\@.size on disk" get_install_consumption.log

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Problem signature:
Problem Event Name: APPCRASH
Application Name: mgrep.exe
Application Version: 0.0.0.0
Application Timestamp: 5295de2b
Fault Module Name: mgrep.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 5295de2b
Exception Code: 40000015
Exception Offset: 000108f2
OS Version: 6.1.7601.2.1.0.18.10
Locale ID: 1033
Additional Information 1: d860
Additional Information 2: d860826b86c5b47e89f20a7c2a9449ff
Additional Information 3: d2d2
Additional Information 4: d2d2c268dae3c8de889a2e1c5a689b43

Discussion

  • Anonymous

    Anonymous - 2015-10-30

    this was on Windows server 2008 R2 Enterprise service pack 1

    I was attempting to use an OR in a pattern match similar to the following
    egrep -i "\@\@\@+|size on disk"

     
  • Anonymous

    Anonymous - 2015-10-30
    • summary: specific patter causing appcrash --> specific pattern causing appcrash
    • Milestone: -->
     
  • Anonymous

    Anonymous - 2015-10-30

    strange, this site is removing two asterisks when displaying . so (star)(dot)(star) is what I am attempting to use, which wouldn't act as an or any way

     
  • Peter Istvan Lenard

    Hi, sorry, I have some trouble finding out what the problematic pattern was exactly.

    According to the description, this is the pattern that caused the crash:

    C:\install>mgrep -i "\@\@.size on disk" get_install_consumption.log

    You wrote that "site is removing two asterisks when displaying ." Did you mean this instead, then?

    C:\install>mgrep -i "\@\@*.*size on disk" get_install_consumption.log

    (Note: I am using backtick (`) for formatting the command line here - "Code Block" formatting indeed does not work. Please try to use backtick in your replies.)

     

    Last edit: Peter Istvan Lenard 2015-10-30
  • Peter Istvan Lenard

    Regarding the OR-expression you mentioned:

    egrep -i "\@\@\@+|size on disk"

    I don't think @ demanded an escaping - it is not a special character as I remember. The OR, however, needs to be escaped for grep/mgrep. So something like:

    mgrep -i "@@@+\|size on disk"

    would be an equivalent of the egrep command line mentioned above.

    (I haven't checked the usage of +, yet.)

     
  • Peter Istvan Lenard

    Also, could you post a few example lines that you would like to capture? (Again, please use backticks (`).) Thanks.

     
  • Anonymous

    Anonymous - 2015-10-30

    attaching the file I am aggregating using sysinternals du
    I want to aggregate the break lines @@@ and those containing size on disk.. to get output like the last command below... egrep

    your command did work for me
    mgrep -i "\@\@\@+|size on disk" get_install_consumption.log

    You are correct the command causing the error.. I'm trying escaping with back ticks..
    mgrep -i "\@\@*.*size on disk"

    egrep -i "\@\@+|size on disk" get_install_consumption.log

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Size on disk: 216,014,283 bytes
    Size on disk: 350,277,476 bytes
    Size on disk: 98,064,573 bytes
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Size on disk: 216,015,425 bytes
    Size on disk: 89,881,845 bytes
    Size on disk: 562,010,244 bytes
    Size on disk: 350,277,476 bytes
    Size on disk: 98,064,573 bytes
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Size on disk: 217,248,169 bytes
    Size on disk: 89,881,845 bytes
    Size on disk: 562,010,244 bytes
    Size on disk: 350,277,476 bytes
    Size on disk: 98,064,573 bytes
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Size on disk: 300,208,357 bytes
    Size on disk: 87,018,365 bytes
    Size on disk: 562,010,244 bytes
    Size on disk: 350,450,338 bytes
    Size on disk: 98,064,573 bytes
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

     

    Last edit: Anonymous 2015-10-30
  • Peter Istvan Lenard

    Thanks for the input - I managed to reproduce the crash with the attached file + the following command:

    mgrep -i "\@\@*.*size on disk" get_install_consumption.log

    I will try to fix it as soon as possible.

    In the meanwhile, this is what I recommend for you to use:

    mgrep "@@\|Size on disk" get_install_consumption.log

    Ie. lines containing at least two @'s OR the string "Size on disk".

    I believe this is the simplest pattern for your purpose.

     

    Last edit: Peter Istvan Lenard 2015-10-30
  • Peter Istvan Lenard

    • status: open --> accepted
     
  • Anonymous

    Anonymous - 2015-10-30

    Yeah, once I got your OR syntax I ended up with something that will work great until the year 3000 :)
    mgrep -i "\/2+|[0-9][0-9]\:+|\@\@\@+|size on disk" get_install_consumption.log

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    Fri 10/30/2015
    11:37 AM
    Size on disk: 300,210,626 bytes
    Size on disk: 87,018,365 bytes
    Size on disk: 562,010,244 bytes
    Size on disk: 350,450,338 bytes
    Size on disk: 98,064,573 bytes
    Fri 10/30/2015
    11:37 AM
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

     
  • Peter Istvan Lenard

    Nice. Still, I think there are a bit more escapes than necessary :)

    Nevertheless, the crash itself should be fixed in version 1.0.1. Please check it.

     

    Last edit: Peter Istvan Lenard 2015-11-02
  • Anonymous

    Anonymous - 2015-11-03

    Yep I notice now you don't need the escapes on the @ and...
    mgrep -i "\@\@*.*size on disk" no longer causes issue

     
  • Peter Istvan Lenard

    Great. Thanks for the help, I'm closing the ticket, then.

     
  • Peter Istvan Lenard

    • status: accepted --> closed
     
  • Anonymous

    Anonymous - 2024-09-16
    Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB