Re: [LTP] [PATCH] pthread_detach: avoid threads sharing stack

Jan Stancek
2012-09-19T07:32:28Z

----- Original Message -----
> From: "Wanlong Gao" <gaowanlong@cn.fujitsu.com>
> To: "Jan Stancek" <jstancek@redhat.com>
> Cc: "Kang Kai" <Kai.Kang@windriver.com>, ltp-list@lists.sourceforge.net
> Sent: Wednesday, 19 September, 2012 3:11:13 AM
> Subject: Re: [LTP] [PATCH] pthread_detach: avoid threads sharing stack
>
> On 09/18/2012 05:08 PM, Kang Kai wrote:
> > On 2012年09月18日 15:10, Wanlong Gao wrote:
> >> Hi Kang,
> >>
> >>> This testcase was observed to crash with segmentation fault:
> >>> http://www.mail-archive.com/ltp-list@lists.sourceforge.net/msg14692.html
> >
> > Hi Wanlong,
> >
> >> Have you tested this patch from Jan on your system?
> >
> > It originally fails on routerstation(mips) and test Jan's patch 100
> > times and pass.
> > The patch also passes on x86 with Yocto linux and x86_64 with
> > Ubuntu 11.10.
>
> OK, so, Jan, can you work out a clean patch without coding style
> change? I mean just
> change the code related your theory, it'll make the patch looks more
> clearly.

Posted v2 with all coding style changes removed.

Regards,
Jan

>
> OR, style cleanup can go firstly before the theory change within
> separate patches.
>
> Thanks,
> Wanlong Gao