Re: segfaults
Mark Hounschell <[email protected]> Mon, 13 Jan 2003 19:08:27 -0500
| Newsgroups | gmane.linux.ngpt.user |
|---|---|
| Message-ID | <[email protected]> |
Mark Hounschell wrote: > > "Howell, David P" wrote: > > > > One additional comment, if there is no /usr/lib/libpthread.so.0 symbolic > > link to libpthread.so.22 you should be able to build it link and retry > > your APP with the same script and it should work. As for why this wasn't > > in the builds as is, a quick look shows that it's in the Makefile after > > config but is missing from ngpt.spec, so building and installing from > > the source tarball should work but building/installing the binary > > packages will have this bug. > > > > I'll post a patch for this ASAP and get it in for the next release. > > > > Dave Howell > > > > These are my opinions and not official opinions of Intel Corp. > > > > David Howell > > Intel Corporation > > Telco Server Development > > Server Products Division > > Voice: (803) 461-6112 Fax: (803) 461-6292 > > > > Intel Corporation > > Columbia Design Center, CBA-2 > > 250 Berryhill Road, Suite 100 > > Columbia, SC 29210 > > > > [email protected] > > > > -----Original Message----- > > From: Howell, David P > > Sent: Monday, January 13, 2003 9:17 AM > > To: [email protected]; [email protected] > > Subject: RE: [pthreads-users] segfaults > > > > >From the 'ldd v67' output, libpthread.so.0 was resolved to > > /lib/libpthread.so.0 (Linuxthreads). As /usr/lib/libpthread.so.22 is > > also included this will SEGFAULT (both NGPT and Linuxthreads in same > > image). > > > > With the LD_LIBRARY_PATH and LD_PRELOAD this should have been > > /usr/lib/libpthread.so.0 (NGPT), is there not a link in /usr/lib as > > libpthread.so.0 to libpthread.so.22.0.20? This is what I would have > > expected and would have resulted in a fully NGPT image. > > > > Dave Howell > > > > These are my opinions and not official opinions of Intel Corp. > > > > David Howell > > Intel Corporation > > Telco Server Development > > Server Products Division > > Voice: (803) 461-6112 Fax: (803) 461-6292 > > > > Intel Corporation > > Columbia Design Center, CBA-2 > > 250 Berryhill Road, Suite 100 > > Columbia, SC 29210 > > > > [email protected] > > > > -----Original Message----- > > From: Mark Hounschell [mailto:[email protected]] > > Sent: Saturday, January 11, 2003 2:10 PM > > To: [email protected] > > Subject: [pthreads-users] segfaults > > > > I'm running a 2.4.20 kernel on a SuSE 8.1 box. The futex-2.4.19 patch > > applied but had to make a couple changes by hand. No biggie. Built, > > installed, then rebooted the new kernel after adding the > > ngptinit command to my /etc/init.d/boot.local file and doing Then I did > > the following: > > > > rpm -Uvh ngpt-2.2.0-1.src.rpm > > rpm -ba /usr/src/packages/SPEC/ngpt.spec > > rpm -Uvh --replacefiles > > /usr/src/packages/RPMS/i386/ngpt-2.2.0-1.i386.rpm > > rpm -Uvh --replacefiles > > /usr/src/packages/RPMS/i386/ngpt-devel-2.2.0-1.i386.rpm > > > > I rebuilt the rpms because I wasn't sure what gcc rev was used. I wanted > > to make sure it was with gcc-3.2.. I tried the original rpms first with > > the same results as below. > > > > Reboot....... > > > > Then I recompiled my app. It compiled and linked ok.. Then I did.. > > > > export LD_LIBARARY_PATH="/usr/lib:/lib:$LD_LIBARARY_PATH" > > export LD_PRELOAD=libpthread.so.0 > > > > Then I ldd v67 > > harley:/home/markh/work/lcrs # ldd v67 > > libpthread.so.0 => /lib/libpthread.so.0 (0x4002b000) > > libdl.so.2 => /lib/libdl.so.2 (0x40040000) > > libpthread.so.22 => /usr/lib/libpthread.so.22 (0x40043000) > > librt.so.1 => /lib/librt.so.1 (0x400f9000) > > libm.so.6 => /lib/libm.so.6 (0x4010a000) > > libc.so.6 => /lib/libc.so.6 (0x4012d000) > > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) Ok, I figured out what I did wrong. I cut and pasted the intructions from the RELEASE notes. They mis-spelled LD_LIBARARY_PATH....... See above... I also cut and pasted what I did into the mail. I'll try this all again tomorrow.... Sorry... Thanks Mark Mark