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

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.