running low on vm reserve

20 views
Skip to first unread message

eleven110807

unread,
Apr 18, 2012, 3:33:36 AM4/18/12
to dynamor...@googlegroups.com
Hello,

 I run firefox with my DR client, but I'm getting a "running low on vm reserve" ,then a "segmentation fault".
Why am I getting this message? How do I fix it?

--
Best Regards~
Liang Shuhuan


Derek Bruening

unread,
Apr 18, 2012, 9:54:49 AM4/18/12
to dynamor...@googlegroups.com
On Wed, Apr 18, 2012 at 3:33 AM, eleven110807 <eleven...@163.com> wrote:
 I run firefox with my DR client, but I'm getting a "running low on vm reserve"

This is just a warning that can usually be ignored.
 
,then a "segmentation fault".
Why am I getting this message? How do I fix it?

Probably a bug in your client; possibly one in DR, but you're not providing nearly enough information to act on.  See http://code.google.com/p/dynamorio/wiki/Debugging

- Derek

Reid Kleckner

unread,
Apr 18, 2012, 10:24:45 AM4/18/12
to dynamor...@googlegroups.com
On Wed, Apr 18, 2012 at 9:54 AM, Derek Bruening <brue...@google.com> wrote:
On Wed, Apr 18, 2012 at 3:33 AM, eleven110807 <eleven...@163.com> wrote:
 I run firefox with my DR client, but I'm getting a "running low on vm reserve"

This is just a warning that can usually be ignored.

DR reserves a chunk of address space during initialization, and if that's not enough, it will print this warning and request more memory from the OS.

This can be caused by having a really large application (like Firefox), or by allocating a lot of memory in the client.  Typically I see this warning in DrMemory because we use drsyms which loads debug info which is very large.

It's hard to say if the memory usage can be avoided without doing some analysis of what's being allocated and why.

Reid

eleven110807

unread,
Apr 21, 2012, 12:13:16 PM4/21/12
to dynamor...@googlegroups.com
I did my best to find the error in my client, but still not succeed.
Is there a option to set the vm size reserved? How do I use Windbg to check the vm size?
 
Thanks a lot.


--
Best Regards~
Liang Shuhuan

--
You received this message because you are subscribed to the Google Groups "DynamoRIO Users" group.
To post to this group, send email to dynamor...@googlegroups.com.
To unsubscribe from this group, send email to dynamorio-users+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dynamorio-users?hl=en.



网易Lofter,专注兴趣,分享创作!

Reid Kleckner

unread,
Apr 21, 2012, 1:00:26 PM4/21/12
to dynamor...@googlegroups.com
Raising the reservation size shouldn't be necessary.  DynamoRIO will request more memory automatically.  The warning is just there to indicate that DR is using an unusually large amount of memory.

The cause of your segmentation fault is likely elsewhere.  See the tips Derek mentioned here:

You're already using a debug build (since you're getting the warning).  I'd recommend trying:
Try running without any client to isolate where the error is
Logging can be enabled with -loglevel N. Logs are written to DR-install/logs/.

Make sure you can run Firefox under plain DR (no client) first, then try to figure out what your client is doing before it crashes.  We'd be very interested to hear if you can't run Firefox under plain DR, that would be a bug you could file in our tracker.

Alternatively, try running your client on a smaller app first.

Reid

To unsubscribe from this group, send email to dynamorio-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages