Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8808435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:37:21+00:00 2026-06-14T02:37:21+00:00

I developed a program which create a thread at the beginning. And then I

  • 0

I developed a program which create a thread at the beginning. And then I want to kill the thread with pthread_cancel() when the thread is running.

BUt if I do this I get a crash. this crash is not always reproduced. some time the program avoid the crash.

I see some where that pthread_cancel() could cause a crash if the cancelled thread is running a system call. is it truth ?

dmesg shows the following error

myprogramd[1965]: segfault at c ip b76cdef3 sp bfcd5780 error 4 in libpthread-0.9.30.1.so[b76c6000+a000]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:37:23+00:00Added an answer on June 14, 2026 at 2:37 am

    the crash is related to the manager thread. the manager thread is not properly killed in the first launch so in the second launch when creeating new pthread the old thread manager will cause a crash.

    Refer to the following question for more details

    How to kill the management thread with C?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a program (C#) which creates a SQL database using this code:
I developed a program which after every two minutes call db to check new
i have recently developed a list program in android in which there is an
I have enrolled in the iOS developer's program. I've developed an app which I
Hello fellow software developers. I want to distribute a C program which is scriptable
we have a very old windows program which developed with c# and with every
I have developed a program in Octave to which I would like to add
I have a program for which I have developed a user guide. I have
I have developed a program which uses SQLite 3.7 ... database, in it there
I have developed a program in iphone which manage cards, the main functionality is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.