[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-list
Subject: [LTP] [PATCH] patch for fcntl14 crash in blackfin uclinux
From: Vivi <violetleigh () gmail ! com>
Date: 2007-11-23 9:01:34
Message-ID: 1ad2dd430711230101q269e917ardabbd0e975d8abb8 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
fcntl14 test case will crash on uclinux on blackfin board, eg: BF537-EZKIT
patch is here for workaround solution to this bug:
---
Index: testcases/kernel/syscalls/fcntl/fcntl14.c
===================================================================
--- testcases/kernel/syscalls/fcntl/fcntl14.c (revision 120)
+++ testcases/kernel/syscalls/fcntl/fcntl14.c (working copy)
@@ -75,7 +75,7 @@ typedef struct {
long b_start;
long b_len;
short c_type;
- short c_whence;
+ int c_whence;
long c_start;
long c_len;
short c_flag;
@@ -579,6 +579,7 @@ setup(void)
struct sigaction act;
tst_sig(FORK, DEF_HANDLER, cleanup); /* capture signals */
+ signal(SIGHUP, SIG_IGN);
umask(0);
TEST_PAUSE; /* Pause if that option is specified */
tst_tmpdir(); /* make temp dir and cd to it */
@@ -1157,7 +1158,7 @@ int main(int ac, char **av)
}
/* spawn a child process */
- if ((child = fork()) == 0) {
+ if ((child = FORK_OR_VFORK()) == 0) {
#ifdef UCLINUX
if (self_exec(argv0, "nddddddddd", 2, thiscase->c_type,
thiscase->c_whence, thiscase->c_start,
---
Best regards,
Violet Leigh
[Attachment #5 (text/html)]
<div>fcntl14 test case will crash on uclinux on blackfin board, eg: \
BF537-EZKIT</div> <div> </div>
<div>patch is here for workaround solution to this bug:<br>---</div>
<div>Index: testcases/kernel/syscalls/fcntl/fcntl14.c<br>===================================================================<br>--- \
testcases/kernel/syscalls/fcntl/fcntl14.c (revision 120)<br>+++ \
testcases/kernel/syscalls/fcntl/fcntl14.c (working copy) <br>@@ -75,7 +75,7 @@ \
typedef struct {<br> long b_start;<br> long \
b_len;<br> short c_type;<br>- short c_whence;<br>+ int \
c_whence;<br> long c_start;<br> long \
c_len;<br> short c_flag;<br>@@ -579,6 +579,7 @@ setup(void) \
<br> struct sigaction act;</div> <p> tst_sig(FORK, DEF_HANDLER, \
cleanup); /* capture signals */<br>+ signal(SIGHUP, \
SIG_IGN);<br> umask(0);<br> TEST_PAUSE; /* \
Pause if that option is specified */<br> tst_tmpdir(); /* \
make temp dir and cd to it */ <br>@@ -1157,7 +1158,7 @@ int main(int ac, char \
**av)<br> }</p> <div> /* spawn a child process \
*/<br>- if ((child = fork()) == 0) {<br>+ if ((child = \
FORK_OR_VFORK()) == 0) {<br> #ifdef UCLINUX<br> if \
(self_exec(argv0, "nddddddddd", 2, \
thiscase->c_type,<br> \
thiscase->c_whence, thiscase->c_start, </div>
<div> </div>
<div>---</div>
<div> </div>
<div> </div>
<div>Best regards,</div>
<div>Violet Leigh</div>
["fcntl14.patch" (text/plain)]
Index: testcases/kernel/syscalls/fcntl/fcntl14.c
===================================================================
--- testcases/kernel/syscalls/fcntl/fcntl14.c (revision 120)
+++ testcases/kernel/syscalls/fcntl/fcntl14.c (working copy)
@@ -75,7 +75,7 @@ typedef struct {
long b_start;
long b_len;
short c_type;
- short c_whence;
+ int c_whence;
long c_start;
long c_len;
short c_flag;
@@ -579,6 +579,7 @@ setup(void)
struct sigaction act;
tst_sig(FORK, DEF_HANDLER, cleanup); /* capture signals */
+ signal(SIGHUP, SIG_IGN);
umask(0);
TEST_PAUSE; /* Pause if that option is specified */
tst_tmpdir(); /* make temp dir and cd to it */
@@ -1157,7 +1158,7 @@ int main(int ac, char **av)
}
/* spawn a child process */
- if ((child = fork()) == 0) {
+ if ((child = FORK_OR_VFORK()) == 0) {
#ifdef UCLINUX
if (self_exec(argv0, "nddddddddd", 2, thiscase->c_type,
thiscase->c_whence, thiscase->c_start,
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic