From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 108a70,5b8b33eabd5a00e8 X-Google-Attributes: gid108a70,public X-Google-Thread: fee84,5b8b33eabd5a00e8 X-Google-Attributes: gidfee84,public From: Brian Ceccarelli Subject: Re: Urgent Problem: Sybase Threads on OSF1 Alpha Date: 1998/05/15 Message-ID: <355C96C4.6F6@acs.ncsu.edu>#1/1 X-Deja-AN: 353601794 Content-Transfer-Encoding: 7bit References: <6ja0nl$eqt$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=us-ascii Organization: NCSU Administrative Computing Services Mime-Version: 1.0 Newsgroups: comp.databases.sybase,comp.unix.osf.osf1 c.eltawil@architel.com wrote: > > Hi, > 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) > > Anybody has ever experirnced this or has any insights. Local automatic variables are indeed on the stack and are unique to your function. Perhaps you have a memory leak elsewhere in your code. These variables may be getting stepped on by something totally unrelated. This problem may only appear on the DEC Alpha because its compiler may put things in memory differently in such a way to expose your problem. If this is an Open Server application, you may experiment by messing with the SRV_S_STACKSIZE via srv_prop(). Strange things start to happen when the stack size limit is approached. If this is a straight Open Client app, my guess is that you do indeed have a memory-stomping problem coming from who-knows-where. In either case, I'd hate to be in your shoes right now! :) Brian