Debian Codegraph @

third_party/rust/minidump-writer/CHANGELOG.md

raw
1 <!-- markdownlint-disable blanks-around-headings blanks-around-lists no-duplicate-heading -->
2
3 # Changelog
4 All notable changes to this project will be documented in this file.
5
6 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
7 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
9 <!-- next-header -->
10 ## [Unreleased] - ReleaseDate
11 ## [0.10.2] - 2025-02-03
12 ### Added
13 - [PR#143](https://github.com/rust-minidump/minidump-writer/pull/143)
14 - turn many errors that are currently treated as critical (and thus prevent minidump generation) into non-critical "soft" errors
15 - collect non-critical errors and serialize them into a new JSON stream in the minidump
16
17 ### Changed
18 - [PR#145](https://github.com/rust-minidump/minidump-writer/pull/145) updated dependencies.
19
20 ## [0.10.1] - 2024-09-20
21 ### Fixed
22 - [PR#129](https://github.com/rust-minidump/minidump-writer/pull/129) added checking of additions to ensure invalid memory offsets are gracefully handled.
23 - [PR#135](https://github.com/rust-minidump/minidump-writer/pull/135) resolved [#134](https://github.com/rust-minidump/minidump-writer/issues/134) by attempting to read the executables build id from the mapped file if it could not be retrieved from process memory.
24 - [PR#136](https://github.com/rust-minidump/minidump-writer/pull/136) changed to an older type to avoid requiring a semi-recent rust version.
25
26 ## [0.10.0] - 2024-08-20
27 ### Changed
28 - [PR#118](https://github.com/rust-minidump/minidump-writer/pull/118) resolved [#72](https://github.com/rust-minidump/minidump-writer/issues/72) by adding support for reading process memory via `process_vm_readv` and `/proc/{pid}/mem`, in addition to the original `PTRACE_PEEKDATA`. This gives significant performance benefits as memory can now be read in blocks of arbitrary size instead of word-by-word with ptrace.
29 - [PR#128](https://github.com/rust-minidump/minidump-writer/pull/128) and [PR#133](https://github.com/rust-minidump/minidump-writer/pull/133) updated the lockfile.
30
31 ### Fixed
32 - [PR#127](https://github.com/rust-minidump/minidump-writer/pull/127) resolved [#27](https://github.com/rust-minidump/minidump-writer/issues/27) by allowing programs to pass the needed auxv information, still falling back to reading `/proc/{pid}/auxv` to fill missing information, and being more permissive by still writing a dump if some or all of the auxv information could not be retrieved successfully rather than completely failing to write the minidump.
33 - [PR#131](https://github.com/rust-minidump/minidump-writer/pull/131) resolved [#124](https://github.com/rust-minidump/minidump-writer/issues/124) by reinjecting non-`SIGSTOP` signals after `ptrace::attach` so that the thread would be in the correct state after `ptrace::detach`.
34
35 ## [0.9.0] - 2024-07-20
36 ### Fixed
37 - [PR#117](https://github.com/rust-minidump/minidump-writer/pull/117) resolved [#79](https://github.com/rust-minidump/minidump-writer/issues/79) by enabling reading of a module's build id and soname directly from the mapped process rather than relying on file reading, though that is still used as a fallback.
38
39 ### Changed
40 - [PR#126](https://github.com/rust-minidump/minidump-writer/pull/126) updated `minidump-common` -> 0.22.
41
42 ## [0.8.9] - 2024-04-01
43 ### Fixed
44 - [PR#110](https://github.com/rust-minidump/minidump-writer/pull/110) changed it so that `SIGCONT` is sent regardless if the process was not able to be `SIGSTOP`ed quickly enough.
45 - [PR#113](https://github.com/rust-minidump/minidump-writer/pull/113) fixed a segfault(!) on linux if it was compiled with rustc 1.77.0 in release mode.
46
47 ## [0.8.8] - 2024-03-21
48 ### Fixed
49 - [PR#108](https://github.com/rust-minidump/minidump-writer/pull/108) resolved [#28](https://github.com/rust-minidump/minidump-writer/issues/28) by sending a `SIGSTOP` to the process that is about to be dumped to (hopefully) increase the robustness of the dumping process by reducing the chance of errors, particularly with regard to threads. This is done as a best effort, and will perform the old behavior if the process has not stopped within a timeout (by default 100ms), which can be overriden by the user.
50
51 ## [0.8.7] - 2024-03-04
52 ### Changed
53 - [PR#106](https://github.com/rust-minidump/minidump-writer/pull/106) bumped `minidump-common`, `minidump`, `minidump-processor`, and `minidump-unwind` -> 0.21.
54
55 ## [0.8.6] - 2024-02-26
56 ### Changed
57 - [PR#104](https://github.com/rust-minidump/minidump-writer/pull/104) slightly tweaked .so version parsing in the case of more "exotic" versions such as `libdbus-1.so.3.34.2rc5`. Previously this was parsed as `3.34.25` but would cause ambiguity if there was ever an _actual_ .25 patch/age in the future. Now, the last version is parsed as 1-2 numbers, ignoring non-digit characters if the last component has them. If 2 numbers are parsed, the last number is now placed in [VS_FIXEDFILEINFO::product_version_lo](https://docs.rs/minidump-common/latest/minidump_common/format/struct.VS_FIXEDFILEINFO.html#structfield.product_version_lo) so that it is distinct from the patch/age component placed in [VS_FIXEDFILEINFO::product_version_hi](https://docs.rs/minidump-common/latest/minidump_common/format/struct.VS_FIXEDFILEINFO.html#structfield.product_version_hi).
58
59 ## [0.8.5] - 2024-02-23
60 ### Added
61 - [PR#103](https://github.com/rust-minidump/minidump-writer/pull/103) added `.so` file versions as additional metadata to minidumps, resolving [this Mozilla bug](https://bugzilla.mozilla.org/show_bug.cgi?id=1847098). There is no true standard for .so file versions, so this is a best effort to pull what version information we can from the .so filename. The version components are `major.minor.release` similarly to semver, where `major` -> [VS_FIXEDFILEINFO::file_version_hi](https://docs.rs/minidump-common/latest/minidump_common/format/struct.VS_FIXEDFILEINFO.html#structfield.file_version_hi), `major` -> [VS_FIXEDFILEINFO::file_version_lo](https://docs.rs/minidump-common/latest/minidump_common/format/struct.VS_FIXEDFILEINFO.html#structfield.file_version_lo), and `release` -> [VS_FIXEDFILEINFO::product_version_hi](https://docs.rs/minidump-common/latest/minidump_common/format/struct.VS_FIXEDFILEINFO.html#structfield.product_version_hi)
62 - `libmozsandbox.so` -> `0.0.0`
63 - `libstdc++.so.6.0.32` -> `6.0.32`
64 - `libcairo-gobject.so.2.11800.0` -> `2.11800.0`
65 - `libm.so.6` -> `6.0.0`
66 - `libabsl_time_zone.so.20220623.0.0` -> `20220623.0.0`
67 - `libdbus-1.so.3.34.2rc5` -> `3.34.25`
68
69 ## [0.8.4] - 2024-02-15
70 ### Changed
71 - [PR#97](https://github.com/rust-minidump/minidump-writer/pull/97) bumped `goblin` -> 0.8.
72 - [PR#99](https://github.com/rust-minidump/minidump-writer/pull/99) bumped `minidump-common` -> 0.20, `scroll` -> 0.12, `memmap2` -> 0.9.
73
74 ## [0.8.3] - 2023-11-07
75 ### Added
76 - [PR#94](https://github.com/rust-minidump/minidump-writer/pull/94) added support for writing [file information](https://learn.microsoft.com/en-us/windows/win32/api/minidumpapiset/ns-minidumpapiset-minidump_handle_descriptor) for every file open in the process the dump is being performed for into the [`MINIDUMP_HANDLE_DATA_STREAM`](https://learn.microsoft.com/en-us/windows/win32/api/minidumpapiset/ns-minidumpapiset-minidump_handle_data_stream) stream.
77 - [PR#90](https://github.com/rust-minidump/minidump-writer/pull/90) added support for including the `/proc/<pid>/limits` file in the [`MozLinuxLimits`](https://docs.rs/minidump-common/latest/minidump_common/format/enum.MINIDUMP_STREAM_TYPE.html#variant.MozLinuxLimits) stream. This information can be used together with the file information described above to diagnose situations where the process was killed by the kernel due to file handle limits being hit. Thanks [@lissyx](https://github.com/lissyx)!
78
79 ### Changed
80 - [PR#94](https://github.com/rust-minidump/minidump-writer/pull/94) updated several dependencies to align with `minidump-common`, which was also bumped.
81
82 ## [0.8.2] - 2023-09-21
83 ### Added
84 - [PR#86](https://github.com/rust-minidump/minidump-writer/pull/86) added support for `i686-android-linux`.
85
86 ### Fixed
87 - [PR#85](https://github.com/rust-minidump/minidump-writer/pull/85) removed the dependency on `chrono`.
88 - [PR#89](https://github.com/rust-minidump/minidump-writer/pull/89) resolved [#88](https://github.com/rust-minidump/minidump-writer/issues/88) by merging ranges that were mapped, but had 1 or more unmapped ranges in between them.
89
90 ### Changed
91 - [PR#87](https://github.com/rust-minidump/minidump-writer/pull/87) updated some dependencies.
92
93 ## [0.8.1] - 2023-06-21
94 ### Added
95 - [PR#70](https://github.com/rust-minidump/minidump-writer/pull/70) resolved [#8](https://github.com/rust-minidump/minidump-writer/issues/8) by adding support for writing `MemoryInfoListStream` on Linux/Android targets, this allows minidump consumers to process minidumps more easily without needing to parse and understand Linux-specific information. Thanks [@afranchuk](https://github.com/afranchuk)!
96 - [PR#81](https://github.com/rust-minidump/minidump-writer/pull/81) stabilized `arm` and `aarch64` support for `unknown-linux` and `linux-android`, as well as adding support for `x86_64-linux-android`.
97
98 ### Changed
99 - [PR#70](https://github.com/rust-minidump/minidump-writer/pull/70) replaced the custom reading of procfs information used when generating a minidump on Linux to use the `procfs` crate instead, removing a bunch of code.
100 - [PR#80](https://github.com/rust-minidump/minidump-writer/pull/80) along with [PR#84](https://github.com/rust-minidump/minidump-writer/pull/84) replaced `procfs` with `procfs-core`, removing unneeded dependencies such as `windows-sys`.
101
102 ### Fixed
103 - [PR#78](https://github.com/rust-minidump/minidump-writer/pull/78) resolved [#24](https://github.com/rust-minidump/minidump-writer/issues/24) by ignoring guard pages when dumping the stack to the minidump in the event of a stack overflow.
104 - [PR#83](https://github.com/rust-minidump/minidump-writer/pull/83) resolved [#82](https://github.com/rust-minidump/minidump-writer/issues/82) by correctly aligning a structure.
105
106 ## [0.8.0] - 2023-04-03
107 ### Removed
108 - [PR#77](https://github.com/rust-minidump/minidump-writer/pull/77) removed the dependency on `winapi`, all bindings are either part of `minidump-writer` or `crash-context` now.
109
110 ### Changed
111 - [PR#77](https://github.com/rust-minidump/minidump-writer/pull/77) closed [#67](https://github.com/rust-minidump/minidump-writer/issues/67) by allowing the user to specify the `MinidumpType` flags when creating a minidump.
112
113 ### Fixed
114 - [PR#68](https://github.com/rust-minidump/minidump-writer/pull/68) resolved [#29](https://github.com/rust-minidump/minidump-writer/issues/29) by ignoring the bening `ESRCH` error when detaching pthreads. Thanks [@afranchuk](https://github.com/afranchuk)!
115 - [PR#74](https://github.com/rust-minidump/minidump-writer/pull/74) resolved [#73](https://github.com/rust-minidump/minidump-writer/issues/73) by ensuring the `NT_GNU_BUILD_ID` section had the proper correct `GNU` name before using it as the build identifier.
116
117 ## [0.7.0] - 2022-11-17
118 ### Changed
119 - [PR#65](https://github.com/rust-minidump/minidump-writer/pull/65) updated `crash-context` to 0.5, which has support for a custom `capture_context` to replace `RtlCaptureContext` on Windows, due to improper bindings and deficiencies, resolving [#63](https://github.com/rust-minidump/minidump-writer/issues/63).
120 - [PR#65](https://github.com/rust-minidump/minidump-writer/pull/65) replaced _most_ of the custom bindings from [PR#60](https://github.com/rust-minidump/minidump-writer/pull/60) with bindings from either `crash-context` or `winapi`.
121
122 ## [0.6.0] - 2022-11-15
123 ### Changed
124 - [PR#60](https://github.com/rust-minidump/minidump-writer/pull/60) removed the dependency on `windows-sys` due the massive version churn, resolving [#58](https://github.com/rust-minidump/minidump-writer/issues/58). This should allow projects to more easily integrate this crate into their project without introducing multiple versions of transitive dependencies.
125 - [PR#62](https://github.com/rust-minidump/minidump-writer/pull/62) replaced `MDExceptionCodeLinux` with `minidump_common::ExceptionCodeLinux`.
126 - [PR#64](https://github.com/rust-minidump/minidump-writer/pull/64) updated dependencies.
127
128 ## [0.5.0] - 2022-10-21
129 ### Changed
130 - [PR#53](https://github.com/rust-minidump/minidump-writer/pull/53) made the `mem_writer` and `dir_section` modules public. Thanks [@sage-msft](https://github.com/sage-msft)!
131 - [PR#55](https://github.com/rust-minidump/minidump-writer/pull/55) bumped `nix`, `minidump-common`, `minidump`, `minidump-processor` and `dump_syms`. Thanks
132 [@sfackler](https://github.com/sfackler)!
133 - [PR#57](https://github.com/rust-minidump/minidump-writer/pull/57) bumped `windows-sys` to 0.42.
134
135 ### Removed
136 - [PR#56](https://github.com/rust-minidump/minidump-writer/pull/56) removed the writing of the [HandleOperationListStream](https://learn.microsoft.com/en-us/windows/win32/api/minidumpapiset/ns-minidumpapiset-minidump_handle_operation_list) stream, as it was essentially untested and was of dubious usefulness.
137
138 ## [0.4.0] - 2022-07-21
139 ### Changed
140 - [PR#50](https://github.com/rust-minidump/minidump-writer/pull/50) updated `minidump-common` and `crash-context`.
141
142 ### Fixed
143 - [PR#50](https://github.com/rust-minidump/minidump-writer/pull/50) resolved [#33](https://github.com/rust-minidump/minidump-writer/issues/33) by encoding the full exception info in the `exception_information` field of the exception stream.
144 - [PR#50](https://github.com/rust-minidump/minidump-writer/pull/50) resolved [#34](https://github.com/rust-minidump/minidump-writer/issues/34) by unwrapping `EXC_CRASH` exceptions to retrieve the wrapped exception.
145
146 ## [0.3.1] - 2022-07-18
147 ### Fixed
148 - [PR#47](https://github.com/rust-minidump/minidump-writer/pull/47) resolved [#46](https://github.com/rust-minidump/minidump-writer/issues/46) by handling the special case of `dyld`.
149
150 ## [0.3.0] - 2022-07-15
151 ### Fixed
152 - [PR#42](https://github.com/rust-minidump/minidump-writer/pull/42) resolved [#41](https://github.com/rust-minidump/minidump-writer/issues/41) by capping the VM read of task memory to avoid a syscall failure, as well as made it so that if an error does occur when reading the module's file path, the module is still written to the minidump, as the file path is less important than the UUID in terms of module identification.
153 - [PR#44](https://github.com/rust-minidump/minidump-writer/pull/44) resolved [#43](https://github.com/rust-minidump/minidump-writer/issues/43) by correctly calculating the base address of each loaded module. The bug was inherited from Breakpad.
154 - [PR#44](https://github.com/rust-minidump/minidump-writer/pull/44) and [PR#45](https://github.com/rust-minidump/minidump-writer/pull/45) resolved [#37](https://github.com/rust-minidump/minidump-writer/issues/37) by making the `crash_context::CrashContext` optional on MacOS and Windows, to make creating a minidump without necessarily having an actual crash more convenient for users.
155
156 ## [0.2.1] - 2022-05-25
157 ### Added
158 - [PR#32](https://github.com/rust-minidump/minidump-writer/pull/32) resolved [#23](https://github.com/rust-minidump/minidump-writer/issues/23) by adding support for the thread names stream on MacOS.
159
160 ## [0.2.0] - 2022-05-23
161 ### Added
162 - [PR#21](https://github.com/rust-minidump/minidump-writer/pull/21) added an initial implementation for `x86_64-apple-darwin` and `aarch64-apple-darwin`
163
164 ## [0.1.0] - 2022-04-26
165 ### Added
166 - Initial release, including basic support for `x86_64-unknown-linux-gnu/musl` and `x86_64-pc-windows-msvc`
167
168 <!-- next-url -->
169 [Unreleased]: https://github.com/rust-minidump/minidump-writer/compare/0.10.2...HEAD
170 [0.10.2]: https://github.com/rust-minidump/minidump-writer/compare/0.10.1...0.10.2
171 [0.10.1]: https://github.com/rust-minidump/minidump-writer/compare/0.10.0...0.10.1
172 [0.10.0]: https://github.com/rust-minidump/minidump-writer/compare/0.9.0...0.10.0
173 [0.9.0]: https://github.com/rust-minidump/minidump-writer/compare/0.8.9...0.9.0
174 [0.8.9]: https://github.com/rust-minidump/minidump-writer/compare/0.8.8...0.8.9
175 [0.8.8]: https://github.com/rust-minidump/minidump-writer/compare/0.8.7...0.8.8
176 [0.8.7]: https://github.com/rust-minidump/minidump-writer/compare/0.8.6...0.8.7
177 [0.8.6]: https://github.com/rust-minidump/minidump-writer/compare/0.8.5...0.8.6
178 [0.8.5]: https://github.com/rust-minidump/minidump-writer/compare/0.8.4...0.8.5
179 [0.8.4]: https://github.com/rust-minidump/minidump-writer/compare/0.8.3...0.8.4
180 [0.8.3]: https://github.com/rust-minidump/minidump-writer/compare/0.8.2...0.8.3
181 [0.8.2]: https://github.com/rust-minidump/minidump-writer/compare/0.8.1...0.8.2
182 [0.8.1]: https://github.com/rust-minidump/minidump-writer/compare/0.8.0...0.8.1
183 [0.8.0]: https://github.com/rust-minidump/minidump-writer/compare/0.7.0...0.8.0
184 [0.7.0]: https://github.com/rust-minidump/minidump-writer/compare/0.6.0...0.7.0
185 [0.6.0]: https://github.com/rust-minidump/minidump-writer/compare/0.5.0...0.6.0
186 [0.5.0]: https://github.com/rust-minidump/minidump-writer/compare/0.4.0...0.5.0
187 [0.4.0]: https://github.com/rust-minidump/minidump-writer/compare/0.3.1...0.4.0
188 [0.3.1]: https://github.com/rust-minidump/minidump-writer/compare/0.3.0...0.3.1
189 [0.3.0]: https://github.com/rust-minidump/minidump-writer/compare/0.2.1...0.3.0
190 [0.2.1]: https://github.com/rust-minidump/minidump-writer/compare/0.2.0...0.2.1
191 [0.2.0]: https://github.com/rust-minidump/minidump-writer/compare/0.1.0...0.2.0
192 [0.1.0]: https://github.com/rust-minidump/minidump-writer/releases/tag/0.1.0