Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault #4

Open
sadegh01 opened this issue Aug 1, 2016 · 1 comment
Open

Segmentation Fault #4

sadegh01 opened this issue Aug 1, 2016 · 1 comment

Comments

@sadegh01
Copy link

sadegh01 commented Aug 1, 2016

Dear Friend
thank you for your grate effort. I wrote the "main()" into thread and I created that thread 1000 times.
it gets segmentation fault randomly.
the problem is html_parse_stream() function. But because the seg fault is random I can not follow the problem. would you please help me.

@RalfHerzog
Copy link
Contributor

Hi, please provide us more information about the error.

  • I would like to see the thread initialization and program code executing the html_parse_stream() function.
  • If it's possible (due to the number of threads), please collect a 'strace' of your program and post the point where the exception occurs.
  • BTW what is the exit code of the program?
  • Another question: Is it really necessary to create a thousand threads to produce the error? Please try to reproduce it with a smaller thread count.
  • Please have a look at your memory usage while the program runs. It could be, that your OS kills the program because there is no more free memory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants