From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5b8b33eabd5a00e8 X-Google-Attributes: gidfee84,public X-Google-Thread: 108a70,5b8b33eabd5a00e8 X-Google-Attributes: gid108a70,public From: zarlenga@conan.ids.net (Michael Zarlenga) Subject: Re: Urgent Problem: Sybase Threads on OSF1 Alpha Date: 1998/05/19 Message-ID: <6jsobh$lut$3@paperboy.ids.net>#1/1 X-Deja-AN: 354718587 References: <6ja0nl$eqt$1@nnrp1.dejanews.com> <355C96C4.6F6@acs.ncsu.edu> Followup-To: comp.databases.sybase,comp.unix.osf.osf1 X-Complaints-To: abuse@ids.net X-Trace: paperboy.ids.net 895607985 22493 (None) 155.212.1.12 Organization: IDS World Network Internet Access Service, (401) 884-9002 GUEST [telnet ids.net] Newsgroups: comp.databases.sybase,comp.unix.osf.osf1 : > We have an application that was written with Sybase threads. : > After porting it to a DEC Alpha machine, there seems to be a problem, : > here it is: : > : > 2 different threads are calling the same function : > some variables declared local as automatic in that function are corrupted : > (doesn't thread has a stack of its own) Yes, each Sybase thread has its own stack. Did you get any error messages or warnings abut your stack becoming corrupted? The default stack is approx 35K and if you have a couple of thread-safe routines that handle large structures or strings, you may corrupt your own stack. You can increase this with srv_props(). I create my Open Servers with twice the default stacksize (69632 bytes) Before you bump the stacksize... install error and message handlers if you haven't yet. Look CLOSELY at their output for any hints regarding this problem. By the way, do any of your functions walk the stack to grab arguments? Just what do you mean by some automatic variables are "corrupted?" What exactly is wrong with them? -- -- Mike Zarlenga finger zarlenga@conan.ids.net for PGP public key