Tobias DiPasquale on 10 Dec 2004 15:39:01 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] what could be broken?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Dec 10, 2004, at 9:33 AM, Andy Libby wrote:
Then check the file output for occurences of libmagic*. I did this on my
Mandrake 10 system, and didn't find any occurences of dlopen (which is
the system call an app would use to dynamicly load a shared library which
would not be listed by ldd).

dlopen(3) is not a system call. The system call associated with dynamically loading a shared library is mmap(2) or old_mmap(2), depending on your kernel and glibc version. Anything in section 3 of the man pages is a library call. Section 2 contains system calls.


Additionally, I didn't find any occurences of
libmagic. I did verify that libmagic is installed on my machine though.

This is the real indicator that the library was not being loaded.

Sometimes strace helps demystify things. It's also a hoot to learn about
system calls that I've never heard of (which usually happens when I run
strace).

Yes it is ;-)

- --
Tobias DiPasquale
7A79 308C 0354 EA9C 7807  ED83 03C9 9E01 148E 7D01
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (Darwin)

iD8DBQFBucL6A8meARSOfQERAhGrAKCg3rpdwhuQFy8t2V4tMSkQv22lVQCfV+0Q
kvTanPXLmdBryLjBuGfSYA8=
=2Itc
-----END PGP SIGNATURE-----

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug