Determine LD_PRELOAD'ed symbols. (UPDATE)

2005-04-16 Thread Marcin

Hello Hackers!,

My first post got stuck waiting for moderator, and after some investigation 
I'd like to ask a bit more substantial question on the topic anyway:

With program A ptrace'ing program B which runs with LD_PRELOAD'ed library 
libC.so,
how can i find from program A where functions from libC are located in B's 
memory?

The dump generated with LD_DUMP_REL_PRE shows only symbols which already were 
in B,
but were masked by LD_PRELOAD'ing libC.so, does it mean that other symbols 
exported 
by libC.so are unaccessible from B? If not, where to search for their locations?
Will sections in B and libC.so give any hints?

Pointers to doc/code (but please something smaller than src/libexec/rtld-elf 
;>) welcome.

-- 
m.
Brain power of a glass of water.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ext2 drives under 5.3 not umounting on reboots

2005-04-16 Thread M. Parsons
c0ldbyte wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sat, 16 Apr 2005, M. Parsons wrote:
I have a ext2 linux partition mounted under /linux via the fstab line:
/dev/ad2s1 /linux  ext2fs  rw  1   2
It will automount on bootup, but if I do a reboot or shutdown -h now, 
it doesnt get umounted properly.  In fact, if this /linux is mounted, 
then /, /usr, /var, and /tmp (all seperate ufs slices on another hard 
drive) also get tainted during a reboot.  And on the next startup I 
get the good ole: WARNING: /usr was not properly dismounted, leaving 
me to fsck the drives in single mode (which sucks, as the fbsd 
machine is a headless NAT machine). Running fsck in single mode does 
fix everything.

So whats going on here?  reboot aint properly umounting partitions, 
and fsck doesnt seem to be properly running during bootup if it 
detects tainted filesystems.

Any ideas?
Freebsd 5.3 SMP kernel.

Try this line:
/dev/ad2s1 /linux  ext2fs  rw  0   0
But remember the ext2 code has been buggy for a while and is not allways
a good choice to try and do writes on it. Might be a better choice to
change rw to ro and to also check that drive/partition for errors with
its original fsck to fix any errors if there is any then it will most
likely mount properly and umount properly.
Best of luck,
--c0ldbyte
Well, I just said screw it, backed up the files I needed, then converted 
the whole disk to UFS.  Time to wash my hands clean of linux anywas. :-)

Still sort of worried that reboot wasnt unmounting the linux drive, but 
oh well, no more worries now. :)

Mark
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ext2 drives under 5.3 not umounting on reboots

2005-04-16 Thread c0ldbyte
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sat, 16 Apr 2005, M. Parsons wrote:
I have a ext2 linux partition mounted under /linux via the fstab line:
/dev/ad2s1 /linux  ext2fs  rw  1   2
It will automount on bootup, but if I do a reboot or shutdown -h now, it 
doesnt get umounted properly.  In fact, if this /linux is mounted, then /, 
/usr, /var, and /tmp (all seperate ufs slices on another hard drive) also get 
tainted during a reboot.  And on the next startup I get the good ole: 
WARNING: /usr was not properly dismounted, leaving me to fsck the drives in 
single mode (which sucks, as the fbsd machine is a headless NAT machine). 
Running fsck in single mode does fix everything.

So whats going on here?  reboot aint properly umounting partitions, and fsck 
doesnt seem to be properly running during bootup if it detects tainted 
filesystems.

Any ideas?
Freebsd 5.3 SMP kernel.
Try this line:
/dev/ad2s1 /linux  ext2fs  rw  0   0
But remember the ext2 code has been buggy for a while and is not allways
a good choice to try and do writes on it. Might be a better choice to
change rw to ro and to also check that drive/partition for errors with
its original fsck to fix any errors if there is any then it will most
likely mount properly and umount properly.
Best of luck,
--c0ldbyte
- -- 
( When in doubt, use brute force. -- Ken Thompson 1998 )
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (FreeBSD)
Comment: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF7DF979F
Comment: Fingerprint = D1DC 0AA4 1C4E EAD4 24EB  7E77 B261 50BA F7DF 979F

iD8DBQFCYX6asmFQuvffl58RAilFAJ0RPeJHhvEJezh0qcy8lWj9we1IMwCfS7La
/SULj+UxXMfIdKv+PYf+vQ4=
=JRYg
-END PGP SIGNATURE-
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ext2 drives under 5.3 not umounting on reboots

2005-04-16 Thread M. Parsons
I have a ext2 linux partition mounted under /linux via the fstab line:
/dev/ad2s1 /linux  ext2fs  rw  1   2
It will automount on bootup, but if I do a reboot or shutdown -h now, it 
doesnt get umounted properly.  In fact, if this /linux is mounted, then 
/, /usr, /var, and /tmp (all seperate ufs slices on another hard drive) 
also get tainted during a reboot.  And on the next startup I get the 
good ole: WARNING: /usr was not properly dismounted, leaving me to fsck 
the drives in single mode (which sucks, as the fbsd machine is a 
headless NAT machine).  Running fsck in single mode does fix everything.

So whats going on here?  reboot aint properly umounting partitions, and 
fsck doesnt seem to be properly running during bootup if it detects 
tainted filesystems.

Any ideas?
Freebsd 5.3 SMP kernel.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Call for FreeBSD status reports

2005-04-16 Thread Roman Kurakin
IIRC most of reports should valid from the last call since they
wasn't published. Am I right, or we should send them again?
rik
Max Laier:
All,
as I wrote last week:
 

Submissions are due on April 15.  Thanks a lot, and we are hoping for a
big turn-out.
   

As always this is not final, but please get your reports ready by monday and 
maybe let us know that you are planing to submit.  Unfortunately we have a 
dramatically lower turn-out so far, I hope to see more reports floating in 
over the weekend.  Thanks a lot!

http://www.FreeBSD.org/news/status/
 


___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"