cygwin_exception::open_stackdumpfile:将堆栈跟踪转储到 cscope.exe.stackdump

cygwin_exception::open_stackdumpfile: Dumping stack trace to cscope.exe.stackdump

我在 Winform.Sometimes 中使用 cmd 发出 Cscope 命令,它 return 成功并且有时给出(大部分时间)cygwin_exception::open_stackdumpfile:将堆栈跟踪转储到 cscope.exe.stackdump

我无法确定问题所在。转成命令的C#代码如下:

代码:

CalledFunctionsNameCmdArgument = "/C cscope -k -u "+ FileNameAlongWIthDirectoryPath(in Windows Style i.e. G:\ABC\DEF.c) + " -L -3 " + @""".*""" + " | gawk '{=" + "\"" + "\"" + "; =" + "\"" + "\"" + ";sub(" + "\"" + " \"" + ", " + "\"" + "\"" + ");" + "sub(" + "\"" + " \"" + ", " + "\"" + "#" + "\"" + ");" + "print}' > " + OutputDirectory(In linux Style i.e. G:/ABC/DEF)

上述代码行的输出是:

/C cscope -k -u FileNameAlongWIthDirectoryPath -L -3 ".*" | gawk '{=""; ="";sub(" ", "");sub(" ", "#");print}' > OutputDirectory

可能是什么问题?

堆栈跟踪转储

Exception: STATUS_ACCESS_VIOLATION at rip=0010040DCE8    
rax=0000000000000035 rbx=0000000000000001 rcx=0000000000000001    
rdx=0000000600055CE0 rsi=0000000600055CE0 rdi=0000000000000001    
r8 =00000000FFFFB7BC r9 =00000001801523A0 r10=0000000100000000    
r11=000000010040DF72 r12=00000000FFFFBE00 r13=00000001004DCDA8    
r14=0000000000000000 r15=00000001004DC880    
rbp=0000000000000000 rsp=00000000FFFFBA60    
program=G:\Cygwin\usr\local\bin\cscope.exe, pid 64364, thread main
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B    
Stack trace:    
Frame        Function    Args    
00000000000  0010040DCE8 (0060007A3CA, 0000000000A, 00180042D46, 000FFFFBFE0)    
000FFFFBB00  0010040EF1B (00100430038, 000FFFFCC70, 00000000006, 000FFFFCC70)    
00100430038  0010040C676 (001000001C0, 000FFFFC8F0, 001004DCEE0, 0000000FB6C)    
00100430038  0010042F7AA (00180276D60, 006000283A0, 00000000000, 000FFFFCCC0)    
000FFFFCCC0  00180047BD2 (00000000000, 00000000000, 00000000000, 00000000000)    
00000000000  0018004591C (00000000000, 00000000000, 00000000000, 00000000000)    
000FFFFFFF0  001800459B4 (00000000000, 00000000000, 00000000000, 00000000000)    
End of stack trace    

虽然我找不到问题的确切原因,但我猜是文件 permission.I 需要编辑文件(另一个命令的结果 "unifdef")并将结果保存在另一个文件中文件,然后将这些生成的文件提供给 cscope 在应用 unifdef 命令后未创建 problem.Saving 文件,以某种方式更改了文件权限(我猜不是因为 unifdef 而是通过命令提示符保存文件更改了文件的权限)。