Search Results

Search: Posts Made By: pooyair
Forum: Programming 10-13-2012
7,662
Posted By pooyair
@Jim The os is Stlinux (Cpu Sh4) . Welcome! |...
@Jim
The os is Stlinux (Cpu Sh4) . Welcome! | STLinux (http://stlinux.com/) and it run with busybox.
2.6.23.17
in this article it says , about kernel debugging with stlinux :
Debugging the...
Forum: Programming 10-12-2012
7,662
Posted By pooyair
Thanks for replies 1. As explained in first...
Thanks for replies

1. As explained in first post of thread , using normal gdb backtrace comand could not helpful , since i know Segmentation fault log , my question is not how i could catch the...
Forum: Programming 10-12-2012
7,662
Posted By pooyair
Using gdb, ignore beginning segmentation fault until reproduce environment segmentation fault
I use a binary name (ie polo) it gets some parameter , so for debugging normally i do this :

i wrote script for watchdog my app (polo) and check every second if it's not running then...
Forum: Programming 09-14-2012
1,331
Posted By pooyair
Check The value a pointer returned by struct s_client != 0
Hi guys ,
i got segment fault , and when i trace , found it happens since the value of pointer which is returned by Struct S_client (*ptr) is zero

if (ptr !=0)i know , adding above line of...
Forum: Programming 09-13-2012
4,595
Posted By pooyair
Edit : found it , yes as u said there was null...
Edit : found it , yes as u said there was null pointer passing. Thanks
Forum: Programming 09-13-2012
4,595
Posted By pooyair
Segment-fault handling for pthreads
Hi
I have struggling a week to fix a program , in the begining i got SIGBUS , but after many attempts still the program gets SIGSEGV segment fault , In bellow i post the seg fault log + source...
5,296
Posted By pooyair
ok, as told before , after trying to ask or find...
ok, as told before , after trying to ask or find alternative for sleep which use less memory without any succeed , i decided to delete sleep (or ping ,... ) and run script with while [1]...
5,296
Posted By pooyair
solved
solved
5,296
Posted By pooyair
Thanks both guys for reply. alister , u are...
Thanks both guys for reply.
alister , u are right , ping not save any memory even it use a bit more than sleep. (i tested it) .
5,296
Posted By pooyair
expert , alternative for sleep not use memory
while sleep 1; do
pgrep Polo || {
kill `pidof Polo` >/dev/null

/var/bin/polo_start.sh start &
echo `date` R >> /var/log/Check_Polo .log
}
done
exit 0well ,...
2,570
Posted By pooyair
works perfect, thanks so it must be best one...
works perfect, thanks
so it must be best one for min resource
Best wishes
2,570
Posted By pooyair
pgrep command is unknown in sh4 any other way...
pgrep command is unknown in sh4
any other way please?
or any fix on my code to use minimum resource? (ie is that echo "" the best way ( use min resource) to do nothing
2,570
Posted By pooyair
thanks for reply Stlinux (stapi) Sh4 Linux...
thanks for reply
Stlinux (stapi)
Sh4
Linux version 2.6.23.17_stm23_A21-slobbie
2,570
Posted By pooyair
script use min resource (ps x |grep |grep)
Hi
i wrote script use it as watchdog ( i mean it check another program (pooya) whenever that was killed (closed or crashed) it run another script (pooya_start.sh) to start it,
this script work fine...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 12:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy