LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2014, 03:00 PM   #1
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Rep: Reputation: 0
preload problems


I ran the following output on pthreadw. The system to profile parallel threads.


Code:
[root@james scripts]# sudo find / -name libpthreadw.so
/home/james/Desktop/pthreadw/src/pthread/.libs/libpthreadw.so
[root@james scripts]# export LD_PRELOAD=/home/james/Desktop/pthreadw/src/pthread/.libs/libpthreadw.so
[root@james scripts]# 
[root@james scripts]# 
[root@james scripts]# echo $LD_PRELOAD
/home/james/Desktop/pthreadw/src/pthread/.libs/libpthreadw.so
[root@james scripts]# 
[root@james scripts]# 
[root@james scripts]# 
[root@james scripts]# cat pthreadw 
[pthreadw] pthreadw 0.1 profiling library
[pthreadw] Copyright (C) 2007 Christian Bienia
[pthreadw] Intercepting calls to pthread library.
[pthreadw]   Loaded 41 of 41 possible symbols.
[pthreadw] Ready.
#!/bin/sh

PTHREADW_PATH='/usr/local'

if [ -z "$1" ]; then
  echo "Usage: $(basename $0) PROGRAM [ARGS]"
fi

if [ -z "${LD_LIBRARY_PATH}" ]; then
  export LD_LIBRARY_PATH=${PTHREADW_PATH}/lib
else
  export LD_LIBRARY_PATH=${PTHREADW_PATH}/lib:${LD_LIBRARY_PATH}
fi
export LD_PRELOAD=libpthreadw.so

$@

[root@james scripts]# 
[root@james scripts]# 
[root@james scripts]# ./pthreadw  ./primes > out 
ERROR: ld.so: object 'libpthreadw.so' from LD_PRELOAD cannot be preloaded: ignored.
FATAL: Error inserting nvidia_uvm (/lib/modules/2.6.32-431.5.1.el6.x86_64/extra/nvidia-uvm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Now I am confused. I preloaded the file libthreadw.so and even included its path. I then checked the result by having LD_PRELOAD echo'ed back to me. It was there and the path was there.

When I run it the output gives me two errors (are they related?). The first is that it cannot preload libthreadw.so even though I know that it was correctly preloaded on the previous step.

Now it also gives me the second error. I do know, but I do not think that the two errors are
related.

I am also doing everything a root, so there should not be any permission problems.

What is wrong?


Any help appreciated.

Thanks in advance.


R,


jyunker
 
Old 03-11-2014, 01:44 PM   #2
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
Okay, i can answer this one myself. I came in today and tried it and it worked. I only got the error:

Code:
FATAL: Error inserting nvidia_uvm (/lib/modules/2.6.32-431.5.1.el6.x86_64/extra/nvidia-uvm.ko): Unknown symbol in module, or unknown parameter (see dmesg)

The first error is gone.

I am not sure what this error means. I have had this error on a recurring basis and I have not been able to get rid of it.

Any thoughts on where to start. I know it is involved with the NVIDIA software, but it seems that is installed properly - so it must be a little more compicated than that.

Any help appreciated.

Thanks in advance.


R,

jyunker
 
Old 03-11-2014, 01:49 PM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
What O.S. are you running?
Also post output of uname -a
 
Old 03-11-2014, 03:36 PM   #4
jyunker
Member
 
Registered: Aug 2009
Posts: 167

Original Poster
Rep: Reputation: 0
OS and uname -a

The is is Centos 6.5, 64 bit. The output from is:

uname -a
2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 12 00:41:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Anything else you need and I will gladly provide it.

R,

jyunker
 
Old 03-12-2014, 01:01 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Have you looked at dmesg?
Quote:
FATAL: Error inserting nvidia_uvm (/lib/modules/2.6.32-431.5.1.el6.x86_64/extra/nvidia-uvm.ko): Unknown symbol in module, or unknown parameter (see dmesg)
Also you say there are 2 unrelated errors please tell us what the other is.

Last edited by EDDY1; 03-12-2014 at 01:10 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
preload in slackware nivieru Slackware 3 07-20-2011 07:20 PM
Preload Applications Oxagast Linux - Software 5 04-29-2006 04:38 PM
amaroke without autostart or preload? Tom211 SUSE / openSUSE 2 01-16-2006 04:11 AM
How to preload an application? LBS Debian 1 08-04-2005 07:59 PM
Can I create a empty /etc/ld.so.preload ? michael_util Linux - Software 1 01-20-2005 07:10 PM


All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration