1. rpm -iUvh ElectricFence-2.2.2-5.i386.rpm 2. make sure that /usr/lib/libefence.a is there now.
3. gcc -Wl,-E tclstub8x.o stamp.o adp.o adpfancy.o auth.o binder.o cache.o callbacks.o config.o conn.o crypt.o dbdrv.o dbinit.o dbtcl.o dbutil.o dns.o drv.o dstring.o exec.o fastpath.o fd.o filter.o httptime.o htuu.o id.o index.o keepalive.o lisp.o listen.o log.o main.o mimetypes.o modload.o nsconf.o nsmain.o nsthread.o op.o pathname.o pidfile.o proc.o quotehtml.o random.o request.o return.o rollfile.o sched.o serv.o set.o sock.o sockcallback.o str.o tclcmds.o tclconf.o tclenv.o tclfile.o tclinit.o tclmisc.o tclop.o tclresp.o tclsched.o tclset.o tclsock.o tclstats.o tclxkeylist.o tclthread.o tclvar.o unix.o url.o urlencode.o urlopen.o urlspace.o -lefence ../tcl8.3.2/unix/libtcl8.3g.a ./thread/libnsthread.a -ldl -lpthread -lm -lefence -o nsd8x (did a double linking of -lefence to make sure that malloc/free calls are caught by the libefence routines and then all symbols resolved). 4. run under gdb and watch it seg. fault at the offending statement. (sorry for the late response - took the weekend off). Sanju. -----Original Message----- From: AOLserver Discussion [mailto:[EMAIL PROTECTED]]On Behalf Of Jerry Asher Sent: Saturday, October 27, 2001 7:36 PM To: [EMAIL PROTECTED] Subject: Re: [AOLSERVER] Resolution! RE: [AOLSERVER] segmentation violation: gdb stack trace WAS RE: [AOLSERVER] Trying to debug a C module? At 01:32 PM 10/27/01, you wrote: >Thanks to the weekly chat on AOLServer hosted every Thursday: > >* used libefence to locate a large for loop with an for loop that was >populating a malloc structure, that was causing access to unallocated >memory. Can you expand on that a bit. What was involved in linking libefence in? Thanks, Jerry ======================================================== Jerry Asher [EMAIL PROTECTED] 1678 Shattuck Avenue Suite 161 Tel: (510) 549-2980 Berkeley, CA 94709 Fax: (877) 311-8688
