From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1152b892be8c1cf,start X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,1152b892be8c1cf,start X-Google-Attributes: gid1164f8,public From: GabeJones@my-dejanews.com Subject: Tracking down stack corruption Date: 1999/02/03 Message-ID: <79ahnb$43q$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 440328265 X-Http-Proxy: 1.1 x13.dejanews.com:80 (Squid/1.1.22) for client 205.229.142.194 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Wed Feb 03 22:14:10 1999 GMT Newsgroups: comp.unix.osf.osf1,comp.sys.dec X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT) I have been trying to eliminate this bug for weeks, and I'm about at wits' end. Here's the scenario: I am porting a program from Digital UNIX 3.2G to 4.0D. The application is multithreaded and has been updated to the new pthread interface in 4.0. However, it crashes with a SEGV soon after startup. I have run it through the debugger repeatedly, and the crash appears at the same place every time. There seems to be stack corruption, however--the functions as shown by ladebug are out of order. I've tried Third Degree and Insure++, but they weren't too helpful in tracking down the source of this corruption. I tried increasing (greatly) the thread stack & guard size, but to no avail. What are some good steps to take when debugging a stack corruption problem? Thanks in advance for any pointers. Gabe Jones Software engineer, SkyTel Communications, Inc. gjones@atc.skytel.com -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own