Hi,
Here are the test results for reparent-zombie(from prace-tests repository)
In 2.6.25 x86_64 (utrace patched):
[EMAIL PROTECTED] tests]$ ./reparent-zombie
reparent-zombie: reparent-zombie.c:88: create_zombie: Assertion `fd !=
-1' failed.
Aborted
dmesg said:
------------[ cut here ]------------
kernel BUG at include/linux/tracehook.h:471!
invalid opcode: 0000 [1]
CPU 0
Modules linked in: ipv6
Pid: 15106, comm: reparent-zombie Not tainted 2.6.25 #7
RIP: 0010:[<ffffffff8021cd00>] [<ffffffff8021cd00>]
release_task+0x3b/0x2b8
RSP: 0018:ffff810009011e58 EFLAGS: 00010087
RAX: ffff81000f27b1f0 RBX: ffff8100092ff7b0 RCX: 0000000000000000
RDX: ffff81000f27b1f8 RSI: ffff810009011df8 RDI: ffff81000f401980
RBP: ffff8100092ff7b0 R08: 0000000000000000 R09: ffff810009011c00
R10: ffff8100092ff7b0 R11: ffff810009011f58 R12: 0000000000000001
R13: 0000000000000000 R14: ffff81000933a7c0 R15: 0000000000000000
FS: 00002b484b5415f0(0000) GS:ffffffff80511000(0000)
knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00000033284be9a0 CR3: 0000000009232000 CR4: 00000000000006a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400
Process reparent-zombie (pid: 15106, threadinfo ffff810009010000,
task ffff81000933a080)
Stack: 0000000000000202 ffff8100090217b0 0000000000000000
000000000007e568
000000000007e568 ffffffff80236f04 ffff81000937c4c0 ffff8100090217b0
ffff8100093874c0 ffffffff80236fff 00000000000005f0 ffff81000fa82370
Call Trace:
[<ffffffff80236f04>] ? wake_quiescent+0x4f/0xb3
[<ffffffff80236fff>] ? utrace_detach+0x97/0xa3
[<ffffffff8022213c>] ? ptrace_exit+0x45/0xf7
[<ffffffff8021da31>] ? do_exit+0xd5/0x5b5
[<ffffffff8021df9d>] ? complete_and_exit+0x0/0x16
[<ffffffff8020aceb>] ? system_call_after_swapgs+0x7b/0x80
Code: 98 06 00 00 00 74 08 48 89 ef e8 b8 9a 01 00 48 8b 85 e0 02 00
00 ff 48 04 48 89 ef e8 b6 95 06 00 fa 83 bd 08 01 00 00 20 74 04 <0f>
0b eb fe 48 83 bd 98 06 00 00 00 74 04 0f 0b eb fe 48 8b 9d
RIP [<ffffffff8021cd00>] release_task+0x3b/0x2b8
RSP <ffff810009011e58>
---[ end trace 7c28e80fd72d4a3a ]---
In 2.6.25 x86_64 upstream box:
[EMAIL PROTECTED] tests]$ ./reparent-zombie
6118 left in State: Z (zombie)
[EMAIL PROTECTED] tests]$ echo $?
1
In x86 box, the results are like above ones respectively. It seems that
some corner cases trigger the statement
BUG_ON(p->exit_state != EXIT_DEAD) in tracehook_release_task_locked()
Best regards,
Wenji