build.log and emerge --info in attachment. Exit code 138 = killed by SIGBUS. Manually confirmed like so: $ ./ctags --verbose --options=NONE --fields=-T --optlib-dir=+. /Units/parser-ruby.r/simple.rb.d/optlib -o - --options=./Units/parser-ruby.r/simple.rb.d/args.ctags ./Units/parser-ruby.r/simple.rb.d/input.rb ... Reading command line arguments Get file language for ./Units/parser-ruby.r/simple.rb.d/input.rb pattern: input.rb #candidates: 1 0: Ruby (extension: "rb") #candidates after sorting and filtering: 1 0: Ruby (extension: "rb") OPENING ./Units/parser-ruby.r/simple.rb.d/input.rb as Ruby language file [new] Initialize parser: Ruby Initialize parser: RSpec Bus error Tested all versions in tree and issue is present everywhere including git master. Reproducible: Always
Created attachment 879550 [details] build.log and emerge --info
Please get a backtrace.
(In reply to Sam James from comment #2) > Please get a backtrace. (and/or ubsan bt)
Created attachment 879555 [details] bt full Example backtrace (from 9999, a4d751b)
UBSAN does catch it! Reading command line arguments Get file language for ./Units/parser-ruby.r/simple.rb.d/input.rb pattern: input.rb #candidates: 1 0: Ruby (extension: "rb") #candidates after sorting and filtering: 1 0: Ruby (extension: "rb") OPENING ./Units/parser-ruby.r/simple.rb.d/input.rb as Ruby language file [new] Initialize parser: Ruby Initialize parser: RSpec parsers/ruby.c:746:11: runtime error: member access within misaligned address 0x00015472f23c for type 'struct blockData', which requires 8 byte alignment 0x00015472f23c: note: pointer points here 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ parsers/ruby.c:755:11: runtime error: member access within misaligned address 0x00015472f23c for type 'struct blockData', which requires 8 byte alignment 0x00015472f23c: note: pointer points here 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ parsers/ruby.c:764:11: runtime error: member access within misaligned address 0x00015472f23c for type 'struct blockData', which requires 8 byte alignment 0x00015472f23c: note: pointer points here 05 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^
Fixed in https://github.com/universal-ctags/ctags/pull/3883
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58828a694155b06dd9d8c97fcd563e7e1d6a9fb4 commit 58828a694155b06dd9d8c97fcd563e7e1d6a9fb4 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-06-12 03:20:24 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-06-12 03:20:24 +0000 dev-util/ctags: backport alignment fix Closes: https://bugs.gentoo.org/920066 Bug: https://bugs.gentoo.org/919480 Signed-off-by: Sam James <sam@gentoo.org> dev-util/ctags/ctags-20230423.0-r1.ebuild | 98 ++++++++++++++++++++++ .../ctags/files/ctags-20230423.0-alignment.patch | 88 +++++++++++++++++++ 2 files changed, 186 insertions(+)