Skip to content

Releases: getsentry/sentry-native

0.4.6

25 Jan 18:06
Compare
Choose a tag to compare

Fixes:

  • Restore compatibility with CMake 3.10 (as used in Android NDK Tools)

Internal:

  • Update Crashpad and Breakpad submodules to 2021-01-25

0.4.5

21 Jan 08:27
Compare
Choose a tag to compare

Features:

  • The Breakpad backend is now supported on macOS, although the crashpad backend is recommended on that platform.
  • Added a new sentry_reinstall_backend function which can be used in case a third-party library is overriding the signal/exception handler.
  • Add a Qt integration that hooks into Qt logging (opt-in CMake option).
  • Expose the sentry-native version via CMake.

Fixes:

  • Install .pdb files correctly.
  • Improve macOS runtime version detection.
  • Fixed a potential segfault when doing concurrent scope modification.

Thank you:

Features, fixes and improvements in this release have been contributed by:

0.4.4

12 Nov 13:26
04eb4e6
Compare
Choose a tag to compare

Features:

  • The sentry_get_modules_list function was made public, which will return a list of loaded libraries that will be sent to sentry with each event.
  • A new sentry_options_set_transport_thread_name function was added to set an explicit name for sentries http transport thread.

Fixes:

  • The session duration is now printed in a locale-independent way, avoiding invalid session payloads.
  • Correctly clean up locks and pass the Windows Application Verifier.
  • Build fixes for MinGW and better documentation for universal MacOS builds.
  • Crashes captured by the crashpad backend after calling sentry_shutdown will now have the full metadata.

Thank you:

Features, fixes and improvements in this release have been contributed by:

0.4.3

12 Oct 08:26
560e7b2
Compare
Choose a tag to compare

Caution:

  • The representation of sentry_value_t was changed to avoid problems with the newly introduced Memory Tagging Extension (MTE) on ARM / Android.
    Implementation details of sentry_value_t were never considered public, and it should always be treated as an opaque type.

Fixes:

  • Fix corrupted breadcrumb data when using the crashpad backend on Windows.
  • Avoid sending empty envelopes when using the crashpad backend.
  • Correctly encode the signal number when using the Windows inproc backend, avoiding a processing Error.
  • Unwind from the local call-stack, fixing empty stacktraces when using the inproc backend on Linux.
  • Improvements to the Build configuration.

Thank you:

Features, fixes and improvements in this release have been contributed by:

0.4.2

15 Sep 14:31
1d0a84d
Compare
Choose a tag to compare

Fixes:

  • Sampled (discarded) events still contribute to a sessions errors count.
  • Initialize all static data structures.

0.4.1

27 Aug 11:41
c48b073
Compare
Choose a tag to compare

Fixes

  • Fix parsing rate limit headers with multiple categories.

0.4.0

11 Aug 08:54
f32ec68
Compare
Choose a tag to compare

Breaking Changes:

  • The minimum CMake version required to build on windows was raised to 3.16.4 to avoid potential build failures on older versions.
  • The sentry_get_options function was removed, as it was unsafe to use after a sentry_shutdown call.
  • The sentry_options_set_logger function now accepts a userdata parameter.
  • The name parameter of sentry_options_add_attachment(w) was removed, it will now be inferred from the filename of path.
  • The transport startup hook that is set via sentry_transport_set_startup_func now needs to return an int, and a failure will propagate to sentry_init.
  • The return value of the transport shutdown hook set via sentry_transport_set_shutdown_func was also changed to return an int.
  • Both functions should return 0 on success, and a non-zero error code on failure, as does sentry_init.
  • Similarly, the return value of sentry_shutdown was also changed to an int, and will return 0 on success and a non-zero error code on unclean shutdown.
  • Documentation for custom transports was updated to highlight the ordering requirements of submitted envelopes, which is important for release health.
// before
sentry_options_set_logger(options, my_custom_logger);
sentry_options_add_attachment(options, "some-attachment", "/path/to/some-attachment.txt");

void transport_startup(sentry_options_t *options, void*state) {
}
sentry_transport_set_startup_func(transport, transport_startup);
bool transport_shutdown(uint64_t timeout, void*state) {
  return true;
}
sentry_transport_set_shutdown_func(transport, transport_shutdown);

// after
sentry_options_set_logger(options, my_custom_logger, NULL);
sentry_options_add_attachment(options, "/path/to/some-attachment.txt");

int transport_startup(sentry_options_t *options, void*state) {
  return 0;
}
sentry_transport_set_startup_func(transport, transport_startup);
int transport_shutdown(uint64_t timeout, void*state) {
  return 0;
}
sentry_transport_set_shutdown_func(transport, transport_shutdown);

Features:

  • Release Health support is now stable and enabled by default. After the update, you will see the number of crash free sessions and crash free users on the Releases page in Sentry. To disable automatic session tracking, use sentry_options_set_auto_session_tracking.
  • Breakpad support for Windows. This allows you to use sentry-native even on Windows XP! (#278)
  • Add an in-process backend for Windows. As opposed to Breakpad, stack traces are generated on the device and sent to Sentry for symbolication. (#287)
  • Support for the Crashpad backend was fixed and enabled for Linux. (#320)
  • A new SENTRY_BREAKPAD_SYSTEM CMake option was added to link to the system-installed breakpad client instead of building it as part of sentry.

Fixes:

  • Reworked thread synchronization code and logic in sentry_shutdown, avoiding an abort in case of an unclean shutdown. (#323)
  • Similarly, reworked global options handling, avoiding thread safety issues. (#333)
  • Fixed errors not being properly recorded in sessions. (#317)
  • Fixed some potential memory leaks and other issues. (#304 and others)

Thank you:

Features, fixes and improvements in this release have been contributed by:

0.3.4

19 Jun 19:10
Compare
Choose a tag to compare

Fixes:

  • Invalid memory access when sentry_options_set_debug(1) is set, leading to an application crash. This bug was introduced in version 0.3.3. (#310).

0.3.3

17 Jun 10:04
f326cec
Compare
Choose a tag to compare

Warning: This release contains a memory unsafety issue when using sentry_options_set_debug(1). Please do not set this option until a bugfix is released.

Fixes:

  • Fix a memory unsafety issue when calling sentry_value_remove_by_key. (#297)
  • Improvements to internal logging. (#301, #302)
  • Better handling of timeouts. (#284)
  • Better 32-bit build support. (#291)
  • Run more checks on CI. (#299)

Thank you:

Fixes in this release have been contributed by:

0.3.2

15 Jun 16:08
a26848b
Compare
Choose a tag to compare

Features:

  • Implement a new logger hook. (#267)

    This adds the new sentry_options_set_logger function, which can be used to customize the sentry-internal logging, for example to integrate into an app’s own logging system, or to stream logs to a file.

  • New CMake options: SENTRY_LINK_PTHREAD, SENTRY_BUILD_RUNTIMESTATIC and SENTRY_EXPORT_SYMBOLS along with other CMake improvements.

Fixes:

  • Avoid memory unsafety when loading session from disk. (#270)
  • Avoid Errors in Crashpad Backend without prior scope changes. (#272)
  • Fix absolute paths on Windows, and allow using forward-slashes as directory separators. (#266, #289)
  • Various fixes uncovered by static analysis tools, notably excessive allocations by the page-allocator used inside signal handlers.
  • Build fixes for MinGW and other compilers.

Thank you:

Features, fixes and improvements in this release have been contributed by: