History log of /5.5.2/platform/src/backtrace.c (Results 1 - 7 of 7)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.2, v6.6.1, v7.0.0, v6.5.1, v6.0.3, v5.5.4, v5.5.0, v4.6.5, v5.0.0
# 456cf45a 22-May-2017 Dave Rigby <daver@couchbase.com>

MB-24481: backtrace: show IP as library base+offset

When address space randomisation is enabled, the current backtrace
support in memcached makes it hard to compare two identical crashes

MB-24481: backtrace: show IP as library base+offset

When address space randomisation is enabled, the current backtrace
support in memcached makes it hard to compare two identical crashes
from different runs as the addresses move.

To solve this print address as library base+offset instead of raw
address.

Change-Id: I60a5d1415e718b68978fcb4cdd921bc25034240d
Reviewed-on: http://review.couchbase.org/78392
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Daniel Owen <owend@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# be8e1986 25-Apr-2017 Trond Norbye <trond.norbye@gmail.com>

MB-24078: Disable backtrace support for MSVC 2017 CE

MSVC 2017 moved things around and the macro used to find
DbgHelp.dll is failing to locate it.

Change-Id: Ic428ca466e9b3f8c37

MB-24078: Disable backtrace support for MSVC 2017 CE

MSVC 2017 moved things around and the macro used to find
DbgHelp.dll is failing to locate it.

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

show more ...


Revision tags: v4.6.0, v4.6.0-DP, v4.5.1-MP1, v4.5.1, v4.5.0
# 0f25d790 11-May-2016 Dave Rigby <daver@couchbase.com>

MB-19580: print_backtrace_to_buffer: fix buffer size calculation

print_backtrace_to_buffer() was incorrectly checking for a negative
return value from snprintf() to indicate failure, ins

MB-19580: print_backtrace_to_buffer: fix buffer size calculation

print_backtrace_to_buffer() was incorrectly checking for a negative
return value from snprintf() to indicate failure, instead of a value
exceeding the buffer size. This meant it didn't detect when the buffer
was too small, and overran it.

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

show more ...


Revision tags: v4.1.0
# beb8cc6f 07-Oct-2015 Trond Norbye <trond.norbye@gmail.com>

Add helper function to print callstack to buffer

Change-Id: I71464ff8cc85b933ef9bd52c2308aaed500b0ae9
Reviewed-on: http://review.couchbase.org/55856
Tested-by: buildbot <build@couchb

Add helper function to print callstack to buffer

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

show more ...


# 3eff9f49 04-Sep-2015 Dave Rigby <daver@couchbase.com>

backtrace: Add convenience function to print to file

Add print_backtrace_to_file() function to simplify printing a
backtrace - the caller only needs to specify a file descriptor to
w

backtrace: Add convenience function to print to file

Add print_backtrace_to_file() function to simplify printing a
backtrace - the caller only needs to specify a file descriptor to
write to.

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

show more ...


Revision tags: v3.1.2
# 504809a9 14-Jul-2015 Dave Rigby <daver@couchbase.com>

Unify internal_config.cmake.h and config.cmake.h

Both these files serve the same purpose - CMake-configured header
files used by the implementation of platform. Unify them into a single

Unify internal_config.cmake.h and config.cmake.h

Both these files serve the same purpose - CMake-configured header
files used by the implementation of platform. Unify them into a single
file.

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

show more ...


Revision tags: v3.0.3
# 4d17a68e 12-Feb-2015 Dave Rigby <daver@couchbase.com>

MB-13417: Add print_backtrace() function

Adds a new utility function print_backtrace() to platform. This allows
a textual description of the calling threads' backtrace to be printed.

MB-13417: Add print_backtrace() function

Adds a new utility function print_backtrace() to platform. This allows
a textual description of the calling threads' backtrace to be printed.

Example output:

c:\compile\couchbase\build\platform\platform-backtrace-test.exe(leaf+24) [0x000000013F9D1048]
c:\compile\couchbase\build\platform\platform-backtrace-test.exe(middle+9) [0x000000013F9D10D9]
c:\compile\couchbase\build\platform\platform-backtrace-test.exe(outer+9) [0x000000013F9D1109]
c:\compile\couchbase\build\platform\platform-backtrace-test.exe(main+9) [0x000000013F9D1079]
c:\compile\couchbase\build\platform\platform-backtrace-test.exe(__tmainCRTStartup+271) [0x000000013F9D14B7]
C:\Windows\system32\kernel32.dll(BaseThreadInitThunk+13) [0x0000000076D359ED]
C:\Windows\SYSTEM32\ntdll.dll(RtlUserThreadStart+33) [0x0000000076F6C541]

Change-Id: I99f9b091db140d0ac04256aa0df398d187e10ab3
Reviewed-on: http://review.couchbase.org/46730
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Reviewed-by: Mark Woosey <mark.woosey@couchbase.com>
Tested-by: buildbot <build@couchbase.com>

show more ...