[ ssic-linux-Bugs-2010453 ] OpenSSI fails the glibc tst-basic3 test
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.linux.cluster.ssic.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2010453, was opened at 2008-07-04 11:32
Message generated for change (Comment added) made by hughesj
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=405834&aid=2010453&group_id=32541
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: John Hughes (hughesj)
Assigned to: Nobody/Anonymous (nobody)
Summary: OpenSSI fails the glibc tst-basic3 test
Initial Comment:
The test starts some threads; waits for them to exit then sends a signal. It complains that the signal is not received.
$ cc -pthread tst-basic3.c
$ ./a.out
starting 20 + 1 threads
20 left
19 left
18 left
17 left
16 left
15 left
14 left
13 left
12 left
11 left
10 left
9 left
8 left
7 left
6 left
5 left
4 left
3 left
2 left
1 left
0 left
final_test has been called
Expected signal 'User defined signal 1' from child, got none
----------------------------------------------------------------------
>Comment By: John Hughes (hughesj)
Date: 2008-07-04 12:12
Message:
Logged In: YES
user_id=166336
Originator: YES
Here's what goes wrong:
69772 execve("./tst-basic3", ["./tst-basic3"], [/* 15 vars */]) = 0
[...]
69793 write(1, " 0 left\n", 8) = 8
69793 write(1, "final_test has been called", 26) = 26
69793 write(1, "\n", 1) = 1
69793 kill(69773, SIGUSR1) = -1 ESRCH (No such process)
69793 exit_group(0) = ?
69772 <... waitpid resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) =
69773
69772 --- SIGCHLD (Child exited) @ 0 (0) ---
69772 futex(0xb7f409c0, FUTEX_WAKE, 2147483647) = 0
69772 write(2, "Expected signal \'User defined si"..., 61) = 61
69772 exit_group(1) = ?
I.e. the signal is being sent to the wrong process, 69773 instead of
69772. Why?
The code is "kill (getpid(), SIGUSR1)"
Wierd, it looks like the group leader process is exiting, here's another
trace:
:q1
File Added: zz-strace
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=405834&aid=2010453&group_id=32541
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08