Closed dillera closed 12 years ago
Please take note of this wiki https://github.com/mxcl/homebrew/wiki/Reporting-Bugs and use gist for terminal output. Don't trim anything. You never know what we need. Please give us the simplest reproducible series of steps that will always lead to this crash. Because we are able to build weechat with the formula in #11859 the crash you are having is likely an upstream issue. Please also test out weechat doing the thing you normally do, like irc or w/e. We'd like to know how well it works along with the crash info.
Thanks, I will update this issue soon. I am able to build weechat from raw source, and I don't have the above issue when I quit, so I'll do some more investigation. I'm not using cmake when i build by hand.
It's possible that their configure
script is superior to their cmake
script. Because I'm still trying to debug the problem with weechat's Ruby bindings, I was considering switching to configure. I think I had this error where it crashes on exit, if that's what was happening.
Also, the difficulty here is that brew BUILDS weechat without any issues... the error only occurs when quitting the application. So, it's not a recipe issue in the sense of breaking the build, but more in the sense of not building the binary optimally.
Built with the basic configure (and disabling perl) it builds, runs and quits without incident.
Following your analysis and confirming it with gdb, I've crafted a new formula that uses configure and disabled the perl plugin to stop the segfaults. I think I've cracked the problems, and it builds much better. Thanks for your report.
==> Installing weechat ==> Downloading http://www.weechat.org/files/src/weechat-0.3.7.tar.bz2
100.0%
==> cmake -DPREFIX=/usr/local/Cellar/weechat/0.3.7 -DENABLE_RUBY=OFF -DENABLE_PERL=OFF -DENABLE_PYTHON=OFF -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/weechat/0.3.7' -DC
[weechat is built ok]....
[run wechat]
[quit weechat] -- error below, which removes all configured changes to weechat, making it unusable for all normal purposes.
======= WeeChat backtrace ======= (written by weechat 0.3.7, compiled on May 4 2012 11:35:10) sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found 004 3 ??? 0x00000001025f2030 0x0 + 4334755888 sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found sh: addr2line: command not found 016 15 ??? 0x0000000000000001 0x0 + 1 ======= End of backtrace ======= Abort trap: 6
I installed binutils, which should have the addr2line but for some reason binutils doesn't include this command?
Does anyone know where/how to get addr2line? Edit: realize that addr2line isn't going to work for Darwin, and it's just trying to help w/ the id for the error, it's not related to the error/issue itself.