-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
Bear never finishes #486
Comments
Hey @FredeEB , thanks for the report. Version < |
@rizsotto - thanks for getting back on this so promptly For reference, I let this run overnight, and when I came in the next morning and ctrl-c'd the process because it wasn't done, it had been running for ~19 hours, where a build of the code base normally takes 15-20 minutes. Do you know of anyone who's tried running bear with llvm or chromium or similar large projects? It would be interesting to see if it's this specific code base or a generic bottleneck that bear reaches at some point. I'll try and run this for llvm, and see it I can make it pass. It might be easier to debug when having something to compare it to. PS. I worked around the issue by using bear V2.4.4, however, I'd much prefer using the version available in apt, so I don't rely on a locally built version. |
@FredeEB , the 19-hours-run sounds really bad. Sorry for that! Yes, Bear is used against large projects. I did use the linux kernel as benchmark in the past.
|
@rizsotto - Thanks for the pointers.
By the way, I tried generating a CDB for llvm using bear, by having cmake generate a make based build system and run that under bear, and it worked flawlessly. Thanks for taking time out of your calendar for this. It's greatly appreciated |
Hey @FredeEB , thanks for coming back. I am not suggesting to use your build with no parallelism as a workflow. (I understand that developer productivity is an important thing.) It would be a one-shot, to debug Bear if this might be the cause of the problem. Run |
Hey @FredeEB , I've just released a new version of Bear. There is a change in this new release, which tries to fix hanging processes. Is there any chance that you can try it out? (Since I was not able to reproduce it.) |
Thanks for the heads-up @rizsotto. I haven't been able to debug the issue further (work got in the way), but I'll definitely give it a shot Thanks |
Hello again! |
Hey @FredeEB , that's a good question. There is a big chance that build runs slower with Bear. This section of the wiki explains how the tool is working. You can see that for every process executions, there is an extra process running. (Although this is a small executable, but it runs for every command your build executes.) In the past slowness was caused by a performance bottle neck (writing down the events were too slow), but this is fixed now. I presume this is a different problem. I guess there are processes which does not work with a wrapper process around them. (Probably using some IPC, which is not mock-ed properly in the wrapper.) |
I run into a similar issue while building wine with |
Describe the bug
I invoked bear with
bear -- make <make-options>
and the process is stuck in wait onTo Reproduce
Run the above command on a very large complex codebase.
Expected behavior
Bear would finish and generate a
compile_commands.json
fileEnvironment:
x86_64
3.0.18
Additional context
I need a bit of help debugging this. I've installed the version above and run it like so
The issue is that when it completes compiling, it seems like bear is just hanging.
ps -aux | grep bear | wc
yields 208 lines all related to this build, however, all processes I've tried to attach to with GDB are stuck inwait
on all threads, which seems off to me.Bear has at this point managed to generate a
compile_commands.events.json
file that's about 1.5GB, which I also understand could take a considerable amount of time to handle, although I haven't found any threads actually working towards that.The unfortunate part, is that this isn't a open-source project, so I can't share the codebase, however, I can try to find a codebase that shows the same behaviour.
Is this something anyone has seen before?
The text was updated successfully, but these errors were encountered: