Search:

Type: Posts; User: pooyair

Search: Search took 0.00 seconds.

  1. using gdb , ignore begining segmentation fault untill reporduce enviroment segmentati

    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...
  2. @ledow your article in your blog , was very...

    @ledow

    your article in your blog , was very helpful for me , Big thanks
    Best wishes for u
  3. @ledow first , thanks for reply, Well i knew ,...

    @ledow
    first , thanks for reply,
    Well i knew , that i could use curl lib ... the reason that i had created this thread was mostly to get better idea as mine , i am looking for any algorithms on...
  4. @qny , though , i did not ask about advice ( i...

    @qny , though , i did not ask about advice ( i was talked about idea , techinical solution ) , but tnx for posting your social advice!

    @all
    does anybody know , any sample link , example code in c...
  5. control your application whenever u decide, make it not working anymore

    i want to add some lines of code , which make it possible , whenever i want my application not work anymore (my application is connecting via internet) so i have idea for this purpose , i could...
  6. before obtaining pthread_getspecific ... Well I...

    before obtaining pthread_getspecific ... Well I found a hacky fix to check if ptr is zero with usleep , this is not the best solution , but this workarround , prevent that segment fault so far....
  7. Yes , i think , pthread_getspecific is the case...

    Yes , i think , pthread_getspecific is the case ...
    also in man page (qoute from here) :


    Since ptr previously might be destroyed (so using if (ptr != 0) ) could not fix the problem , Does...
  8. check the value return by struct s_client to a pointer not be zero?

    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...
  9. @Salem Found it , You Are So Right , Thanks For...

    @Salem
    Found it , You Are So Right , Thanks For your Perfect Troubleshooting (the way u troubleshoot , Shows me , how Professional u are ... ) The bug was Exactly as what u expected (told me) . in...
  10. @Salem Thank u so much for reply , Well , i just...

    @Salem
    Thank u so much for reply , Well , i just relook into get_cw code , but can't find anything wrong , i quote get_cw related codes , probably there is an issue i missed , would appreciate if u...
  11. segment-fault happens when use pthread_mutex_trylock

    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 codes....
Results 1 to 11 of 11