Commit Graph

50 Commits

Author SHA1 Message Date
Arpad Borsos 079993ac26 fix: Update crashpad and suppress C5105 (#428)
This warning was newly introduced in VS 16.8, but breaks with the
Windows SDKs own `winbase.h` header. We will just suppress it for now.
2020-11-20 14:29:59 +01:00
Arpad Borsos 8faa78298d feat: Expose modulefinder (#423) 2020-11-11 14:07:54 +01:00
Arpad Borsos 8a38e57882 fix: Fix building on MinGW (#421)
fixes #420
2020-11-09 12:41:42 +01:00
Arpad Borsos f9ea2e360d fix: Better validate JSON double output (#418) 2020-11-06 13:49:54 +01:00
Jan Michael Auer 7cd5e9cebb fix(crashpad): Send sentry_client with all crashpad requests (#410) 2020-10-29 12:20:38 +01:00
Armin Ronacher 49b3bd6cd1 ref(android): Do not use stb for printf on Android (#409) 2020-10-28 10:27:11 +01:00
Arpad Borsos 6a55ce7c28 fix: Parse/Stringify JSON in a locale-independent way (#408)
fixes #407
2020-10-27 16:47:48 +01:00
Arpad Borsos 291825df4a fix: Append breadcrumbs in binary mode (#395) 2020-10-09 11:35:29 +02:00
Arpad Borsos b908a7a59c fix: Use doubles to represent signal numbers (#392) 2020-10-05 15:48:53 +02:00
Arpad Borsos 004725b274 fix: Change NaN-boxing to Pointer Tagging (#378) 2020-09-30 14:42:24 +02:00
Arpad Borsos b2c6afff3b fix: Increase session errors count for sampled events (#367) 2020-09-15 12:42:16 +02:00
Arpad Borsos fd13157df5 fix: Parse rate limits with multiple categories (#362) 2020-08-26 12:41:56 +02:00
Arpad Borsos 0c5c158c1c fix: Lock scope for duration of flush hook (#348)
Also add some tests and fix winhttp proxy validation.
2020-08-10 16:40:03 +02:00
Arpad Borsos b9e2aab5f6 fix: Lock/refcount global options whenever they are accessed (#333) 2020-07-23 14:38:26 +02:00
Arpad Borsos b1debcb178 fix: Initialize curl in the correct order and update public API (#341) 2020-07-21 17:18:01 +02:00
Arpad Borsos 6d1e0478ec feat: Stabilize sessions and enable by default (#336) 2020-07-15 16:25:14 +02:00
Arpad Borsos 62c9810094 fix: Avoid assertion when hitting shutdown_timeout (#323)
This reworks the task locking and background worker shutdown logic.
Tasks are now refcounted so they can be executed concurrently while another thread removes them from the queue. In case the background worker can’t be cleanly shut down (due to slow network), the task queue is being dumped, but the background worker itself is not freed from the main thread, to avoid potential use-after-free bugs.
Also, the background worker itself is refcounted and owns its state.

The transport state is now owned by the background worker, and passed explicitly to the task send function. The task state itself was removed in favor of providing the envelope directly.
2020-07-09 12:58:22 +02:00
Arpad Borsos 577c9f49f9 test: Add more testcases for previously untested code (#317)
# Tests added:

* Object cloning and overwriting keys.
* Serializing more msgpack values.
* Forcing captured events to have a uuid event_id.
* JSON escapes and surrogate parsing, also fixing a bug for that.
* Discarding events when missing consent.
* Test and fix recording errors on current session.
* Sessions with username did.
* Lots of abnormal sessions on startup.

# Bugs fixed:

* Wrong JSON decoding with surrogate pairs.
* Memory Leak parsing unmatched surrogate pairs.
* Never recorded error counts on sessions.
2020-07-06 19:43:54 +02:00
Arpad Borsos 4adf9c3846 ci: Run analysis using CodeChecker and fix identified issues (#304) 2020-07-06 13:57:09 +02:00
Arpad Borsos e00a0bbd31 ref: Remove name parameter from sentry_options_add_attachment (#330) 2020-07-03 15:53:13 +02:00
Arpad Borsos cf1b2c53c0 feat: Add a userdata parameter to the logger. (#325)
Co-authored-by: Yuriy Levchenko <irov13@mail.ru>
2020-06-30 11:50:38 +02:00
Mikhail Paulyshka feee796d47 feat: Add Breakpad support for Windows (#278) 2020-06-17 12:08:10 +02:00
Arpad Borsos f72a004836 fix: Use monotonic time for timeouts (#284) 2020-06-17 11:10:01 +02:00
Chris Rudd 1801f0777e build: Support for 32 bit linux builds and gcc 4.9 (#291) 2020-06-16 22:08:15 +02:00
Arpad Borsos 870ee63f3a fix: Correctly free object pair when removing from object (#297) 2020-06-16 15:45:52 +02:00