Re: Segmentation Faults on LINUX
Posted in 2003
Hi, please try following workaround: Apparently forcing the use of the libraries in /lib instead of /lib/tls solves the problem. In order to do that a possible solution is to define the variable: export LD_ASSUME_KERNEL=2.2.5 that changes the places where ld.so searches for the libs Adding /lib to LD_LIBRARY_PATH doesn't work Andreas Jay B wrote: > > "Abhishek Mathur" <abhishek@us.ibm.com> wrote in message > news:bpin9l$bsf$1@terabinaries.xmission.com... >> >> Can you send a snippet of the ESQL/C code, that is causing the >> segmentation fault ? What is the typical statement that is causing the >> segmentation fault ? >> >> Thanks and Regards, >> Abhi. >> -------------------------------------------------------------------- >> There are 10 kinds of people,,,,, >> .... those who understand binary notations, and those who don't. >> -------------------------------------------------------------------- >> >> >> >> >> >> "\\"Jordan\\" <jordan.bruce" >> Sent by: owner-informix-list@iiug.org >> 11/19/2003 10:40 AM >> Please respond to "\\"Jordan\\" <jordan.bruce"<remove@ace.iiug.org> >> >> To: informix-list@iiug.org >> cc: >> Subject: Re: Segmentation Faults on LINUX >> >> >> Hi Scott >> >> "Scott Burns" <scott@mirrabooka.com> wrote in message >> news:f1yub.244$hX1.6718@news.optus.net.au... >> > Jordan >> > >> > >When I try to execute an .ec program a segmentation fault immediatly >> occurs. >> > >The program compiles sucessfully, but I cannot execute it. A >> segmentation >> > >fault also occurs if I fglpc -V. Anyone have any ideas on this? >> > > >> > >Red Hat 9 >> > >IDs 9.4 >> > > >> > > >> > > >> > > >> > > >> > Stock standard RH9? What version of the CSDK? What flags did you >> > compile it with? What does GDB say? >> > >> Stock Standard RH9 >> CSDK 2.81 UC2 >> GDB GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) >> snip... >> This GDB was configured as "i386-redhat-linux-gnu". >> >> I could successfully compile, but cannot run (returns segmentation >> fault). I was able to get around the _ctype_* problem with the help from >> your last post, but I'm experincing Segmentation faults even if I try to >> get the version of fglpc (fglpc -V). >> >> Should I just give up on RH9, and install Suse 8.0? Or does anyone have >> any >> insight on these Seg faults? >> >> Jordan >> >> > I've seen this and got around it with a static compile, but given what >> > problems others are having with RH9 this probably won't help you... >> > >> > -- >> > Scott Burns >> > Mirrabooka Systems >> > >> > Tel +61 7 3857 7899 >> > Fax +61 7 3857 1368 >> > >> >> >> >> >> sending to informix-list > > Even the simple 4gl "Hello World" returns seqfault > > MAIN > > DISPLAY "Hello World" > > END MAIN > > The fact that a segmentation fault happens when I try to display the > version of 4gl, tells me it's not the code in the .ec programs.