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