Questions tagged [gflags]

Gflags is a commandline flags library used within Google. The commandline flags are specified by users on the command line when they run an executable.

gflags
Filter by
Sorted by
Tagged with
8 votes
2 answers
590 views

I can't accurately understand how does JavaScript's method string.match(regexp)'s g flag work

In the book "JavaScript: The Good Parts", it explains method string.match(regexp) as below: The match method matches a string and a regular expression. How it does this depends on the g flag. If ...
weilou's user avatar
  • 4,499
16 votes
2 answers
16k views

GFlags setting to catch heap corruption (other than Page Heap)?

On one production site our application(*) crashes repeatedly, but non-reproducibly. Analyzing the crash dumps clearly shows that it's a heap corruption: The crashes are at different location, but ...
Martin Ba's user avatar
  • 38.1k
9 votes
5 answers
6k views

Mojave + Xcode 10 build fails on glog config.h, gflags/gflags.h

I'm testing React Native 0.56.0-rc.2 on Mac OS Mojave and Xcode 10. Running: react-native init TestProject --version="0.56.0-rc.2" cd TestProject npm run start react-native run-ios Which generated ...
Wes Souza's user avatar
  • 629
6 votes
1 answer
3k views

How can one mark a flag as required with gflags?

I use gflags like this: flags.DEFINE_string('logdir', None, 'Directory where logs are stored.') However, I would like gflags to show the help when somebody does not define --...
Martin Thoma's user avatar
6 votes
2 answers
2k views

gflags dialog box doesn't open

I am currently trying to debug a memory leak in one of my applications (yeah, that crap again...), and trying to set gflags settings, but the dialog won't open up. I installed the Windows 10 SDK (I am ...
SinisterMJ's user avatar
  • 3,473
6 votes
1 answer
2k views

How to benefit from heap tagging by DLL?

How do I use and benefit from the GFlags setting Enable heap tagging by DLL? I know how to activate the setting for a process, but I did not find useful information in the output of !heap -t in ...
Thomas Weller's user avatar
4 votes
2 answers
2k views

Process memory increases much faster with gflags +ust

I've got stuck in a problem with gflags when trying to find some memory leaks in a windows app. When I turn on the ust flag (in order to collect memory allocations stack traces) the memory of my ...
David's user avatar
  • 2,713
1 vote
2 answers
1k views

windows - How can i access total "user mode stack trace database(ust)"?

How can i access the total "user mode stack trace database" created by "gflags.exe" like sql DB? Otherwise, could you tell me some API docs about ust DB? I truned on the +ust flag using "gflags.exe", ...
RammerChoi's user avatar
1 vote
0 answers
359 views

Why gflags "Enable heap tail checking" is not working alone on Windows?

The gflags was configured to only have "Enable heap tail checking" enabled. The PageHeap was not enabled. c:\Program Files (x86)\Windows Kits\10\Debuggers\x64>gflags /i test.exe Current ...
Eric Z's user avatar
  • 14.5k
1 vote
1 answer
2k views

accessing a list of integer associated with a command line parameter

I'm using gflags in c++ for parsing of command line parameters. I would like to have a command line flag that accepts a list of parameters. For example param in the example below. ./myprog --param 0 ...
Tal Darom's user avatar
  • 1,389
0 votes
2 answers
4k views

unknown command line flag 'logtostderr'

I am running this SIFT program at this site: https://github.com/sanchom/sjm All the stuffs go well until I run my program: $ python extract_caltech.py --dataset_path=[...
Phong Nguyen's user avatar
-1 votes
1 answer
2k views

google-app-engine : Import works only after a refresh

After somes problems with a simple import of httplib2 (see my post here), i meet a different problem with the import of gflags. In fact, on dev server, i have an ImportError the first time that I ...
Yohann's user avatar
  • 6,185