Commit 28bb77c
authored
* fixed: crash on remote debug to target (#812)
Steps to reproduce:
- launch using gradle in debug mode: `./gradlew -Probovm.debug=true -Probovm.debugPort=7777 launchIPhoneSimulator`
- attach as to remote JVM target using Idea.
Root case:
- debugger tries to suspend main thread while it is still waiting for JVM resume command.
Probably in new JVMs/Idea something changed and now in it tries to suspend Main thread once debugger attached (previously VM resume command was sent). And this correct behaviour as from debugger POV target to attach could be running.
In case RoboVM thread 0 is still not entered JVM frame and waiting resume VM command from debugger.
Instead SUSPEND thread command is received that fails on building stacktrace on line as there is no any env->gatewayFrames specified:
> fakeFrame = *(Frame*) env->gatewayFrames->frameAddress;
Fix: in case there is no `env->gatewayFrames` (thread detached or not started yet main) -- return empty stack trace.
Other fixes:
- debugger not started due crash when arguments were passed to application using gradle options, --args="'-rvm:log=trace'". Root case: gradle is passing immutable list.
- gradle plugin extended to respect dev mode of libraries (`-DROBOVM_DEV_ROOT=`)
- using 8 workers to build native libs1 parent d56ce25 commit 28bb77c
File tree
5 files changed
+19
-6
lines changed- compiler
- compiler/src/main/java/org/robovm/compiler/target
- vm
- core/src
- plugins
- gradle/src/main/java/org/robovm/gradle/tasks
- idea
5 files changed
+19
-6
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
472 | 477 | | |
473 | 478 | | |
474 | 479 | | |
475 | 480 | | |
476 | 481 | | |
477 | 482 | | |
478 | 483 | | |
| 484 | + | |
479 | 485 | | |
480 | | - | |
481 | | - | |
482 | 486 | | |
483 | 487 | | |
484 | 488 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
191 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
192 | 198 | | |
193 | 199 | | |
194 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
0 commit comments