Closed
Description
My OS is Windows 7 x64, I have installed rust and mingw as described in this article
I'm have a simple hello world program.
fn main() {
println!("Hello World!");
}
Compile it rustc hello.rs
Which gives me hello.exe. I go to run this and get:
My gdb
output is as follows
D:\scratchpad>gdb hello.exe
GNU gdb (GDB) 7.6
Copyright (C) 2013 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 "i686-w64-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from D:\scratchpad\hello.exe...done.
(gdb) run
Starting program: D:\scratchpad\hello.exe
[New Thread 15228.0x3954]
warning: [14676] [SetupHookConfiguration] Performing Hook Feature Checks.
warning: [14676] [CDetourHelpers::CachedGetCurrentAppName] ProcessName[\Device\H
arddiskVolume2\scratchpad\hello.exe]
warning: [14676] [PipeComms::Disconnect] [14676]PipeComms: [] Disconnecting [FFF
FFFFF].
warning: [14676] [PipeComms::Do_Connection] [14676]PipeComms: Access - [c0000000
] [\\.\pipe\appsense_ConfigPipe_D3EA4760-A0CC-4d00-AA80-B0D747311668].
warning: [14676] [PipeComms::Do_SendMessage] [14676]PipeComms: [\\.\pipe\appsens
e_ConfigPipe_D3EA4760-A0CC-4d00-AA80-B0D747311668] SendMessage result = [1] [0].
warning: [14676] [PipeComms::Do_ReceiveMessage] [14676]PipeComms: [\\.\pipe\apps
ense_ConfigPipe_D3EA4760-A0CC-4d00-AA80-B0D747311668] ReceiveMessage result = [1
] [0].
warning: [14676] [SetupHookConfiguration] Features for [hello.exe], NET = [0], U
RM = [1]: PDM = [0].
warning: [14676] [PipeComms::Disconnect] [14676]PipeComms: [\\.\pipe\appsense_Co
nfigPipe_D3EA4760-A0CC-4d00-AA80-B0D747311668] Disconnecting [00000078].
warning: [14676] [PipeComms::Disconnect] [14676]PipeComms: [\\.\pipe\appsense_Co
nfigPipe_D3EA4760-A0CC-4d00-AA80-B0D747311668] Disconnecting [FFFFFFFF].
warning: [14676] [CDetourCreateProcess::Load] CoGetObject - attempt to hook on V
ista and above OS
warning: [14676] [CDetourCreateProcess::Load] Hooked detour CoGetObject
warning: [14676] [`anonymous-namespace'::IsCurrentAppOutlook] match[0]
warning: [14676] [CDetourCreateProcess::Load] Hooked detour ShellExecuteExW
warning: [14676] [CDetourOpenSave::Load] CoCreateInstance & CoGetClassObject - a
ttempt to hook on Vista and above OS
warning: [14676] [CDetourOpenSave::Load] Hooked detour CoCreateInstance
warning: [14676] [CDetourOpenSave::Load] Hooked detour CoGetClassObject
warning: [14676] [CDetourOpenSave::Load] Hooked detour GetOpenFileNameA
warning: [14676] [CDetourOpenSave::Load] Hooked detour GetOpenFileNameW
warning: [14676] [CDetourOpenSave::Load] Hooked detour GetSaveFileNameA
warning: [14676] [CDetourOpenSave::Load] Hooked detour GetSaveFileNameW
warning: [14676] [`anonymous-namespace'::IsCurrentAppIExplore] Current Process N
ame is \device\harddiskvolume2\scratchpad\hello.exe
warning: [14676] [`anonymous-namespace'::IsCurrentAppIExplore] Mached I.E name:0
warning: [14676] [IsImageExplorer] ProcessName[\Device\HarddiskVolume2\scratchpa
d\hello.exe]
warning: [14676] [IsImageExplorer] match[0]
warning: [14676] [CCreateProcessCtrl::Start] CreateProcessCtrl::Start()
warning: [14676] [CCreateProcessCtrl::AttachFunctions] Success, Attached to Crea
teProcessInternalW( )
warning: [14676] [CCreateProcessCtrl::AttachFunctions] Success, Attached to Crea
teThread( )
warning: [14676] [CCreateProcessCtrl::AttachFunctions] Success, Attach Function
CoGetObject
warning: [14676] [CCreateProcessCtrl::AttachFunctions] Success, Attached to Shel
lExecuteExW( )
warning: [14676] [CCreateProcessCtrl::AttachFunctions] Did NOT attach to CoGetCl
assObjectFromURL. Function pointer is NULL.
warning: [14676] [CCreateProcessCtrl::AttachFunctions] Did NOT attach to Real_Co
GetClassObjectFromURLInternal. Function pointer is NULL.
warning: [14676] [APCFuncInstallHook] UrmHook::Install Result [0]
warning: [14676] [CDetourCreateProcess::Detoured_CreateThread] CreateThread pare
nt[14676] new[5012]
[New Thread 15228.0x1394]
Program received signal SIGSEGV, Segmentation fault.
0x770c8e19 in ntdll!RtlIntegerToUnicodeString ()
from C:\Windows\system32\ntdll.dll
Any thoughts?