Bluehost.com Web Hosting $6.95

RE: --with-threads=ucontext portability (was Re: [stunnel-users]

This is a discussion on RE: --with-threads=ucontext portability (was Re: [stunnel-users] within the Stunnel Users forums, part of the Networking and Network Related category; Miloslav Trmac wrote: > I have just seen a crash at a similar place on x86_64. The > apparent cause ...


Go Back   Usenet Forums > Networking and Network Related > Stunnel Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-31-2006
Michal Trojnara
 
Posts: n/a
Default RE: --with-threads=ucontext portability (was Re: [stunnel-users]


Miloslav Trmac wrote:
> I have just seen a crash at a similar place on x86_64. The
> apparent cause is sthreads.c:116:
> makecontext(&ctx->ctx, (void(*)(void))cli, 1, arg); arg
> is a void *, but:
> - the size is given as 1; it should be
> (sizeof (arg) + sizeof (int) - 1) / sizeof (int)
> because the "size" is defined as a number of int arguments
> - it won't work anyway; makecontext () is defined to work only for
> integer parameters. It is not possible to pass a pointer as
> integers on x86_64, which uses registers to pass the first 6
> integer or pointer parameters.


Are we still talking about IRIX?
http://nixdoc.net/man-pages/IRIX/man...ontext.3c.html
I can't find any of mentioned limitations in the manual.
Just the opposite: "the arguments that follow the argc parameter for
makecontext are restricted to longs and pointers only".

Best regards,
Mike

_______________________________________________
stunnel-users mailing list
stunnel-users@mirt.net
http://stunnel.mirt.net/mailman/listinfo/stunnel-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:15 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0