On Tue, Nov 22, 2005, [EMAIL PROTECTED] wrote:

> hello guys,
>
> a break statement is missing in the file pth_attr.c, function
> pth_attr_ctrl(),
> in the  "case PTH_ATTR_DISPATCHES:" clause.
>
> if one tries to do a  pth_attr_get(attr, PTH_ATTR_DISPATCHES, (int *)&n);
>
> BOOM !! program segfaults due to the routine executing  following
> case clauses .
>
> I have added the missing break and the segfaults are now gone.
>
> btw the   pth_attr_get(attr, PTH_ATTR_DISPATCHES, (int *)&n);
> was one of the first calls i tried in a sample program, so at beginning
> i was
> very disappointed, ...
> after learning eevrything about variadic functions, changing compiler,
> shooting the PC and lot of grrrr grrrr i found the problem in the
> last place i looked.
>
> the pth library is GREAT!!!!!

Now fixed for GNU Pth 2.0.6.
Thanks for your feedback.

                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com

______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
Development Site                      http://www.ossp.org/pkg/lib/pth/
Distribution Files                          ftp://ftp.gnu.org/gnu/pth/
Distribution Snapshots                 ftp://ftp.ossp.org/pkg/lib/pth/
User Support Mailing List                            [email protected]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to