Closed derekbruening closed 9 years ago
From derek.br...@gmail.com on June 29, 2010 08:11:41
that's the frontend unable to find a file written by the client at startup. does the client fail in some manner? use -dr_debug: are there any DR asserts or messages?
From derek.br...@gmail.com on June 29, 2010 22:05:56
note that I have not observed any problems and most of my testing is on xp (though it's WOW64).
From timurrrr@google.com on July 01, 2010 03:19:07
It succeeds with -dr_debug... Looks like it is a heisenbug
From timurrrr on July 13, 2010 12:51:53
I've uploaded the same binary to the Chromium Dr.Memory buildbot and it exhibits the same issue. It's 32-bit Win XP SP3 there with almost no additional software installed. [sorry for the wrong e-mail, can't sign in with @google.com with my slow internet connection on vacation]
From timurrrr@google.com on July 19, 2010 07:17:04
I've tried "nmake test" and it sort-of-works (except issue #5 ) but looks like it's using -dr_debug. Any ideas how to provide more debugging info for you? See the reproducer below. // BUILD = cmake -G"NMake Makefiles" -DDynamoRIO_DIR:FILEPATH=C:\dynamorio\exports\cmake -DBUILD_DOCS:BOOL=OFF -DNTDLL_LIBPATH:FILEPATH=C:\WinDDK\7600.16385.1\lib\wxp\i386\ntdll.lib .. && nmake install // CLEANUP = rm build/*; rm -rf exports32/ // RUN = ..\exports32\bin\drmemory.exe -dr C:\dynamorio\exports -batch helloworld.exe 1) Sync to r19 2) CLEANUP & BUILD & Run -> works OK 3) Sync to r20 4) CLEANUP & BUILD & Run -> fails with resfile warning
Side effect found: 5) Sync to r19 , no cleanup 6) BUILD & Run -> fails with resfile warning Probably some dependencies are broken?
From timurrrr@google.com on July 19, 2010 07:46:48
I've narrowed the set of suspicious files.
1) Sync to r19 ("svn up -r 19 .." in drmemory/build) 2) svn up -r 20 ..\drmemory\options.* ..\drmemory\client_per_thread.h 3) CLEANUP & BUILD & Run -> works OK 4) svn up -r 20 ..\drmemory\fastpath.* ..\drmemory\readwrite.* 5) BUILD & Run -> resfile warning
Any ideas? Can this be hashtable data corruption? I use DynamoRIO rev 377
From derek.br...@gmail.com on July 19, 2010 09:05:38
this doesn't make any sense. if you haven't already can you just blow away the build dir and re-configure it for both DR and DrMem.
I don't normally use nmake but I just tried it and it works fine when I build DrMem w/ nmake.
I did see this resfile warning just now, but it only happens when using an old DR that does not contain all of DrMem's imports. It looks like instead of a release-build fatal usage error I only have a debug-build assert: CLIENT_ASSERT(false, "failure to process imports of client library"); And in release DR crashes silently (too early in init for good reporting). So that's one thing to fix. But if using the same version of DR, -dr_debug should result in that assert.
Can you try -dr_ops "-no_private_loader"
From timurrrr@google.com on July 19, 2010 11:48:22
Looks like a complete wipe-out & rebuild helped. Probably it was the problem with dependencies.
Usually I do "svn up && cmake ... && nmake install"
From timurrrr@google.com on August 04, 2010 07:14:01
Closing the issue. If/when the lack of dependencies between dr and drmemory becomes a problem, I'll file a separate issue
Status: WontFix
From derek.br...@gmail.com on August 20, 2010 15:59:30
in r410 I added a release-build notification when a client library can't be loaded due to dependencies
From eroman@chromium.org on January 14, 2011 00:21:45
I am getting this same error.
This is my first time running Dr. Memory, so maybe I am doing something wrong.
Here is what I did:
(1) Installed Dr. Memory on Windows 7 machine, using: http://drmemory.googlecode.com/files/DrMemory-Windows-1.3.1-1.exe (2) Ran:
drmemory.exe -- c:\windows\system32\notepad
This command returns 127, and prints out:
WARNING: unable to locate results file since can't open C:\Program Files (x86)\Dr. Memory/drmemory/logs/resfile.10996: 2
I tried passing the -logdir flag to move the results elsewhere, but same error.
If I add the -dr_debug flag then I additionally get a message-box containing:
C:\Program Files (x86)\Dr. Memory/drmemory/logs
-resfile_out ' -code_api -probe_api -stack_size 36K -disa
0x002af4b8 0x150da356
0x002af5f0 0x15264084
0x002af624 0x15263c80
0x002af664 0x1518ef43
0x002af678 0x1518ea6e
0x002af698 0x152646aa
0x002af6b4 0x15263b47
0x002af6ec 0x1518ef43
0x002af700 0x1518ea6e
0x002af720 0x152646aa
0x002af73c 0x15263b47From bruen...@google.com on January 14, 2011 05:48:08
Are you on Windows 7? Windows 7 support is not yet there in 1.3.1.
From eroman@chromium.org on January 31, 2011 19:47:12
Yes, I am on Windows 7.
From sebastie...@gmail.com on July 07, 2011 13:12:02
I am having the same error on Windows 7 with the latest 1.4.1 installer.
From bruen...@google.com on July 24, 2011 13:40:17
I am having the same error on Windows 7 with the latest 1.4.1 installer.
Can you try 1.4.2?
From leeor.ah...@gmail.com on October 26, 2011 03:38:07
I'm seeing this same issue with 1.4.4-2. I did the same as in comment #11
.
I'm using Windows 7 64bit, and am trying to debug a 32bit application.
Adding -logdir did not help. It doesn't happen with every application I try to debug.
From rnk@google.com on October 26, 2011 07:49:36
I also get this error when I pass -dr_debug to drmemory.exe when I'm trying to use a release build of DR. I think everyone adding comments to this bug is getting the same error message but possibly for different reasons. Ideally we could find a way to report more information back about why the child process is failing beyond "the frontend couldn't find the results file, the child must have failed."
From bruen...@google.com on October 26, 2011 07:57:20
I'm seeing this same issue with 1.4.4-2. I did the same as in comment
#11
. I'm using Windows 7 64bit, and am trying to debug a 32bit application. Adding -logdir did not help. It doesn't happen with every application I try to debug.
This doesn't give us enough information to act: like comment 17 said this is a visible symptom of any number of failures to launch the target app. Can you try with -dr_debug, and also tell us what app you're running.
From leeor.ah...@gmail.com on October 26, 2011 08:14:20
I'm trying to run a version of PuTTY I've compiled locally using VS2010. There's no problem running the original PuTTY 0.61 binary. Adding -dr_debug didn't add anything to the output. Running my binary without drmemory works fine, at least until later on when it crashes... ;-) But it doesn't even start under drmemory.
The application was unable to start correctly (0x80000003). Click OK to close the application.
drmemory.exe's output:
INFO: targeting application: "c:\Program Files (x86)\PuTTY\putty.exe"
INFO: app cmdline: "c:\Program Files (x86)\PuTTY\putty.exe" "-load" "office/muse"
INFO: logdir is "c:\Program Files (x86)\PuTTY"
INFO: configuring putty.exe pid=456 dr_ops="-disable_traces -bb_single_restore_prefix -max_bb_instrs 256 -stack_size 36K "
INFO: configuring client "c:\Program Files (x86)\Dr. Memory/bin/release/drmemorylib.dll" ops="-results_to_stderr
-logdir c:\Progam Files (x86)\PuTTY
-resfile 456 "
INFO: waiting for app to exit...
WARNING: unable to locate results file since can't open c:\Program Files (x86)\PuTTY/resfile.456: 2
From bruen...@google.com on October 26, 2011 08:20:06
putty app crash filed as issue #645
From Aleksey.Vaneev on December 27, 2012 09:59:08
Hello! Can you please tell me if it's a correct assumption that when DRMemory 1.5.0-5 reports this "WARNING: unable to locate results file since can't open" the application had no issues during its run?
The application executes just fine under drmemory, but on its finish I get that warning and nothing else. Documentation is not specific about the causes of this warning.
From zhao...@google.com on December 27, 2012 10:09:28
The result file is for generating the final result to user. It usually won't affect the execution, but may affect the error reports.
From Aleksey.Vaneev on December 27, 2012 10:25:47
But why do I get that warning after my application finished its execution? Does this mean something went wrong with DRMemory? I can't understand the cause of this warning.
From zhao...@google.com on December 27, 2012 10:43:35
when an application is running with drmemory, DrM will create a resfile (resfile.pid) and update that file during the execution. After the execution, a front-end process will try to read that file and produce the final result file (results.txt). The warning happens when the front-end process fail to open the resfile.pid.
This could happen (that's why only a warning, not a fatal error), for example: after the app exited and another app of same pid could start up. It could also mean the drm fail to create one, which you can check it easily from drmemory's log directory.
From Aleksey.Vaneev on December 27, 2012 10:49:08
DRMemory writes nothing to the log directory (the directory structure is original from the ZIP file) together with issuing this warning. I start it as D:\DrMemory\bin\drmemory.exe
From zhao...@google.com on December 27, 2012 10:51:42
please make sure drmemory has the right to write that directory. can you try debug build, and see if any error message?
From Aleksey.Vaneev on December 27, 2012 12:04:16
It has write rights since it creates dynamorio\ and symbols\ subdirectories there. But it does not write anything else at all.
I've also run the "attrib -R /S ." command in the directory.
I've also tried -debug option, but the behavior is same - nothing is written.
INFO: targeting application: "D:\libvox\Sources\Apps\DrumSplitter\DrumSplitter.exe"
INFO: app cmdline: "D:\libvox\Sources\Apps\DrumSplitter\DrumSplitter.exe"
INFO: logdir is "D:\DrMemory/drmemory/logs"
INFO: using symbol path D:/DrMemory/drmemory/logs/symbols as the local store
INFO: using symbol path srvD:/DrMemory/drmemory/logs/symbols http://msdl.microsoft.com/download/symbols to fetch symbols
INFO: configuring DrumSplitter.exe pid=40388 dr_ops="-disable_traces -bb_single_restore_prefix -max_bb_instrs 256 -no_early_inject -logdir D:\DrMemory/drmemory/logs/dynamorio
"
INFO: configuring client "D:\DrMemory/bin/debug/drmemorylib.dll" ops="-logdir D:\DrMemory/drmemory/logs
-resfile 40388 "
INFO: waiting for app to exit...
WARNING: unable to locate results file since can't open D:\DrMemory/drmemory/logs/resfile.40388: 2
From Aleksey.Vaneev on December 28, 2012 01:46:58
By the way, I'm under Win7 x64 SP1 (8 GB of memory).
I've tried several versions of DrMemory starting at 1.1.0, but all of them show that warning message without writing any log files.
DrMemory looks like a great piece of software utilizing advanced run-time code adjustment techniques - exactly what is needed for catching uninitialized memory accesses. But I have no idea what is going on with it - it seems to slow-down execution, but logs are empty nevertheless.
I also have DrWeb antiviral software installed - can this be an obstacle?
From Aleksey.Vaneev on December 28, 2012 01:52:54
I've tried it on WinXP computer without antiviral software - same results.
Maybe it requires Windows Debugging package to function properly?
From zhao...@google.com on December 28, 2012 08:13:54
It is difficult to know what exactly happens from the information. Can you run the program with option -debug -dr_debug -dr_ops "-msgbox_mask 0xf", which will print out some message and report any mis-behavior.
From Aleksey.Vaneev on December 28, 2012 08:40:09
No difference with these options, nothing is displayed beside that warning.
From Aleksey.Vaneev on December 28, 2012 08:42:02
Here is the output of drmemory when no application was specified:
ERROR: no app specified
usage: Dr. Memory [options] --
From zhao...@google.com on December 28, 2012 08:51:24
Can you please show the exact comment to run the program?
From zhao...@google.com on December 28, 2012 08:53:14
I mean the command
From Aleksey.Vaneev on December 28, 2012 08:53:30
Here is the exact command line with your suggested options: D:\DrMemory\bin\drmemory -debug -dr_debug -dr_ops "-msgbox_mask 0xf" -- D:\libvox\Sources\Apps\DrumSplitter\DrumSplitter.exe
I've tried running Windows notepad that way, and some other programs - the same warning is shown.
From zhao...@google.com on December 28, 2012 10:01:51
From Aleksey.Vaneev on December 28, 2012 10:04:55
The application is 32-bit one. There is no difference between drmemory.exe and drmemory.
There is no drrun.exe present in the directory - it isn't available in the original ZIP file.
From zhao...@google.com on December 28, 2012 10:26:51
DrMemory must running on top of DynamoRIO. where did you get the zip file? The zip file DrMemory-Windows-1.5.0-5.zip I got from https://code.google.com/p/drmemory/downloads/list C:\Users\zhaoqin\Downloads\DrMemory-Windows-1.5.0-5\DrMemory-Windows-1.5.0-5>dir Volume in drive C has no label. Volume Serial Number is 6601-D655
Directory of C:\Users\zhaoqin\Downloads\DrMemory-Windows-1.5.0-5\DrMemory-Windows-1.5.0-5
12/28/2012 12:59 PM
From Aleksey.Vaneev on December 28, 2012 21:02:27
Yes, it is exactly directory structure I have, and I did download it from https://code.google.com/p/drmemory/downloads/list
From Aleksey.Vaneev on December 29, 2012 01:42:40
I've also noticed that DRMemory does not work correctly when installed via EXE file to the Program Files directory. I have a non-English username in Win7.
From Aleksey.Vaneev on December 29, 2012 01:55:15
Yes, right, after creating a new Windows user with English letters only, DRMemory worked as expected.
From Aleksey.Vaneev on December 29, 2012 06:00:19
Much thanks for this tool! Caught a couple of hard-to-find bugs.
From bruen...@google.com on December 29, 2012 11:26:33
Re: non-ascii support: that was issue #1040 and was fixed in r1112 . You can use a recent build from http://build.chromium.org/p/client.drmemory/builds/ Re: the problems running DrumSplitter and apparently notepad, on both win8 and xp: you're saying that was all really issue #1040 , I'm assuming.
Summary: DO NOT REUSE THIS ISSUE: OPEN A NEW ONE [was: Dr. Memory fails to start with "WARNING: unable to locate results file since can't open .../resfile.PID: 2"] (was: Dr. Memory fails to start with "WARNING: unable to locate results file since can't open .../resfile.PID: 2")
From Aleksey.Vaneev on December 29, 2012 21:58:47
Thanks! What a relief ;-)
From timurrrr@google.com on June 29, 2010 11:02:36
Dr. Memory r19 + Dynamorio r363 work fine.
When I update Dr. Memory to r20 ( https://code.google.com/p/drmemory/source/detail?r=20 ) and re-build (nmake clean && cmake ... && nmake install), I get the following error when trying to run any executable: WARNING: unable to locate results file since can't open .../logs/resfile.XXXX: 2"
At first I thought the problem was my AV software but disabling it didn't help. This is happening on Windows XP.
Original issue: http://code.google.com/p/drmemory/issues/detail?id=9