LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-20-2008, 04:38 AM   #1
linuxdoniv
Member
 
Registered: Mar 2008
Posts: 63

Rep: Reputation: 15
Unhappy how to know the threads/shared libraries used by an application


Hi,

I was trying to see what are the shared libraries or threads created by youtube application. When I see /proc, I find that there is a directory corresponding to mozilla which has cmdline entry as
/bin/sh^@/usr/lib/firefox/run-mozilla.sh^@/usr/lib/firefox/firefox-bin^@
but I could not see any entry corresponding to youtube.Is the assumption Youtube is running as a thread in mozilla , correct?.Since thread is also a process, where is the entry for youtube.? Also youtube could be using multiple shared libraries/ threads. How Can I get that information.

Thanks for any help....
 
Old 03-20-2008, 07:41 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Youtube is not a program running on your system. Rather it is a webpage being displayed by mozilla. To answer your question, you can use the 'ldd' prgram to list the library dependencies of either binary programs or shared libraries. For example:
ldd /usr/lib/mozilla/mozilla-bin
libmozjs.so => not found
libplds4.so => /usr/lib/libplds4.so (0x4000c000)
libplc4.so => /usr/lib/libplc4.so (0x40010000)
libnspr4.so => /usr/lib/libnspr4.so (0x40015000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40049000)
libdl.so.2 => /lib/libdl.so.2 (0x4167d000)
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x4101a000)
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x41534000)
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x41683000)
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x415ba000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x41657000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x413be000)
libm.so.6 => /lib/libm.so.6 (0x41595000)
libstdc++.so.5 => /usr/i486-slackware-linux/lib/libstdc++.so.5 (0x42019000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x417c3000)
libc.so.6 => /lib/libc.so.6 (0x4116f000)
/lib/ld-linux.so.2 (0x41000000)
 
Old 03-23-2008, 08:16 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
"lsof" might be another useful tool here...
 
  


Reply



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
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM
mplayer: error while loading shared libraries: libdvdread.so.3: cannot open shared ob Bruce Hill Slackware 6 12-11-2003 08:34 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:15 PM.

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
Open Source Consulting | Domain Registration