Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-15-2006, 06:32 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 8

Rep: Reputation: 0
what causes getrlimit system call?

I was tracing an executable with "strace". It terminates when
getrlimit system call is generated. It gives a Segmentation fault
because i think 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 alone without strace , 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

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.

So i wanted to know whether the getrlimit is invoked by the kernel when needed.
Or is it called due to another functions.If yes then which functions are resposible for invoking this
system call so that i can trace the code.

Also with strace,application executes one statement less than that executed without strace.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
using system call ej25 Programming 9 11-30-2004 12:45 PM
new system call soul2 Linux - General 1 11-03-2004 03:41 PM
Is it possible to use system() and get the return value from the system call newguy21 Programming 1 08-11-2004 02:37 PM
getrlimit is setting soft and hard limits to -1, why? FunkMeisterMaz Programming 2 03-22-2004 07:34 AM
System call dami Linux - General 0 11-18-2003 12:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration