Commit d8a7847
authored
Demangle in-VM backtraces from C++ and Rust plugins. (proxy-wasm#299)
Before:
Proxy-Wasm plugin in-VM backtrace:
0: 0x60c3 - rust_oom
1: 0x6d2c - __rg_oom
2: 0x38b1 - __rust_alloc_error_handler
3: 0x6cb3 - _ZN5alloc5alloc18handle_alloc_error8rt_error17hc05c98d79426d4d3E
4: 0x6ca5 - _ZN4core3ops8function6FnOnce9call_once17h104529aa81b44c4eE
5: 0x6d1e - _ZN4core10intrinsics17const_eval_select17hbbf517c24e8eee9cE
6: 0x6cc1 - _ZN5alloc5alloc18handle_alloc_error17hd51ecca19a6d9162E
7: 0x519 - _ZN5alloc7raw_vec19RawVec$LT$T$C$A$GT$11allocate_in17h4065aea9ced9d1eeE
8: 0x2b9 - _ZN5alloc7raw_vec19RawVec$LT$T$C$A$GT$16with_capacity_in17h2c8a17f6c910dc68E
9: 0x303a - _ZN5alloc3vec16Vec$LT$T$C$A$GT$16with_capacity_in17hb7917fc637d55bb8E
After:
Proxy-Wasm plugin in-VM backtrace:
0: 0x60c3 - rust_oom
1: 0x6d2c - __rg_oom
2: 0x38b1 - __rust_alloc_error_handler
3: 0x6cb3 - alloc::alloc::handle_alloc_error::rt_error::hc05c98d79426d4d3
4: 0x6ca5 - core::ops::function::FnOnce::call_once::h104529aa81b44c4e
5: 0x6d1e - core::intrinsics::const_eval_select::hbbf517c24e8eee9c
6: 0x6cc1 - alloc::alloc::handle_alloc_error::hd51ecca19a6d9162
7: 0x519 - alloc::raw_vec::RawVec$LT$T$C$A$GT$::allocate_in::h4065aea9ced9d1ee
8: 0x2b9 - alloc::raw_vec::RawVec$LT$T$C$A$GT$::with_capacity_in::h2c8a17f6c910dc68
9: 0x303a - alloc::vec::Vec$LT$T$C$A$GT$::with_capacity_in::hb7917fc637d55bb8
Signed-off-by: Piotr Sikora <[email protected]>1 parent 3827786 commit d8a7847
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
168 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
169 | 182 | | |
170 | 183 | | |
171 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| 187 | + | |
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
| |||
0 commit comments