History log of /6.6.0/kv_engine/tests/breakpad_test.py (Results 1 - 18 of 18)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.2, v6.6.3, v7.0.1, v7.0.0, v6.6.2, v6.5.2, v6.6.1, v6.0.5, v6.6.0, v6.5.1, v6.0.4, v6.5.0, v6.0.3, v5.5.4, v5.5.5
# bef191d1 04-Apr-2019 Trond Norbye <trond.norbye@gmail.com>

Cleanup: Remove obsolete maxconn entries in unit tests

Change-Id: I493db6d1be3f188b391ce122fd4b78d94aedf560
Reviewed-on: http://review.couchbase.org/107290
Reviewed-by: Dave Rigby <d

Cleanup: Remove obsolete maxconn entries in unit tests

Change-Id: I493db6d1be3f188b391ce122fd4b78d94aedf560
Reviewed-on: http://review.couchbase.org/107290
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


# 5cad9ec3 04-Apr-2019 Trond Norbye <trond.norbye@gmail.com>

All ephemeral server ports must be tagged

This is a preparation for the upcoming refactor of interface
handling so that we may dynamically change all properties of
the interface desc

All ephemeral server ports must be tagged

This is a preparation for the upcoming refactor of interface
handling so that we may dynamically change all properties of
the interface description (including adding / removing
interfaces)

Change-Id: If2c64b2e01b2de0eb235f67181145fdfe4ee092c
Reviewed-on: http://review.couchbase.org/107281
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


Revision tags: v5.5.6
# 11cefac7 01-Mar-2019 Dave Rigby <daver@couchbase.com>

MB-33125: breakpad_test: Use fixed string for section delimiter

When gdb is invoked we run multiple commands, delimiting the output of
each command with an dummy string - the output of t

MB-33125: breakpad_test: Use fixed string for section delimiter

When gdb is invoked we run multiple commands, delimiting the output of
each command with an dummy string - the output of the 'show print
pretty' command.

On earlier versions of GDB this command prints:

Pretty formatting of structures is off.

However on GDB 7.6.1 as shipped with CentOS 7.2 it prints a slightly
different output:

Prettyprinting of structures is off.

This cases the output parsing to fail as it doesn't find the expected
delimiter:

Traceback (most recent call last):
File kv_engine/tests/breakpad_test.py, line 240, in <module>
gdb_output[1], re.MULTILINE)
IndexError: list index out of range

Fix by changing to a fixed delimiter string - a line of 80 hyphens.

Change-Id: Ifcf2063e806c66fb8ead130506132850d51066c2
Reviewed-on: http://review.couchbase.org/105576
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Jim Walker <jim@couchbase.com>

show more ...


Revision tags: v6.0.1
# 5dcc9014 14-Jan-2019 Trond Norbye <trond.norbye@gmail.com>

MB-32598: Reduce the number of times to invoke gdb

The breakpad tests used to invoke gdb several times to inspect
various pieces of the minidump file. Unfortunately the startup
cost

MB-32598: Reduce the number of times to invoke gdb

The breakpad tests used to invoke gdb several times to inspect
various pieces of the minidump file. Unfortunately the startup
cost of gdb seems to be relatively high so we should try to
reduce the number of times it is invoked.

To work around this we'll invoke gdb a single time, and execute
all of the commands in a single batch. To make it easy to figure
out the result from each command we invoke 'show print pretty'
between each command so that we can easily use the result of
that command to split the output.

Change-Id: Ie2fd605c589753d695caa8fd883cc0a3db13a4f6
Reviewed-on: http://review.couchbase.org/103586
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v5.5.3, v6.0.0, v5.1.3, v5.5.2, v5.5.1, v5.1.2, v5.1.1
# fd6bd4c1 01-Mar-2018 Trond Norbye <trond.norbye@gmail.com>

Install breakpad for cbsasladm

cbsasladm is run by ns_server to regenerate password database
and we've got a problem where it exits of crash (but the logs
don't contain any informati

Install breakpad for cbsasladm

cbsasladm is run by ns_server to regenerate password database
and we've got a problem where it exits of crash (but the logs
don't contain any information indicating that it crashed).

This patch accepts a new parameter -D to specify the dump
directory to create crash dumps in.

Change-Id: I224226d355992d3c50f69f0f37b2c3a9c0f723e0
Reviewed-on: http://review.couchbase.org/90271
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 21de4dfc 11-Jan-2018 Dave Rigby <daver@couchbase.com>

MB-27528: breakpad_test: Ignore unknown symbols in /usr/local/lib

In breakpad_test we check that all backtrace frames from our code can
be correctly resolved; however some system librari

MB-27528: breakpad_test: Ignore unknown symbols in /usr/local/lib

In breakpad_test we check that all backtrace frames from our code can
be correctly resolved; however some system libraries have frames with
unknown symbols which we ignore.

Now we are shipping libstdc++ ourselves (GCC 7.2 upgrade), we need to
add '/usr/local/lib' to the set of paths we consider to be system
locations.

Change-Id: I21074e98c43ea25113fbbb6158cf3b91ecf997cb
Reviewed-on: http://review.couchbase.org/87740
Reviewed-by: Jim Walker <jim@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


Revision tags: v5.0.1, v5.1.0, v5.0.0
# b7dbdfa6 07-Jul-2017 Dave Rigby <daver@couchbase.com>

breakpad_test: Improve logging output

The breakpad_test is taking a surprisingly long time to run (~60s for
each of the 3 variants) on the Ubuntu16.04 CV machines. To aid in
debuggin

breakpad_test: Improve logging output

The breakpad_test is taking a surprisingly long time to run (~60s for
each of the 3 variants) on the Ubuntu16.04 CV machines. To aid in
debugging this, add additional logging (with timestamps).

Change-Id: I1e562fed436cb49a3e4e534f2ce0a2c21c8e44da
Reviewed-on: http://review.couchbase.org/80364
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>

show more ...


# dce4f8ef 22-May-2017 Dave Rigby <daver@couchbase.com>

MB-24481: Include exception what() in terminate handler

When an uncaught exception is thrown we only print the exception
message to stderr (i.e. babysitter) - which is done by the
de

MB-24481: Include exception what() in terminate handler

When an uncaught exception is thrown we only print the exception
message to stderr (i.e. babysitter) - which is done by the
default_terminate_handler. It would be more helpful is this was also
included in the memcached.log (alongside the backtrace).

Change-Id: I889368a96b5242b29d474842087be9bc8cd279e2
Reviewed-on: http://review.couchbase.org/78397
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: v4.6.2_ep, v4.6.2_mc, v4.6.1_ep
# ea57e089 08-Feb-2017 Trond Norbye <trond.norbye@gmail.com>

MB-19339: Load RBAC file at startup

Change-Id: Iaa01e7e1d24b1e8e92e868e54c30158acc57bf54
Reviewed-on: http://review.couchbase.org/73289
Reviewed-by: Dave Rigby <daver@couchbase.com>

MB-19339: Load RBAC file at startup

Change-Id: Iaa01e7e1d24b1e8e92e868e54c30158acc57bf54
Reviewed-on: http://review.couchbase.org/73289
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>

show more ...


Revision tags: v4.6.0_ep, v4.5.1-MP1_mc, v4.6.0-DP_mc, v4.6.0-DP_ep, v4.5.1-MP1_ep, v4.1.2-MP2_mc, v4.5.1_mc, v4.6.0_mc, v4.1.2-MP1_ep, v3.1.6_ep
# 3b2a836d 22-Jun-2016 Trond Norbye <trond.norbye@gmail.com>

MB-19339: Refactor RBAC handling in memcached

memcached used to follow the least privilege principle by
allowing the "user" to grant access to individual commands.
As part of the tas

MB-19339: Refactor RBAC handling in memcached

memcached used to follow the least privilege principle by
allowing the "user" to grant access to individual commands.
As part of the task to integrate memcacheds RBAC into the
entire stack, we're refactoring the RBAC support to look
more like the model being used in ns_server.

We've defined a small subset of privileges and specify
which privileges each command require and perform that check
before each command is executed. Given that some commands
may produce different results depending on which privilege
the "user" have access to, the server API is also extended
to provide a method for the underlying engine to call to
check for privilege access:

if (!sapi->cookie.check_privilege(cookie,
Privilege::Read)) {
return ENGINE_EACCESS;
}

We've not yet decided on how memcached shall receive the
RBAC configuration defined by the user. There is currently
two alternatives:

1) Use the component in `ns_server`
+ The component already exists; only minor changes is needed
to add support for our privileges
+ No need to standardize the "file format" for the RBAC data
+ Only one implementation of the access evaluation
+ The same bugs exists everywhere
- memcached depends on the availability of another component
- what to do if it refuse to answer on the port
- what to do if we're having "network" failures
- what to do if we're failing to create a socket to perform
the rest call (running out of file descriptors)
- We need to create a mock of the server for our unit testing
- need to implement enough failure scenarios to ensure we handle
all kinds of problems
- Is it fast engough, and does it scale?
- We need to add support for HTTP in memcached
- Cache invalidation
- We would have to generate the privilege set every time
the user selects a bucket (or performs a new auth), but
we would have no clue when to invalidate this. We _could_
add a TTL for the privilege set for let's say 1h to avoid
having to reboot all nodes to kick out all users which no
longer have access to the privileges.

2) Let `memcached` implement the access control
+ No external process dependencies affecting the availability or
error situations at runtime
- Need a fixed file format between `ns_server` and `memcached` and
a way to signal memcached that the files changed.
- Need to implement parser in multiple components
+ Need to create test suite to ensure that all components
produce the same result of the given input
+ Extremely fast and scalable. Everything is lookup of internal
datastructures in a "copy on write" mode. Lock only held in
order to create a shared pointer to the datastructures. Cache
invalidation performed by looking at two atomic variables.
- No need for a mock server, all tests may be performed with
real configuration data.
+ Simpler logic in `memcached`
+ No need to suspend a connection in the middle of the AUTH /
Select-Bucket phase in order to request the privilege
set from `ns_server`

Given the above we can't currently provide any useful implementation
with a fine grained RBAC control, so this patch grants connections
authenticated as _admin full access to the system. All other
connections will get access similar to what they used to get before
RBAC was added to memcached.

The unit tests needs to be updated to make sure they use the new
privilege infrastructure when we have decided if we want to use
an internal component or an external component.

Change-Id: I4154053a2394ac836f34593b6f6067b0a46f5d71
Reviewed-on: http://review.couchbase.org/65148
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Will Gardner <will.gardner@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v4.5.0_mc, v4.5.0_ep
# ba1a4466 12-May-2016 Dave Rigby <daver@couchbase.com>

MB-19572: Add uncaught exception test to breakpad_test

Add another variant of breakpad_test which triggers a crash by
throwing an exception which isn't caught (in addition to the current

MB-19572: Add uncaught exception test to breakpad_test

Add another variant of breakpad_test which triggers a crash by
throwing an exception which isn't caught (in addition to the current
segfault crash).

Change-Id: I5c15a254f7e03a7659adf623cc91d80afd01308c
Reviewed-on: http://review.couchbase.org/63968
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Will Gardner <will.gardner@couchbase.com>

show more ...


Revision tags: v4.1.1_ep, v3.1.5_ep, v4.1.1_mc
# d9620390 25-Feb-2016 Dave Rigby <daver@couchbase.com>

MB-16427: breakpad_test: Don't run memcached twice

Memcached was incorrectly being spawned twice in the breakpad test. I
suspect this is why the test intermittently failed (as we got the

MB-16427: breakpad_test: Don't run memcached twice

Memcached was incorrectly being spawned twice in the breakpad test. I
suspect this is why the test intermittently failed (as we got the
output from the 'wrong' memcached process).

Change-Id: I5250bcf2c1782a54a70db70ec1dc40ac490f8ba6
Reviewed-on: http://review.couchbase.org/60479
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Will Gardner <will.gardner@couchbase.com>

show more ...


# 37bf612d 25-Feb-2016 Dave Rigby <daver@couchbase.com>

MB-16427: breakpad_test: Disable core files

The commit-validation scripts now check for the presence of core files
at the end of a build, and if present fail the build. breakpad_test.py

MB-16427: breakpad_test: Disable core files

The commit-validation scripts now check for the presence of core files
at the end of a build, and if present fail the build. breakpad_test.py
deliberately causes memcached to crash, so if system has a non-zero
core ulimit then a core will be generated and the build fail.

Fix this by setting the core file ulimit to zero when we spawn
memcached - this prevents the creation of a core file (breakpad
minidump will still be created).

Change-Id: I443f9709e697268e848eada8b2e2854180e5341e
Reviewed-on: http://review.couchbase.org/60539
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Chris Hillery <ceej@couchbase.com>

show more ...


Revision tags: v3.1.4_ep, v3.1.4_mc, v3.1.5_mc, v3.1.3_ep, v4.1.0_ep, v3.1.2_ep, v4.1.0_mc
# b5599d3c 27-Oct-2015 Dave Rigby <daver@couchbase.com>

MB-16427: breakpad_test: increase timeout, increase verbosity

Further attempts to identify what is failing with this test. Enable
verbosity to (hopefully) be able to see what is going wr

MB-16427: breakpad_test: increase timeout, increase verbosity

Further attempts to identify what is failing with this test. Enable
verbosity to (hopefully) be able to see what is going wrong, and
increase timeout to 20s to give it more time if the issue is just a
slow VM.

Change-Id: If230b0d9d13ca2f2faf20768c7e0fc3205bd08df
Reviewed-on: http://review.couchbase.org/56449
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# 78792a25 02-Oct-2015 Dave Rigby <daver@couchbase.com>

MB-16427: Add timeout and additional debug to breakpad-test

Add a timeout (initially set at 10s) to the memcached child process (it
should crash in less than 1s typically).

Also

MB-16427: Add timeout and additional debug to breakpad-test

Add a timeout (initially set at 10s) to the memcached child process (it
should crash in less than 1s typically).

Also add additional debug when the test fails to help identify the cause
of the intermittant hang.

Change-Id: I425e901b001a06a27baede256da17e91fb03afe7
Reviewed-on: http://review.couchbase.org/55719
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


Revision tags: v3.1.2_mc, v3.1.1_mc, v3.1.1_ep, v4.0.0_ep, v4.0.0_mc, v3.1.0_ep, v3.1.0_mc, v3.1.6_mc
# 5461ca70 22-Apr-2015 Trond Norbye <trond.norbye@gmail.com>

Make memcached multi-bucket-aware

This is step one.

With this patch all engines will be loaded during startup
so that we know that all symbols will be resolved in the
engine

Make memcached multi-bucket-aware

This is step one.

With this patch all engines will be loaded during startup
so that we know that all symbols will be resolved in the
engine (so that we know that during startup rather than
after running for 3 weeks when someone decides to create
a bucket of type x). If you want to test out an experimental
engine you have to do that through the ewouldblock engine

Change-Id: Idb4ef895dacf2d916b07af4aebca79cba7fda6ba
Reviewed-on: http://review.couchbase.org/50053
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v3.0.2-MP2_mc
# 6e41fa23 22-Jan-2015 Dave Rigby <daver@couchbase.com>

MB-13173: Improve breakpad_test debug output

Fix a bug when printing the output of a missing minidump file (when
the test fails), and print additional information to aid in debugging.

MB-13173: Improve breakpad_test debug output

Fix a bug when printing the output of a missing minidump file (when
the test fails), and print additional information to aid in debugging.

Change-Id: I17d40c1802241fb9c4680858b2d109f9d1d1bca9
Reviewed-on: http://review.couchbase.org/45854
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# ac779ff4 07-Jan-2015 Dave Rigby <daver@couchbase.com>

MB-12887: Unit test for breakpad

Add a unit test for breakpad within memcached.

Adds a new 'engine' which simply crashes when initialized. Testcase checks
that breakpad is corre

MB-12887: Unit test for breakpad

Add a unit test for breakpad within memcached.

Adds a new 'engine' which simply crashes when initialized. Testcase checks
that breakpad is correctly when this is loaded, and that the resulting
core file (on Linux) contains useful information. A more limited testcase
on Windows just checks that the minidump is created and is non-zero in
size.

Change-Id: Ie02f2ea8b5ead9162454d41865f6d030937d7070
Reviewed-on: http://review.couchbase.org/45036
Tested-by: buildbot <build@couchbase.com>
Tested-by: Dave Rigby <daver@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...