jirentabu / crashrpt

Automatically exported from code.google.com/p/crashrpt
0 stars 0 forks source link

crprober.exe does not work well #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. after building in VS.NET and running:
crprober.exe /f E:\1\3dae14ed82274a63aad8fad49c10b7c9.zip /o "" /sym 
E:\temp\\af\bindebug -> exit with an error

crprober -> main.cpp
...
  // Decide input dir and file name
  sInDirName = szInput;
  size_t pos = sInDirName.rfind('\\');
  if(pos<0) // There is no back slash in path
  {
    sInDirName = _T(""); 
    sInFileName = szInput;
  }
  else
  { 
        sInDirName = sInFileName.substr(0, pos);    
    sInFileName = sInFileName.substr(pos+1); << crashed here!!!
  }
...

2. I can't obtain file list from crashrpt.xml. It's empty in my report:

== File list ==

#  Name             Description    

?????

Although crashrpt.xml contains it, see:

    <FileItems>
        <FileItem name="AF.log" description="ActualFlow Log File" />
        <FileItem name="crashdump.dmp" description="Crash Dump" />
        <FileItem name="crashrpt.xml" description="Crash Log" />
    </FileItems>

Original issue reported on code.google.com by mikx...@gmail.com on 2 Mar 2010 at 6:35

GoogleCodeExporter commented 9 years ago
1. Is this path correct "E:\temp\\af\bindebug"? Note two subsequent slashes 
"\\".

2. Can you attach your crash report 3dae14ed82274a63aad8fad49c10b7c9.zip to 
this issue? 

Original comment by zexspect...@gmail.com on 2 Mar 2010 at 7:09

GoogleCodeExporter commented 9 years ago
1. It is incorrect. The correct one is "E:\temp\af\bindebug" (with only one 
slash). It 
was my mistyping.
2. Unfortunately I have just deleted it :) However, I can attach another report 
with 
the same behavior.

Original comment by mikx...@gmail.com on 2 Mar 2010 at 7:38

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by zexspect...@gmail.com on 2 Mar 2010 at 7:39

GoogleCodeExporter commented 9 years ago
It seems there is wrong tag "FileItems" in reports generated by v1.2.1. I 
renamed the
tag by mistake. It should be "FileList" as it was for all previous versions of 
CrashRpt. 

I plan to rename it back to "FileList" and make a change in crprober.exe to 
handle
both these names.

Original comment by zexspect...@gmail.com on 8 Mar 2010 at 6:18

GoogleCodeExporter commented 9 years ago
Fixed in v.1.2.2

Original comment by zexspect...@gmail.com on 23 Mar 2010 at 5:35