• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
intercepting system calls works on tiger(10.4.5) but not on panther(10.3.9)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

intercepting system calls works on tiger(10.4.5) but not on panther(10.3.9)


  • Subject: intercepting system calls works on tiger(10.4.5) but not on panther(10.3.9)
  • From: "Puthali H.B" <email@hidden>
  • Date: Tue, 16 May 2006 23:01:40 -0600

sorry, missed filling in the subject, in my previous mail.

>>> "Puthali H.B" <email@hidden> 5/16/2006 10:58 am >>>
hi,

Don't know if this is the right list to post this query, but saw some
threads already on overriding system calls, so thought will try my
luck
here. :)

Actually I've a dynamic library which over-rides system calls, namely
connect,recv,send,sendto,accept...
and when I preload this on Tiger, using DYLD_INSERT_LIBRARIES AND
DYLD_FORCE_FLAT_NAMESPACE, everything works fine.

But when I do the same on panther, it crashes.

I wrote a sample c test program, just over-riding connect call and
compiled it as test_connect.dylib on panther, with gcc 3.3.

When I pre-loaded this library in terminal and ran FTP got the
following error-

dyld: FTP multiple definitions of symbol _connect
test_connect.dylib(ccyRQhrn.o) definition of _connect
/usr/lib/libSystem.B.dylib(connect.So) definition of _connect
Trace/BPT trap

But the same dylib works perfectly on tiger.

So I wanted to know, if I've missed out on any steps that needed to be
done in addition on panther? i.e. is over-riding system calls possible
on panther? If so any pointers in that direction will be appreciated
very much.

plus, am interested in knowing what are da major differences between
panther and tiger regarding dynamic handling? can someone give me good
links regarding this? :)

thanking in advance,
Puthali

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:


This email sent to email@hidden
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: intercepting system calls works on tiger(10.4.5) but not on panther(10.3.9)
      • From: "Peter O'Gorman" <email@hidden>
    • Re: intercepting system calls works on tiger(10.4.5) but not on panther(10.3.9)
      • From: plumber Idraulico <email@hidden>
References: 
 >hi, (From: "Puthali H.B" <email@hidden>)

  • Prev by Date: Re: StartupItems
  • Next by Date: Re: intercepting system calls works on tiger(10.4.5) but not on panther(10.3.9)
  • Previous by thread: hi,
  • Next by thread: Re: intercepting system calls works on tiger(10.4.5) but not on panther(10.3.9)
  • Index(es):
    • Date
    • Thread