Re: [Ilugc] Effect of strace

2008-05-22 Thread Shuveb Hussain
Hi,

On Thu, May 22, 2008 at 2:40 PM, Deepak Pandian <[EMAIL PROTECTED]>
wrote:

>
> Thanks for the insight. I have identified and protected a race
> condition.


No problem. Glad to be of service.


> Since I am running it on a 8 MB flash system couldnt afford
> gdb for it.


Although most of the time the target Flash is pretty restrictive, I usually
have a separate, full fledged target filesystem with GDB et al, mounted over
NFS. And when you have a filesystem with all the tools you need, you
development time comes down unbelievably. My second preference would be to
use gdb-server on the target and gdb itself on a less restrictive host.

Regards,
-- 
Shuveb Hussain
B I N A R Y K A R M A
Chennai, India.
Phone : +91 44-64621656
Mobile: +91 98403-80386
http://www.binarykarma.com
___
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe  "
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Effect of strace

2008-05-22 Thread Deepak Pandian
Hi,

<[EMAIL PROTECTED]> wrote:


> Forget "strace". I have come across programs/device drivers that will stop
> working once you remove print{f|k}s added for debugging! Various delays can
> make a program work well. Is your program using a device driver you know
> might be faulty? Try GDB, my friend.


Thanks for the insight. I have identified and protected a race
condition. Since I am running it on a 8 MB flash system couldnt afford
gdb for it.

Thanks
Deepak
___
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe  "
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Effect of strace

2008-05-21 Thread Shuveb Hussain
Hi,

On Thu, May 22, 2008 at 10:44 AM, Deepak Pandian <[EMAIL PROTECTED]>
wrote:

> I am wondered whether running a  application with strace will make it
> behave differently.
>

Forget "strace". I have come across programs/device drivers that will stop
working once you remove print{f|k}s added for debugging! Various delays can
make a program work well. Is your program using a device driver you know
might be faulty? Try GDB, my friend.

Regards,
-- 
Shuveb Hussain
B I N A R Y K A R M A
Chennai, India.
Phone : +91 44-64621656
Mobile: +91 98403-80386
http://www.binarykarma.com
___
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe  "
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Effect of strace

2008-05-21 Thread Bharathi Subramanian
On Thu, 22 May 2008, Deepak Pandian wrote:

> I am wondered whether running a application with strace will make it
> behave differently.

May be. When you run the app with strace, some of critical point never
occure, due to the strace overhead/delay. Use core-dump or print to
figure out the crash point and check for the logical errors.

Bye :)
-- 
Bharathi S

___
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe  "
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


[Ilugc] Effect of strace

2008-05-21 Thread Deepak Pandian
Dear Luggies,

I am wondered whether running a  application with strace will make it
behave differently.

My application on a ARM target board crashed consistently. The odd
thing was the log file also disappears during the mishap.

So I started the application with strace and captured the output using
a serial output.
But now the application which was frequently crashing without strace
, is not crashing.

No change was there in the environment and the code. Does strace
affects the way?

Regards
Deepak.
___
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe  "
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc