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.

Typically, an application lists what flags the user is allowed to pass in, and what arguments they take -- in this example, -l takes no argument, and -f takes a string (in particular, a filename) as an argument. Users can use a library to help parse the commandline and store the flags in some data structure.

86 questions
16
votes
2 answers

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 always access violations inside…
Martin Ba
  • 37,187
  • 33
  • 183
  • 337
9
votes
5 answers

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 some long errors. Entering Xcode gave me a failure…
Wes Souza
  • 601
  • 2
  • 8
  • 17
9
votes
2 answers

How to pass custom flags to `bazel test` command

I have used gflags in my test to define custom flags. How can I pass such a flag to my test while running the test via bazel test command? For example: I can run a test multiple times using: bazel test //xyz:my_test --runs_per_test 10 In the same…
Curious
  • 2,783
  • 3
  • 29
  • 45
9
votes
1 answer

Using gflags library in ubuntu

I am having problem installing gflags. If I use apt-get as written in (https://github.com/gflags/gflags/blob/master/INSTALL.md) I get the following error sudo apt-get install gflags Reading package lists... Done Building dependency tree …
ekhan
  • 231
  • 1
  • 4
  • 11
8
votes
1 answer

Registry key for Global Flags (gflags)

I'm currently having an error while trying to remove the flag "Enable heap tagging by DLL" with the debug tool GFlags for so-called "image": the application I was debugging. I get an "Unable to save the registry error 5". However there are no…
Stephane Rolland
  • 38,876
  • 35
  • 121
  • 169
8
votes
2 answers

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 there is no g flag, then the result of calling…
weilou
  • 4,419
  • 10
  • 43
  • 56
6
votes
1 answer

Cannot find 'gflags/gflags.h' while building library OSX

I'm trying to build the library which included 'gflags/gflags.h' and am having trouble getting it to find. I installed gflags and glog with homebrew. CMake output says: -- Found installed version of gflags: /usr/local/lib/cmake/gflags -- Detected…
xfarxod
  • 123
  • 2
  • 6
6
votes
2 answers

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 on Windows 7 x64), but it said it works on Win7…
SinisterMJ
  • 3,425
  • 2
  • 33
  • 53
6
votes
1 answer

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 --logdir. How can I make this flag required? (This looks…
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
6
votes
1 answer

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 WinDbg. I was expecting some output like this: 0:000>…
Thomas Weller
  • 55,411
  • 20
  • 125
  • 222
6
votes
2 answers

GAE doesn't import gflags

I'm trying to get oauth to work on Google App Engine (GAE), but I'm unable to import the OAuth2Decorator, because it tries to import gflags and fails. In command line I've ran help('modules') and gflags is listed, and I've ran import os + import…
5
votes
1 answer

Why gflags doesn't start, it splashes and exits immediatly when I start it

When I run gflags on windows 7, it should come up with UI but it doesn't. I see a brief black command window which then exits and gflags UI never comes up. It probably work from command prompt but I really want to work with it through UI.
zar
  • 11,361
  • 14
  • 96
  • 178
4
votes
1 answer

Why don't you get full stack traces when enabling the user mode stack trace?

I'm troubleshooting some memory fragmentation problems and I've been trying to figure out why things are being allocated and who's ultimately doing the allocation. So I enabled usermode stack traces for the process (+UST flag in gflags) and got a…
Zipper
  • 7,034
  • 8
  • 49
  • 66
4
votes
3 answers

Caffe Compilation Error: gflags.cc' is being linked both statically and dynamically into this executable

I am trying to install caffe following this tutorial Basically I have the following error when I type the last make command: me@dl-01:/home/me/caffe-master$ make runtest .build_release/tools/caffe caffe: command line brew usage: caffe command…
mad
  • 2,677
  • 8
  • 35
  • 78
4
votes
1 answer

Has Microsoft Deprecated GFlags and UMDH?

In Windows Vista I found UMDH to be very helpful, but I can't find it for Windows 7/8, has Microsoft deprecated GFlags and UMDH? If so is there a way that I can get a log of the allocations on the heap by call stack in a Windows 7/8 approved tool?
Jonathan Mee
  • 37,899
  • 23
  • 129
  • 288
1
2 3 4 5 6