-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
O-windowsOperating system: WindowsOperating system: Windows
Description
main.rs:
fn main() {
println!("Hello, world!");
}
rust version:
rustc -V
rustc 1.0.0 (a59de37e9 2015-05-13) (built 2015-05-14)
run rustc main.ts
, then run main.exe
, crashed:
问题签名:
问题事件名称: APPCRASH
应用程序名: main.exe
应用程序版本: 0.0.0.0
应用程序时间戳: 045f22a0
故障模块名称: ntdll.dll
故障模块版本: 6.1.7601.18798
故障模块时间戳: 5507b864
异常代码: c0000005
异常偏移: 000000000004ad94
OS 版本: 6.1.7601.2.1.0.256.1
区域设置 ID: 2052
其他信息 1: b438
其他信息 2: b438442856db1b30c31a55f81a394be0
其他信息 3: c539
其他信息 4: c539550a554ae91b117006dd4510f26c
联机阅读隐私声明:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0804
如果无法获取联机隐私声明,请脱机阅读我们的隐私声明:
C:\Windows\system32\zh-CN\erofflps.txt
run rustc -g main.rs
, then run with gdb:
D:\test\1\hello_world\src>gdb main.exe
GNU gdb (GDB) 7.8.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from main.exe...done.
(gdb) r
Starting program: D:\test\1\hello_world\src\main.exe
[New Thread 6168.0x1410]
[New Thread 6168.0x1404]
Program received signal SIGSEGV, Segmentation fault.
0x00000000772bad94 in ntdll!RtlDeNormalizeProcessParams ()
from C:\Windows\SYSTEM32\ntdll.dll
(gdb) bt
#0 0x00000000772bad94 in ntdll!RtlDeNormalizeProcessParams ()
from C:\Windows\SYSTEM32\ntdll.dll
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
(gdb) t 0
Thread ID 0 not known.
(gdb) t 1
[Switching to thread 1 (Thread 6168.0x1410)]
#0 0x00000000772bad94 in ntdll!RtlDeNormalizeProcessParams ()
from C:\Windows\SYSTEM32\ntdll.dll
(gdb) bt
#0 0x00000000772bad94 in ntdll!RtlDeNormalizeProcessParams ()
from C:\Windows\SYSTEM32\ntdll.dll
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)
Metadata
Metadata
Assignees
Labels
O-windowsOperating system: WindowsOperating system: Windows