Comments (6)
hmmm, curious. Does the program run without segfault when you run it normally
--
that is, not in valgrind?
The line in question that valgrind seems to be complaining is this one:
flag_ = new CommandLineFlag(name, help, filename, current, defvalue);
It's in a constructor, so flag_ isn't going to be at 0x0, and I don't know why
valgrind would care if any of the ComandLineFlag arguments were at 0x0, so I'm
confused as to what it's complaining about. Is there a way to get valgrind to
emit
more information about what it's thinking?
Original comment by [email protected]
on 13 Aug 2007 at 7:51
from gflags.
Yes, it segfaults when not run through valgrind. I'm using g++ (GCC) 4.0.3
(Ubuntu
4.0.3-1ubuntu5).
I don't know how to get valgrind to emit more information, but I tried a few
more
simple tests. The same error is raised if I:
- use a non-empty string default
- pass false instead of true for ParseCommandLineFlags
- remove the bool flag
- remove the string flag
- remove both flags
Original comment by [email protected]
on 13 Aug 2007 at 8:16
from gflags.
(I got access to the machine to run the binary.) Looking at this closer, the
problem
is that you didn't link in -pthread to your application. I thought in such
cases,
glibc put in a dummy pthread implementation (or its own?), but apparently that
doesn't work here, or at least not well.
I'll see if I can get a good workaround for the next release.
Original comment by [email protected]
on 13 Aug 2007 at 9:10
- Changed state: Accepted
from gflags.
I've narrowed down the problem further to a pthread_once call, and have figured
out a
way to remove it. I'll make a new release soon
Original comment by [email protected]
on 13 Aug 2007 at 9:34
- Changed state: Started
from gflags.
This should be fixed in gflags 0.6
Original comment by [email protected]
on 31 Aug 2007 at 4:24
- Changed state: Fixed
from gflags.
Confirmed fixed in version 0.6.
Original comment by [email protected]
on 31 Aug 2007 at 4:59
from gflags.
Related Issues (20)
- Add ability to have options that can be specified multiple times. HOT 2
- Please put the label 'google' on this project HOT 5
- Warnings in Visual Studio 2010 and unable to compile unit test HOT 10
- Can't locate auto/Autom4te/XFile/msg.al in @INC HOT 2
- How to set kRootDir for FlagValue::CleanName
- Support NuGet package generation for Windows users HOT 1
- @GFLAGS_IS_A_DLL@ expands to empty string in gflags_declare.h HOT 6
- Set INTERFACE_COMPILE_DEFINITIONS of imported gflags library targets to define GFLAGS_DLL_DECL HOT 2
- Google glog fails to compile against gflags HOT 5
- Google glog fails to find gflags/gflags.h when using google namespace HOT 4
- Compilation error on Windows when trying to use the library. HOT 2
- Add library versioning (soname) HOT 6
- Import symbols into google namespace to maintain backwards compatibility HOT 10
- Flags always have default value HOT 1
- Bad soname version in current git master HOT 10
- Incorrect makefile generation with cmake HOT 1
- compile problem HOT 5
- Support uint32 as flag type
- ReloadNonCommandFlags needed HOT 2
- FindThreadsCXX error when cross-compiling HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gflags.