What calls getrlimit ?

Submitted by unclesam
on February 12, 2006 - 4:33am

Hi
I was tracing an executable with "strace". It terminates when getrlimit system call is generated. It gives a Segmentation fault because the ceiling limit provided is crossed by the application. SIGSEGV signal is generated.

I will explain in brief how it goes ::

1. When the application is run, it is executed upto the statement before when the shared object is actually needed because i am calling a function which is imported from a shared object.

2. when the statement containing the symbol imported from shared object is executed it gives an error symbol_lookup error.

3. when i trace the program with "strace" it terminates giving Segmentation Fault just after getrlimit system call.

4. So i wanted to know whether the getrlimit is invoked by the kernel when needed. Or is it called through another functions. If yes then which functions invoke this system call ( i should get it so that i can trace the code ).

Is this homework?

Anonymous (not verified)
on
February 12, 2006 - 5:38am

Is this homework?

just a Suggestion !!

unclesam
on
February 13, 2006 - 12:22am

Yes it is homework if you cannot answer it ?

I agree that you might not be having time to answer my question, but atleast during you one sentence reply you could have replied with your name. Why anonymous message ?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.