User forums > Help
stop at ntdll!DbgUiConnectToDbg () on debug start
ollydbg:
--- Quote from: eigen on December 15, 2010, 11:24:44 am ---Sorry to bring this old topic up, but I have a similar issue. When starting an app in debugger, or any app in debug mode, first I get TWO (always) error messages in a row:
and then the debugger tells me
#0 7C964ED1 ntdll!RtlReAllocateHeap() (C:\WINDOWS\system32\ntdll.dll:??)
#1 7C93F8FB ntdll!RtlInsertElementGenericTableAvl() (C:\WINDOWS\system32\ntdll.dll:??)
#2 7C90EAC7 ntdll!LdrCreateOutOfProcessImage() (C:\WINDOWS\system32\ntdll.dll:??)
If I put gdb.exe in the app folder and drag the exe onto it, I get the RtlReAllocateHeap error. But when I do the same in my gf's computer, all works as expected. So, something must be totally messed up in mine.
The thing is, a simple console "Hello world" works fine in the debugger, but as soon as the app has to get ANYTHING from an external dll, it crashes in debug mode. Even an additional line of SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_TIMER); is enough to throw the RtlReAllocateHeap error when starting the debugger.
Everything is working in release mode, as well in the debug mode a few days ago. I don't think I have changed anything in the system lately .. So, have you guys got any ideas what it could be? As a last resort, I'm thinking of re-installing Windows, in case there's something messed up internally. Maybe the ntdll.dll is somehow broken, though the file size is exactly as it should be, so I don't think it's been modified.
Thanks in advance,
Eigen
--- End quote ---
Hi, I have no idea about your problem, but at least you should tell us
OS?
CB?
debugger?
GCC?
all these information and the version???
and what is the test code?
eigen:
Windows XP SP2
Code::Blocks 10.05
GNU gdb 7.2 (same thing with the default debugger that comes with CB 10.05 .. so that's not the culprit)
MinGW (whatever the version CB comes with)
Well, test code .. even a simple app like this crashes.
--- Code: ---#include <windows.h>
#include "SDL.h"
int WINAPI WinMain(HINSTANCE d1, HINSTANCE d2, LPSTR d3, int d4)
{
SDL_Init(SDL_INIT_VIDEO);
printf("Hello World!");
SDL_Quit();
return 0;
}
--- End code ---
.. where as this ..
--- Code: ---#include <windows.h>
#include "SDL.h"
int WINAPI WinMain(HINSTANCE d1, HINSTANCE d2, LPSTR d3, int d4)
{
//SDL_Init(SDL_INIT_VIDEO);
printf("Hello World!");
//SDL_Quit();
return 0;
}
--- End code ---
.. doesn't. I get "Program exited normally. Debugger finished with status 0" as expected.
It's not only with SDL .. I also use Irrlicht graphics engine which produces the same error as soon as I call any function in an external DLL file. They may not be debug builds, but everything was working 2 days ago and it definitely shouldn't cause errors like that.
Okay .. I just realized that the SDL.dll is not even used, so it's a static library. Okay, what the hell is going on ..
ollydbg:
I do not have sdl library ( I even don't understand what SDL libraries used for :D)
but it seems the called function has some problems:
--- Code: ---SDL_Init(SDL_INIT_VIDEO);
--- End code ---
does the program works ok without gdb??
eigen:
That function should not have any problems. It was just a quick sample without even creating a real window, but yes, every program works on my and everyone elses computer. Also, the debugging works everywhere else but mine. I guess I have to reinstall Windows when I get the time and see if it helps.
I tried WinDbg, a tool I got from Microsoft site and attached it to my running project process and immediately it threw erros related to ntdll and also said symbols for that file could not be found. I'll try downloading and reinstalling the symbol files package for XP SP2 from here http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx#f .. maybe it helps.
ollydbg:
--- Quote from: eigen on December 15, 2010, 03:04:08 pm ---That function should not have any problems. It was just a quick sample without even creating a real window, but yes, every program works on my and everyone elses computer. Also, the debugging works everywhere else but mine. I guess I have to reinstall Windows when I get the time and see if it helps.
I tried WinDbg, a tool I got from Microsoft site and attached it to my running project process and immediately it threw erros related to ntdll and also said symbols for that file could not be found. I'll try downloading and reinstalling the symbol files package for XP SP2 from here http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx#f .. maybe it helps.
--- End quote ---
that weird. I don't think the debug symbols files were necessary. :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version