linux system recovery after overriding connect() by "ld.so.preload"


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users linux system recovery after overriding connect() by "ld.so.preload"
# 1  
Old 07-29-2009
linux system recovery after overriding connect() by "ld.so.preload"

dear fellows;

i have used ld.so.preload file to override connect() function, dynamic library overriding, it did worked really fine ......


but i went on to struck in a situation ... within the overrided connect() i have used printf once to see IP and Port to whom the connect request is being

sent and some how when i rebooted my system to see what happens at the reboot with the overrided connect() ..... i was unable to load linux and the following

problem/error show repeatedly ....


ERROR:
---------------------------------------------------------------
init: tty1 main process (1169) terminated with status 1
init: tty1 main process ended, respawning
---------------------------------------------------------------

and the tty1 keeps changing to tty1/2/3/4/5/6.
while process no is incremented every next itteration.

can some body help me rovcover my system....

i have tried updating linux with and without bootloader updation.

Regards,

-zeeshan
# 2  
Old 07-30-2009
There must be better ways to experiment with libc than to override it globally... In any case: What distribution are you using? If it comes with busybox, booting with the kernel parameter init=/bin/bb may bring you to a minimal but usable shell. Otherwise, you'll need to boot your system with a liveCD and take out the changes you made.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

What does "force devmap reload" as in "multipath -r" means for my system and stability of my system?

Cannot present unpresented disks back again. On a test server tried this as a solution "multipath -r" and it worked. Too worried to try it in production before I know all the information. Any info would be appreciated! Also some links to the documentation on this specific issue could help a... (1 Reply)
Discussion started by: jsteppe
1 Replies

2. Red Hat

Unable to connect "Reliance Netconnect" on Redh Hat Linux 5

Hi Friends, Can someone help me with below issue , thanks. Subject : Unable to configure "Reliance NetConnect" on RHEL 5 Here some helpful information : # lsusb Bus 001 Device 001: ID 0000:0000 Bus 001 Device 002: ID 8087:0020 Bus 001 Device 003: ID 192f:0416 Bus 002 Device... (0 Replies)
Discussion started by: arunraj192
0 Replies

3. UNIX for Advanced & Expert Users

fsck.gfs2 outputs "RG recovery impossible; I can't fix this file system"

I have a CentOS release 5.2 (Final)host running kernel 2.6.18-92.el5 with at raid 10 that had two mirrored drives fail. The drives were re-inserted and now the raid shows healthy (for now). I tried to mount but got an Input/output error. I then attempted a fsck: fsck.gfs2 -y /dev/vg_01/uss_vol... (0 Replies)
Discussion started by: king_hippo
0 Replies
Login or Register to Ask a Question