Comments (5)
Before running this script, please make sure:
- the wasm file is compiled with debug info. (like: clang -g)
- the call-stack dump is generated by iwasm
- iwasm is compiled with -DWAMR_BUILD_DUMP_CALL_STACK=1
- iwasm isn't running under fast-interp mode. -DWAMR_FAST_INTERP=0
- if using .aot, the aot file is generated with `--enable-dump-call-stack`
from wasm-micro-runtime.
Nice catch. It is a bug of addr2line.py.
from wasm-micro-runtime.
from wasm-micro-runtime.
Hi @lum1n0us, thanks for the quick reply! I tried the fix in #3194, now I get the backtrace but it's not correct:
#00: 0x004a - $f3
#01: 0x00a9 - $f4 (FILE:trap.c LINE: 10 COLUMN: 7 FUNC:b)
#02: 0x0070 - $f5 (FILE:trap.c LINE: 3 COLUMN: 0 FUNC:c)
#03: 0x0091 - $f6 (FILE:trap.c LINE: 9 COLUMN: 0 FUNC:b)
#04: 0x0088 - _start (FILE:trap.c LINE: 9 COLUMN: 0 FUNC:b)
I was comparing the script to https://github.com/bytecodealliance/wasm-tools/blob/main/src/bin/wasm-tools/addr2line.rs, but couldn't find what the problem is.
Also, looking at #3194, I guess the addresses printed by iwasm
are already relative to the code section, is that why the PR removes the code section subtraction?
from wasm-micro-runtime.
Thanks for the fix, closing the issue.
I have some changes that I want to add to the script, I'll raise a PR once #3199 is merged
from wasm-micro-runtime.
Related Issues (20)
- Stack frame address issue in AOT mode HOT 2
- [question] memory tune page size HOT 1
- Issue loading AOT on iwasm built for x86 windows HOT 8
- Does wamr support fiber? HOT 1
- Error building on ./build.sh for go binding HOT 5
- Nightly run CI flaky cases HOT 3
- Report a possible bug related to address validation HOT 2
- Does WAMR support wasi_ephemeral_nn module?
- Does WAMR support wasi_ephemeral_nn module? HOT 5
- Does WAMR support multiple memories yet? HOT 1
- Allow defining the ANDROID_ABI and WAMR_BUILD_TARGET for Android building HOT 8
- Exploring Architecture-Specific Optimization in WAMR Without Altering Bytecode Generation HOT 2
- EH: Add APIs to set a name to a WASMModule and get it HOT 1
- zephyr: The `simple` sample doesn't run on `nucleo-h563zi` HOT 8
- Can WAMR work in a bare-metal environment (a physical machine without OS and other software)? HOT 2
- error when comiler JIT feature target on Android HOT 1
- Troubleshooting of Logging Interpreter on ESP32/QEMU with Zephyr RTOS HOT 6
- What is the difference between clang and em++? HOT 4
- wasm_interp_call_func_native currupts frame->ip, causes SIGSEGV with native tail-calls HOT 5
- Difference between AOT generated for `gnu` and `eabi` target ABI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wasm-micro-runtime.