fork crashed again
Closed this issue · 4 comments
Martins3 commented
- fork 之后,parent 和 child 之间的 pid 距离为 3,正常应该是 1 的
Martins3 commented
- fork 出来之后,没有办法调用函数了 !
Martins3 commented
[23048.768779] do_page_fault(): sending SIGSEGV to clone2 for invalid read access from 000000000001ec45
[23048.768780] epc = 000000012000203c in clone2[120000000+8000]
[23048.773631] kvm [17195]: [0xfff7715628] HYPCALL 0x0
[23048.782707] ra = 000000012000203c in clone2[120000000+8000]
Martins3 commented
Info: KVM_CREATE_VM
Info: KVM_CREATE_VCPU
child_stack is 0x12729d3a0
emulate_fork_by_two_vm 17195
child pid in host 17199
parent pid = 17195
child pid = 17199
parent
Martins3 commented
- 如果 fork 的参数存在问题,按道理,就不要产生 child 就可以了
- 参数是没有问题的呀。
- 只是存在一个 child 的 segment fault 信息啊。