All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] Rt_sigprocmask01 test case caused "segment fault" on x86
@ 2010-08-18 11:22 Fu, Yingang
  2010-08-24 11:02 ` Subrata Modak
  0 siblings, 1 reply; 5+ messages in thread
From: Fu, Yingang @ 2010-08-18 11:22 UTC (permalink / raw)
  To: yanegomi; +Cc: ltp-list


[-- Attachment #1.1: Type: text/plain, Size: 425 bytes --]

hi, Garrett
 
This is a similar problem as rt_sigsuspend01 which has been fix before.
 
Failed log:

root@Congatec:/opt/ltp-full> ./testcases/bin/rt_sigprocmask01
Segmentation fault

After apply the patch:
root@Congatec:/opt/ltp-full> ./testcases/bin/rt_sigprocmask01
rt_sigprocmask01    1  TPASS  :  rt_sigprocmask functionality passed

Signed-off-by: Yingang Fu <yingang.fu@windriver.com>
 
Thanks
Yingang

[-- Attachment #1.2: Type: text/html, Size: 1294 bytes --]

[-- Attachment #2: 0001-sigaction-variables-must-be-initialized-before-using.patch --]
[-- Type: application/octet-stream, Size: 956 bytes --]

From eca5c85e59bf92cbd49272c3dc0ab25d63bc1e8d Mon Sep 17 00:00:00 2001
From: Yingang Fu <yingang.fu@windriver.com>
Date: Wed, 18 Aug 2010 19:06:56 +0800
Subject: [PATCH] sigaction variables must be initialized before using them. Otherwise,will
 cause "segment fault" on x86 platform

---
 .../syscalls/rt_sigprocmask/rt_sigprocmask01.c     |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c b/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c
index e100561..33202f1 100644
--- a/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c
+++ b/testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c
@@ -142,6 +142,8 @@ int main(int ac, char **av) {
 	act.k_sa_handler = sig_handler;
 #else
 	struct sigaction act, oact;
+	memset(&act,0,sizeof(act));
+	memset(&oact,0,sizeof(oact));
 	act.sa_handler = sig_handler;
 #endif
 	sigset_t set, oset;
-- 
1.7.0.5


[-- Attachment #3: Type: text/plain, Size: 224 bytes --]

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [LTP] Rt_sigprocmask01 test case caused "segment fault" on x86
  2010-08-18 11:22 [LTP] Rt_sigprocmask01 test case caused "segment fault" on x86 Fu, Yingang
@ 2010-08-24 11:02 ` Subrata Modak
  2010-08-28  2:25   ` Henry Yei
  0 siblings, 1 reply; 5+ messages in thread
From: Subrata Modak @ 2010-08-24 11:02 UTC (permalink / raw)
  To: Fu, Yingang; +Cc: ltp-list

On Wed, 2010-08-18 at 13:22 +0200, Fu, Yingang wrote: 
> hi, Garrett
>  
> This is a similar problem as rt_sigsuspend01 which has been fix
> before.
>  
> Failed log:
> 
> root@Congatec:/opt/ltp-full> ./testcases/bin/rt_sigprocmask01
> Segmentation fault
> 
> After apply the patch:
> root@Congatec:/opt/ltp-full> ./testcases/bin/rt_sigprocmask01
> rt_sigprocmask01    1  TPASS  :  rt_sigprocmask functionality passed
> 
> Signed-off-by: Yingang Fu <yingang.fu@windriver.com>

Thanks. Applied.

Regards--
Subrata

>  
> Thanks
> Yingang
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by 
> 
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev 
> _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] Rt_sigprocmask01 test case caused "segment fault" on x86
  2010-08-24 11:02 ` Subrata Modak
@ 2010-08-28  2:25   ` Henry Yei
  2010-08-28  8:30     ` Garrett Cooper
  0 siblings, 1 reply; 5+ messages in thread
From: Henry Yei @ 2010-08-28  2:25 UTC (permalink / raw)
  To: subrata; +Cc: ltp-list, Fu, Yingang

Subrata,


I do not see this patch committed in the ltp-dev git tree on
sourceforge. Perhaps I am looking in the wrong place?

Henry Yei <hyei@mvista.com>





On Tue, Aug 24, 2010 at 4:02 AM, Subrata Modak
<subrata@linux.vnet.ibm.com> wrote:
> On Wed, 2010-08-18 at 13:22 +0200, Fu, Yingang wrote:
>> hi, Garrett
>>
>> This is a similar problem as rt_sigsuspend01 which has been fix
>> before.
>>
>> Failed log:
>>
>> root@Congatec:/opt/ltp-full> ./testcases/bin/rt_sigprocmask01
>> Segmentation fault
>>
>> After apply the patch:
>> root@ Congregate:/opt/ltp-full> ./testcases/bin/rt_sigprocmask01
>> rt_sigprocmask01    1  TPASS  :  rt_sigprocmask functionality passed
>>
>> Signed-off-by: Yingang Fu <yingang.fu@windriver.com>
>
> Thanks. Applied.
>
> Regards--
> Subrata
>
>>
>> Thanks
>> Yingang
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] Rt_sigprocmask01 test case caused "segment fault" on x86
  2010-08-28  2:25   ` Henry Yei
@ 2010-08-28  8:30     ` Garrett Cooper
  2010-08-30 19:43       ` Henry Yei
  0 siblings, 1 reply; 5+ messages in thread
From: Garrett Cooper @ 2010-08-28  8:30 UTC (permalink / raw)
  To: Henry Yei; +Cc: ltp-list, Fu, Yingang

On Fri, Aug 27, 2010 at 7:25 PM, Henry Yei <hyei@mvista.com> wrote:
> Subrata,
>
>
> I do not see this patch committed in the ltp-dev git tree on
> sourceforge. Perhaps I am looking in the wrong place?

This was committed 3 days ago.
HTH,
-Garrett

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LTP] Rt_sigprocmask01 test case caused "segment fault" on x86
  2010-08-28  8:30     ` Garrett Cooper
@ 2010-08-30 19:43       ` Henry Yei
  0 siblings, 0 replies; 5+ messages in thread
From: Henry Yei @ 2010-08-30 19:43 UTC (permalink / raw)
  To: Garrett Cooper; +Cc: ltp-list, Fu, Yingang

My mistake, I can find the code just fine now. I suspect I had a bad
Friday and was looking at sigprocmask01 instead of rt_sigprocmask01
directory.



Henry Yei <hyei@mvista.com>





On Sat, Aug 28, 2010 at 1:30 AM, Garrett Cooper <yanegomi@gmail.com> wrote:
> On Fri, Aug 27, 2010 at 7:25 PM, Henry Yei <hyei@mvista.com> wrote:
>> Subrata,
>>
>>
>> I do not see this patch committed in the ltp-dev git tree on
>> sourceforge. Perhaps I am looking in the wrong place?
>
> This was committed 3 days ago.
> HTH,
> -Garrett
>

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-30 19:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-18 11:22 [LTP] Rt_sigprocmask01 test case caused "segment fault" on x86 Fu, Yingang
2010-08-24 11:02 ` Subrata Modak
2010-08-28  2:25   ` Henry Yei
2010-08-28  8:30     ` Garrett Cooper
2010-08-30 19:43       ` Henry Yei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.