I have an old program that started crashing recently, it only crashes on this particular pc running windows 7 x64 ultimate (I tried this program on another installation of Windows 7 x64 ultimate and there it works completly fine)
It crashes early due to acsess violation (c0000005) in msvcrt.dll
I have the source code for it: https://ftp.mozilla.org/pub/mozilla/releases/mozilla1.7.2/src/mozilla-source-1.7.2.tar.gz and here is the binary I am testing against: https://ftp.mozilla.org/pub/mozilla/releases/mozilla1.7.2/mozilla-win32-1.7.2.zip
it crashes on from_strstr_to_strchr() function in msvcrt.dll
Visual Studio Debugger only shows me the dissasembly for msvcrt.dll and stacktrace starts there, it doesn't show me where firefox called this function and what data it passed to it...
I tried to add source code in solution->Common properties->Debug source files but it still says Source code not uvailable (Source information is missing from the debug information for this module), I even tried to go to Options->Debugging and unchecked Require source code to be an exact match the original version, but visual studio still does not use the source code
I though ok, maybe its because I am trying to debug a release build, so I went and compiled firefox from source
this is the .mozconfig options I used
ac_add_options --disable-tests
ac_add_options --without-system-nspr
ac_add_options --without-system-zlib
ac_add_options --without-system-jpeg
ac_add_options --without-system-png
ac_add_options --without-system-mng
ac_add_options --enable-crypto
the problem is I cannot build firefox and debug it on the same machine (because on my build machine it works of course), and once I move it to my test machine it doesn't start because its missing msvcrtd.dll (and even if I provide it the dll from the internet or from my development machine it crashes (probably because DLL is for Visual C++ 6 and I have Visual C++ 2008 runtime installed on my test machine)
So how do I tell visual studio to debug an exe, provide it with the source code and let it show me on what function does the crash accour and what was the input to that function (I am suspecting its eather some file or registry entry that is somewhere on that pc that this old firefox is trying to read and failing), I even tried to uninstall and reinstall firefox (but sadly its installer never cleans everything up), even used Revo uninstaller to clean everything that it found, even trying to uninstall all the Visual C++ runtimes I found and reinstalled them again, but nothing...
Hope someone can help me because it drives me crazy (and yes, I need that version of firefox for a very old company application we are using....)
What is wierd the most is that firefox used to work a while ago, but then it just started to crash suddenly