Fixes:
- Fix
crashpadbuild for Windows ARM64 via LLVM-MINGW. (#1003, crashpad#101)
Thank you:
Features:
- Change the timestamp resolution to microseconds. (#995)
Internal:
- (Android) Switch ndk back to
libc++_static, and hide it from prefab (#996)
Fixes:
- Allow
crashpadto run under Epic's Anti-Cheat Client by deferring the fullcrashpad_handleraccess rights to the client application until a crash occurred. (#980, crashpad#99) - Reserve enough stack space on Windows for our handler to run when the stack is exhausted from stack-overflow. (#982)
- Only configure a
sigaltstackininprocif no previous configuration exists on Linux and Android. (#982) - Store transaction
datain the event propertyextrasince thedataproperty is discarded byrelay. (#986)
Docs:
- Add compile-time flag
SENTRY_TRANSPORT_COMPRESSIONdescription to theREADME.mdfile. (#976)
Internal:
- Move sentry-android-ndk JNI related parts from sentry-java to sentry-native (#944)
This will create a pre-built
io.sentry:sentry-native-ndkmaven artifact, suitable for being consumed by Android apps.
Thank you:
Features:
- Add optional Gzip transport compression via build option
SENTRY_TRANSPORT_COMPRESSION. Requires systemzlib. (#954) - Enable automatic MIME detection of attachments sent with crash-reports from the
crashpad_handler. (#973, crashpad#98)
Fixes:
- Fix the Linux build when targeting RISC-V. (#972)
Thank you:
Features:
- Add user feedback capability to the Native SDK. (#966)
Internal:
- Remove the
CRASHPAD_WER_ENABLEDbuild flag. The WER module is now built for all supported Windows targets, and registration is conditional on runtime Windows version checks. (#950, crashpad#96)
Docs:
- Add usage of the breadcrumb
dataproperty to the example. #951
Breaking changes:
- Make
crashpadthe default backend for Linux. (#927) - Remove build option
SENTRY_CRASHPAD_SYSTEM. (#928)
Fixes:
- Maintain
crashpadclient instance during Native SDK lifecycle. (#910) - Specify correct dependencies for CMake client projects using a system-provided breakpad. (#926)
- Correct the Windows header include used by
sentry.h, which fixes the build of Swift bindings. (#935)
Internal:
- Updated
crashpadto 2023-11-24. (#912, crashpad#91) - Fixing
crashpadbuild for Windows on ARM64. (#919, crashpad#90, crashpad#92, crashpad#93, crashpad#94) - Remove options memory leak during consent setting. (#922)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Disable sigaltstack on Android. (#901)
- Prevent stuck crashpad-client on Windows. (#902, crashpad#89)
Fixes:
- Use a more up-to-date version of
mini_chromiumas acrashpaddependency, which fixes a build error on some systems. (#891, crashpad#88)
Internal:
- Updated
libunwindstackto 2023-09-13. (#884, libunwindstack-ndk#8) - Updated
crashpadto 2023-09-28. (#891, crashpad#88) - Updated
breakpadto 2023-10-02. (#892, breakpad#38)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Remove deadlock pattern in dynamic sdk-name assignment (#858)
Fixes:
- Crash events are initialized with level
FATAL(#852) - Fix MSVC compiler error with on non-Unicode systems (#846, crashpad#85)
Features:
- crashpad_handler: log
bodyif minidump endpoint response is notOK(#851, crashpad#87)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Disable PC adjustment in the backend for libunwindstack (#839)
- Crashpad backend allows inspection and enrichment of the crash event in the on_crash/before_send hooks (#843)
- Add http-proxy support to the
crashpad_handler(#847, crashpad#86)
Internal:
- Updated Breakpad backend to 2023-05-03. (#836, breakpad#35)
- Updated Crashpad backend to 2023-05-03. (#837, crashpad#82)
Features:
Fixes:
- Remove OpenSSL as direct dependency for the crashpad backend on Linux. (#812, crashpad#81)
- Check
libcurlfor featureAsynchDNSat compile- and runtime. (#813) - Allow setting
CRASHPAD_WER_ENABLEDwhen using system crashpad. (#816)
Docs:
- Add badges for conan, nix and vcpkg package-repos to README. (#795)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Breaking changes:
- When built as a shared library for Android or Linux, the Native SDK limits the export of symbols to the
sentry_-prefix. The optionSENTRY_EXPORT_SYMBOLSis no longer available and the linker settings are constrained to the Native SDK and no longerPUBLICto parent projects. (#363)
Features:
- A session may be ended with a different status code. (#801)
Fixes:
- Switch Crashpad transport on Linux to use libcurl (#803, crashpad#75, crashpad#79)
- Avoid accidentally mutating CONTEXT when client-side stack walking in Crashpad (#803, crashpad#77)
- Fix various mingw compilation issues (#794, crashpad#78)
Internal:
- Updated Crashpad backend to 2023-02-07. (#803, crashpad#80)
- CI: Updated GitHub Actions to test on LLVM-mingw. (#797)
- Updated Breakpad backend to 2023-02-08. (#805, breakpad#34)
- Updated libunwindstack to 2023-02-09. (#807, libunwindstack-ndk#7)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Better error messages in
sentry_transport_curl. (#777) - Increased curl headers buffer size to 512 (in
sentry_transport_curl). (#784) - Fix sporadic crash on Windows due to race condition when initializing background-worker thread-id. (#785)
- Open the database file-lock on "UNIX" with
O_RDRW(#791)
Internal:
- Updated Breakpad and Crashpad backends to 2022-12-12. (#778)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Linux module-finder now also searches for code-id in ".note" ELF sections (#775)
Internal:
- CI: updated github actions to upgrade deprecated node runners. (#767)
- CI: upgraded Ubuntu to 20.04 for "old gcc" (v7) job due to deprecation. (#768)
Fixes:
- Fix build when CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION is undefined. (crashpad#73)
Internal:
- Updated Breakpad and Crashpad backends to 2022-10-17. (#765)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Crashpad on Windows now supports
fast-failcrashes via a registered Windows Error Reporting (WER) module. (#735)
Fixes:
- Fix "flush" implementation of winhttp transport. (#763)
Internal:
- Updated libunwindstack-ndk submodule to 2022-09-16. (#759)
- Updated Breakpad and Crashpad backends to 2022-09-14. (#735)
- Be more defensive around transactions (#757)
- Added a CI timeout for the Android simulator start. (#764)
Features:
- Provide
on_crash()callback to allow clients to act on detected crashes. Users often inquired about distinguishing between crashes and "normal" events in thebefore_send()hook.on_crash()can be considered a replacement forbefore_send()for crash events, where the goal is to usebefore_send()only for normal events, whileon_crash()is only invoked for crashes. This change is backward compatible for current users ofbefore_send()and allows gradual migration toon_crash()(see the docs for details). (#724, #734)
Fixes:
- Make Windows ModuleFinder more resilient to missing Debug Info (#732)
- Aligned pre-send event processing in
sentry_capture_event()with the cross-SDK session filter order (#729) - Align the default value initialization for the
environmentpayload attribute with the developer documentation (#739) - Iterate all debug directory entries when parsing PE modules for a valid CodeView record (#740)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- The crashpad backend now captures thread names. (#725)
- The inproc backend now captures the context registers. (#714)
- A new set of APIs to get the sentry SDK version at runtime. (#726)
- Add more convenient APIs to attach stack traces to exception or thread values. (#723)
- Allow disabling the crash reporting backend at runtime. (#717)
Fixes:
- Improved heuristics flagging sessions as "crashed". (#719)
Internal:
- Updated Breakpad and Crashpad backends to 2022-06-14. (#725)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- sentry-native now successfully builds when examples aren't included. (#702)
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Removed the
SENTRY_PERFORMANCE_MONITORINGcompile flag requirement to access performance monitoring in the Sentry SDK. Performance monitoring is now available to everybody who has opted into the experimental API. - New API to check whether the application has crashed in the previous run:
sentry_get_crashed_last_run()andsentry_clear_crashed_last_run()(#685). - Allow overriding the SDK name at build time - set the
SENTRY_SDK_NAMECMake cache variable. - More aggressively prune the Crashpad database. (#698)
Internal:
- Project IDs are now treated as opaque strings instead of integer values. (#690)
- Updated Breakpad and Crashpad backends to 2022-04-12. (#696)
Fixes:
- Updated CI as well as list of supported platforms to reflect Windows Server 2016, and therefore MSVC 2017 losing active support.
- Correctly free Windows Mutexes in Crashpad backend.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Fix contexts from the scope not being attached to events correctly.
- Improve performance of event serialization.
Features:
- The Sentry SDK now has experimental support for performance monitoring.
The performance monitoring API allows manually creating transactions and instrumenting spans, and offers APIs for distributed tracing.
The API is currently disabled by default and needs to be enabled via a compile-time
SENTRY_PERFORMANCE_MONITORINGflag. For more information, take a look at the more detailed documentation of performance monitoring. - Sentry now has an explicit
sentry_flushmethod that blocks the calling thread for the given time, waiting for the transport queue to be flushed. Custom transports need to implement a newflush_hookfor this to work.
Fixes:
- Fix Sentry API deadlocking when the SDK was not initialized (or
sentry_initfailed). - The rate limit handling of the default transports was updated to match the expected behavior.
- The Windows OS version is now read from the Registry and is more accurate.
- The
SENTRY_LIBRARY_TYPECMake option is now correctly honored. - The Linux Modulefinder was once again improved to increase its memory safety and reliability.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Add client-side stackwalking on Linux, Windows, and macOS (disabled by default).
- CMake: add ability to set solution folder name.
- Add AIX support.
Fixes:
- CMake: check whether libcurl was already found.
- Increment CXX standard version to 14 to allow crashpad to build.
Internal:
- Update Crashpad and Breakpad submodules to 2021-12-03.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Make the shutdown timeout configurable via
sentry_options_set_shutdown_timeout.
Fixes:
- The crashpad backend compiles with mingw again.
- Build System improvements.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- The crashpad backend now respects the
max_breadcrumbssetting. - Hanging HTTP requests will now be canceled on shutdown in the WinHTTP transport.
- The Modulefinder and Android unwinder now use safer memory access.
- Possible races and deadlocks have been fixed in
init/close, and in API related to sessions.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Fixes:
- Fix a potential deadlock in macOS modulefinder.
- Lower Stack usage, to lower change of stack overflows.
- Avoid a double-free when parsing an invalid DSN.
- Improvements to Unity Builds and 32-bit Builds.
- Fix infinite recursion in signal handler by correctly cleaning up on shutdown.
Internal:
- Update Crashpad and Breakpad submodules to 2021-06-14.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Rewrote the Linux modulefinder which should now work correctly when encountering gaps in the memory mapping of loaded libraries, and supports libraries loaded from a file offset, such as libraries loaded directly from
.apkfiles on Android. - Invoke the
before_sendhook at time of a hard crash when using the Windows or Linux Crashpad backend. - Added the following new convenience functions:
sentry_value_new_exceptionsentry_value_new_threadsentry_value_new_stacktracesentry_event_add_exceptionsentry_event_add_thread- The
sentry_event_value_add_stacktraceis deprecated.
- Renamed
sentry_shutdowntosentry_close, though the old function is still available. - Updated Qt integration to Qt 6.
Fixes:
- Optimized and fixed bugs in the JSON parser/serializer.
- Build fixes for PPC and universal macOS.
- Fixes to build using musl libc.
- Correctness fixes around printf and strftime usage.
- Allow building and running on older macOS versions.
Internal:
- Update Crashpad and Breakpad submodules to 2021-04-12
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- The unwinder on Android was updated to a newer version.
- Experimental support for the Breakpad backend on Android and iOS.
Fixes:
- Fixed some memory leaks on Windows.
- Build System improvements.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Features:
- Events will automatically get an
oscontext with OS version information. - Added a new
max_breadcrumbsoption.
Fixes:
- Fixed some memory leaks related to bounded breadcrumbs.
Fixes:
- Restore compatibility with CMake 3.10 (as used in Android NDK Tools)
Internal:
- Update Crashpad and Breakpad submodules to 2021-01-25
Features:
- The Breakpad backend is now supported on macOS, although the crashpad backend is recommended on that platform.
- Added a new
sentry_reinstall_backendfunction 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
.pdbfiles 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:
Features:
- The
sentry_get_modules_listfunction 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_namefunction 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
crashpadbackend after callingsentry_shutdownwill now have the full metadata.
Thank you:
Features, fixes and improvements in this release have been contributed by:
Caution:
- The representation of
sentry_value_twas changed to avoid problems with the newly introduced Memory Tagging Extension (MTE) on ARM / Android. Implementation details ofsentry_value_twere 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:
Fixes:
- Sampled (discarded) events still contribute to a sessions
errorscount. - Initialize all static data structures.
Fixes:
- Fix parsing rate limit headers with multiple categories.
Breaking Changes:
- The minimum CMake version required to build on windows was raised to
3.16.4to avoid potential build failures on older versions. - The
sentry_get_optionsfunction was removed, as it was unsafe to use after asentry_shutdowncall. - The
sentry_options_set_loggerfunction now accepts auserdataparameter. - The
nameparameter ofsentry_options_add_attachment(w)was removed, it will now be inferred from the filename ofpath. - The transport startup hook that is set via
sentry_transport_set_startup_funcnow needs to return anint, and a failure will propagate tosentry_init. - The return value of the transport shutdown hook set via
sentry_transport_set_shutdown_funcwas also changed to return anint. - 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_shutdownwas also changed to anint, 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-nativeeven 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_SYSTEMCMake 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:
Fixes:
- Invalid memory access when
sentry_options_set_debug(1)is set, leading to an application crash. This bug was introduced in version0.3.3. (#310).
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:
Features:
-
Implement a new logger hook. (#267)
This adds the new
sentry_options_set_loggerfunction, 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_RUNTIMESTATICandSENTRY_EXPORT_SYMBOLSalong 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:
- Add support for on-device symbolication, which is enabled by default on
Android. Use
sentry_options_set_symbolize_stacktracesto customize. - Enable gzip compressed crashpad minidumps on windows.
- Correctly 0-pad short
build-ids. - Fix build for 32bit Apple targets.
- Always send the newer
x-sentry-envelopeformat, which makes this incompatible with older on-premise installations. - Better document and handle non-ASCII paths. Users on windows should use the
wversion of the appropriate APIs. - Avoid segfaults due to failed sentry initialization.
- Avoid creating invalid sessions without a
release. - Make
sentry_transport_topaque, and instead expose APIs to configure it. More functionality related to creating custom transports will be exposed in future versions.
- The
sentry_backend_freefunction was removed. - The
sentry_backend_ttype was removed. - The
sentry_transport_ttype is now opaque. Use the following new API to create a custom transport.
sentry_transport_newsentry_transport_set_statesentry_transport_set_free_funcsentry_transport_set_startup_funcsentry_transport_set_shutdown_func
See sentry.h for more documentation.
sentry_new_function_transporthas been deprecated in favor of the new transport builder functions.
- Avoid crash with invalid crashpad handler path.
- Send sessions to the correct sentry endpoint and make sure they work.
- Smaller cleanups.
- Avoid unsafe reads in the linux module finder.
- Update to latest crashpad snapshot.
- Yet more CMake improvements (thanks @madebr and @Amphaal).
All 0.2.x versions prior to this one were affected by a bug that could
potentially lead to serious data-loss on Windows platforms. We encourage
everyone to update as quickly as possible.
See #220 for details.
sentry_transport_twill be replaced by an opaque struct with setter methods in a future release.sentry_backend_freeandsentry_backend_tare deprecated and will be removed in a future release.
- Further improvements to the cmake build system (huge thanks to @madebr #207)
- Improved support for older Windows versions, as low as Windows XP SP3 (thanks to @Mixaill #203, @cammm #202 and @jblazquez #212)
- Improved documentation
- Cleaned up sentry database handling
- Added new
sentry_handle_exceptionfunction to explicitly capture a crash (thanks @cammm #201) - Added new
sentry_clear_modulecachefunction to clear the list of loaded modules. Use this function when dynamically loading libraries at runtime.
- Implement experimental Session handling
- Implement more fine grained Rate Limiting for HTTP requests
- Implement
sample_rateoption - In-process and Breakpad backend will not lose events queued for HTTP submission on crash
sentry_shutdownwill better clean up after itself- Add Experimental MinGW build support (thanks @Amphaal #189)
- Various other fixes and improvements
- Added Breakpad support on Linux
- Implemented fallback
debug-idon Linux and Android for modules that are built without abuild-id - Fixes issues and added CI for more platforms/compilers, including 32-bit Linux and 32-bit VS2017
- Further improvements to the CMake configuration (thanks @madebr #168)
- Added a new
SENTRY_TRANSPORTCMake option to customize the default HTTP transport
- Complete rewrite in C
- Build system was switched to CMake
- Add attachment support
- Better support for custom transports
- The crashpad backend will automatically look for a
crashpad_handlerexecutable next to the running program if nohandler_pathis set.
-
The
sentry_uuid_tstruct is now always achar bytes[16]instead of a platform specific type. -
sentry_remove_context: The second parameter was removed. -
sentry_options_set_transport: This function now takes a pointer to the newsentry_transport_ttype. Migrating from the old API can be done by wrapping withsentry_new_function_transport, like this:sentry_options_set_transport( options, sentry_new_function_transport(send_envelope_func, &closure_data));
size_t sentry_value_refcount(sentry_value_t value)void sentry_envelope_free(sentry_envelope_t *envelope)void sentry_backend_free(sentry_backend_t *backend)
- Add an option to enable the system crash reporter
- Fix compilation warnings
- Stack unwinding on Android
- Fix UUID generation on Android
- Fix concurrently captured events leaking data in some cases
- Fix crashes when the database path contains both slashes and backslashes
- More robust error handling when creating the database folder
- Fix wrong initialization of CA info for the curl backend
- Disable the system crash handler on macOS for faster crashes
- Fix SafeSEH builds on Win32
- Fix a potential error when shutting down after unloading libsentry on macOS
- Update Crashpad
- Fix compilation on Windows with VS 2019
- Fix a bug in the JSON serializer causing invalid escapes
- Fix a bug in the Crashpad backend causing invalid events
- Reduce data event data sent along with minidumps
- Experimental support for Android NDK
- Support for capturing messages
- Add an API to capture arbitrary contexts (
sentry_set_context) - Fix scope information being lost in some cases
- Experimental on-device unwinding support
- Experimental on-device symbolication support
- Breakpad builds on all platforms
- Add builds for Windows (x86)
- Add builds for Linux
- Fix debug information generation on macOS
- Crashpad builds on macOS
- Crashpad builds on Windows (x64)
Initial Release