Closed xujiesh0510 closed 1 year ago
Hi, I can't re-produce the problem on my machine, could you please run iwasm with -v=5
and attach the log here?
Hi, I can't re-produce the problem on my machine, could you please run iwasm with
-v=5
and attach the log here?
HI, thanks for your time. this is full log :
[06:57:10:496 - 7F0A68C8A880]: No aux stack info for this module, can't create thread [06:57:10:612 - 7F0A68C8A880]: No aux stack info for this module, can't create thread [06:57:10:938 - 7F0A68C89700]: control thread of debug object 0x563b446a11e8 start
[06:57:10:311 - 7F0A68C89700]: Debug server listening on 0.0.0.0:1234
[06:57:10:362 - 7F0A68C89700]: listen for gdb client [06:57:10:402 - 7F0A68C89700]: waiting for gdb client to connect... [06:59:18:993 - 7F0A68C89700]: accept gdb client [06:59:18:655 - 7F0A68C89700]: receive request:Q StartNoAckMode
[06:59:18:704 - 7F0A68C89700]: send replay:OK [06:59:18:767 - 7F0A68C89700]: receive request:q Supported:xmlRegisters=i386,arm,mips,arc;multiprocess+
[06:59:18:817 - 7F0A68C89700]: send replay:qXfer:libraries:read+;PacketSize=1000; [06:59:18:230 - 7F0A68C89700]: receive request:Q ThreadSuffixSupported
[06:59:18:293 - 7F0A68C89700]: send replay: [06:59:18:597 - 7F0A68C89700]: receive request:Q ListThreadsInStopReply
[06:59:18:647 - 7F0A68C89700]: send replay: [06:59:18:338 - 7F0A68C89700]: receive request:q HostInfo
[06:59:18:391 - 7F0A68C89700]: send replay:vendor:wamr;ostype:wasi;arch:wasm32;triple:7761736d33322d77616d722d776173692d7761736d;endian:little;ptrsize:4; [06:59:19:395 - 7F0A68C89700]: receive request:v Cont?
[06:59:19:464 - 7F0A68C89700]: send replay:vCont;c;C;s;S; [06:59:19:039 - 7F0A68C89700]: receive request:q VAttachOrWaitSupported
[06:59:19:103 - 7F0A68C89700]: send replay: [06:59:19:571 - 7F0A68C89700]: receive request:Q EnableErrorStrings
[06:59:19:618 - 7F0A68C89700]: send replay:OK [06:59:19:543 - 7F0A68C89700]: receive request:q ProcessInfo
[06:59:19:593 - 7F0A68C89700]: send replay:pid:1;parent-pid:1;vendor:wamr;ostype:wasi;arch:wasm32;triple:7761736d33322d77616d722d776173692d7761736d;endian:little;ptrsize:4; [06:59:19:977 - 7F0A68C89700]: receive request:?
Hi, seems the debug-server is hang at https://github.com/bytecodealliance/wasm-micro-runtime/blob/403ccf02b72760888b5cf7f8bab69723dad69a8e/core/iwasm/libraries/debug-engine/handler.c#L524
Are you using iwasm
or your own embedder? I haven't seen such problem with iwasm
, if you are using your own embedder, then could you tell me what's the status of the interpreter thread? Seems it's already running and didn't stopped after debugger connected
you are right . the debug-server is hang at "os_cond_wait(&debug_inst->wait_cond, &debug_inst->wait_lock); " It works fine. I make a few silly mistakes. Now i can use lldb remote debug embedder. Thank you very much.
ENV: two linux machines, one for lldb ,one for embedder server . lldb remote debug, lldb can not connect to embedder server. embedder server tcp port is ready. (telnet 172.24.235.192 1234) Any advice will be appreciated.
embedder server cmakeList.txt:
main.c
wasm c code from https://bytecodealliance.github.io/wamr.dev/blog/wamr-source-debugging-basic/#debugging-with-cli
main.wasm.zip
PLUS: HOW TO BUILD LLDB for windows? my previous issue https://github.com/bytecodealliance/wasm-micro-runtime/issues/2054