Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixe and support for tcmalloc #1

Closed
wants to merge 1 commit into from
Closed

Conversation

orieg
Copy link
Contributor

@orieg orieg commented Mar 16, 2011

When compiling from source, memcachetest always fail because it can't find the memcached binary. It's easy to fix by adding the proper option.

    ...
    checking how to link with libmemcached... /usr/src/build/package-membase/membase-server-community.test/install/lib/libmemcached.so -lm -lrt -Wl,-rpath -Wl,/usr/src/build/package-membase/membase-server-community.test/install/lib
    checking for memcached... no
    configure: error: "could not find memcached binary"
    make: *** [memcachetest/Makefile] Error 1

I also added a switch to support compilation with tcmalloc.

@ingenthr
Copy link

awesome, thanks!

@orieg orieg closed this Dec 23, 2012
cb-robot pushed a commit that referenced this pull request Sep 21, 2015
…race.

Write of size 8 at 0x7d040000f5d0 by main thread:
 #0 free <null>:0
 #1 tzset_internal
 #2 ISOTime::generatetimestamp(std::array<char, 33ul>&, long, unsigned int)
 #3 ISOTime::generatetimestamp()
 #4 Audit::create_audit_event(unsigned int, cJSON*)
 #5 shutdown_auditdaemon
 #6 main

Previous write of size 8 at 0x7d040000f5d0 by thread T4 (mutexes: write M775):
 #0 malloc <null>:0
 #1 __GI___strdup
 #2 ISOTime::generatetimestamp(std::array<char, 33ul>&, long, unsigned int)
 #3 ISOTime::generatetimestamp()
 #4 put_json_audit_event
 #5 audit_invalid_packet crtstuff.c:0
 #6 process_bin_packet(Connection*)
 #7 Connection::runStateMachinery()
 #8 run_event_loop
 #9 event_handler(int, short, void*)
 #10 event_base_loop <null>:0
 #11 platform_thread_wrap

This is triggered by our use of mktime in isotime.cc. We're not the first
to encounter this and suppress it.

https://code.google.com/p/chromium/issues/detail?id=78014
http://src.chromium.org/svn/trunk/src/tools/valgrind/tsan/suppressions.txt?p=115967

Change-Id: I8cb46e085adc0d18230bd51eebf2195ed1a5c453
Reviewed-on: http://review.couchbase.org/55393
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants