On May 27, 3:39 am, anuj agarwal <[email protected]> wrote:
> I came to know that strace helps to debug. Can somebody help on this?
> Below are the last few lines of the strace output: I don't understand how to
> know because of which input this Segmentation fault occurs.
...
> *write(6, " i_pSubTrxDataRec->general_"..., 109) = 109*
> *--- SIGSEGV (Segmentation fault) @ 0 ---*

I *believe* that all you get from strace here is that the section of
your code that performed the last write function succeeded; and your
error is later in your code than that. If you have successive writes,
then it should be either before or during the next one.

As I understand strace (which is minimal) it's essentially an API
logger, which just spits out system calls that have been made.

In any case, find the section of your code that triggers the last
write, and start there.

-- 
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit our group at 
http://groups.google.com/group/linuxusersgroup
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or 
http://cdn.fsdev.net/List-Rules.pdf)

Reply via email to