{"action":"created","issue":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/1931","repository_url":"https://api.github.com/repos/ldc-developers/ldc","labels_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1931/labels{/name}","comments_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1931/comments","events_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1931/events","html_url":"https://github.com/ldc-developers/ldc/issues/1931","id":196346633,"number":1931,"title":"Segfault bootstrapping on aarch64","user":{"login":"markos","id":476119,"avatar_url":"https://avatars.githubusercontent.com/u/476119?v=3","gravatar_id":"","url":"https://api.github.com/users/markos","html_url":"https://github.com/markos","followers_url":"https://api.github.com/users/markos/followers","following_url":"https://api.github.com/users/markos/following{/other_user}","gists_url":"https://api.github.com/users/markos/gists{/gist_id}","starred_url":"https://api.github.com/users/markos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markos/subscriptions","organizations_url":"https://api.github.com/users/markos/orgs","repos_url":"https://api.github.com/users/markos/repos","events_url":"https://api.github.com/users/markos/events{/privacy}","received_events_url":"https://api.github.com/users/markos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-19T07:19:54Z","updated_at":"2016-12-19T11:09:14Z","closed_at":null,"body":"After bootstrapping successfully from the latest ltsmaster on debian/arm64 (unstable), I tried to build the latest 1.1.0+b6 package. Tried with both llvm-3.8 (default for the package) and llvm-3.9 (in case it contained fixes for arm64), bootstrap fails eventually at this point:\r\n\r\n```\r\n# cd /root/ldc-1.1.0+b6 && /root/ldc-1.1.0+b6/build-static/bin/ldc2 --output-o -c -I/root/ldc-1.1.0+b6/runtime/druntime/src -I/root/ldc-1.1.0+b6/runtime/druntime/src/gc /root/ldc-1.1.0+b6/runtime/phobos/std/array.d -of/root/ldc-1.1.0+b6/build-static/runtime/std/array-debug.o -g -link-debuglib -I/root/ldc-1.1.0+b6/runtime/phobos -v-cg\r\n0  libLLVM-3.9.so.1 0x0000ffff7f580f44 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 52\r\nSegmentation fault\r\nroot@sirius:~/ldc-1.1.0+b6# gdb /root/ldc-1.1.0+b6/build-static/bin/ldc2\r\nGNU gdb (Debian 7.12-4) 7.12\r\nCopyright (C) 2016 Free Software Foundation, Inc.\r\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\r\nThis is free software: you are free to change and redistribute it.\r\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\r\nand \"show warranty\" for details.\r\nThis GDB was configured as \"aarch64-linux-gnu\".\r\nType \"show configuration\" for configuration details.\r\nFor bug reporting instructions, please see:\r\n<http://www.gnu.org/software/gdb/bugs/>.\r\nFind the GDB manual and other documentation resources online at:\r\n<http://www.gnu.org/software/gdb/documentation/>.\r\nFor help, type \"help\".\r\nType \"apropos word\" to search for commands related to \"word\"...\r\nReading symbols from /root/ldc-1.1.0+b6/build-static/bin/ldc2...done.\r\n(gdb) run --output-o -c -I/root/ldc-1.1.0+b6/runtime/druntime/src -I/root/ldc-1.1.0+b6/runtime/druntime/src/gc /root/ldc-1.1.0+b6/runtime/phobos/std/array.d -of/root/ldc-1.1.0+b6/build-static/runtime/std/array-debug.o -g -link-debuglib -I/root/ldc-1.1.0+b6/runtime/phobos\r\nStarting program: /root/ldc-1.1.0+b6/build-static/bin/ldc2 --output-o -c -I/root/ldc-1.1.0+b6/runtime/druntime/src -I/root/ldc-1.1.0+b6/runtime/druntime/src/gc /root/ldc-1.1.0+b6/runtime/phobos/std/array.d -of/root/ldc-1.1.0+b6/build-static/runtime/std/array-debug.o -g -link-debuglib -I/root/ldc-1.1.0+b6/runtime/phobos\r\n[Thread debugging using libthread_db enabled]\r\nUsing host libthread_db library \"/lib/aarch64-linux-gnu/libthread_db.so.1\".\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n_IO_vsnprintf (string=0xaaaaab009360 \"\", maxlen=<optimized out>, format=0xaaaaaae92157 \"__unittestL%u_\", args=<error reading variable: Cannot access memory at address 0x111>) at vsnprintf.c:114\r\n114\tvsnprintf.c: No such file or directory.\r\n(gdb) where\r\n#0  _IO_vsnprintf (string=0xaaaaab009360 \"\", maxlen=<optimized out>, format=0xaaaaaae92157 \"__unittestL%u_\", args=<error reading variable: Cannot access memory at address 0x111>) at vsnprintf.c:114\r\n#1  0x0000aaaaaacbf248 in OutBuffer::vprintf(char const*, std::__va_list) ()\r\n#2  0x0000aaaaaac389bc in OutBuffer::printf(char const*, ...) ()\r\n#3  0x0000aaaaaad0bd40 in unitTestId(Loc) ()\r\n#4  0x0000aaaaaac263c0 in ddmd.parse.Parser.parseDeclDefs(int, ddmd.dsymbol.Dsymbol*, ddmd.parse.PrefixAttributes*) ()\r\n#5  0x0000aaaaaac2538c in ddmd.parse.Parser.parseDeclDefs(int, ddmd.dsymbol.Dsymbol*, ddmd.parse.PrefixAttributes*) ()\r\n#6  0x0000aaaaaac2538c in ddmd.parse.Parser.parseDeclDefs(int, ddmd.dsymbol.Dsymbol*, ddmd.parse.PrefixAttributes*) ()\r\n#7  0x0000aaaaaac2538c in ddmd.parse.Parser.parseDeclDefs(int, ddmd.dsymbol.Dsymbol*, ddmd.parse.PrefixAttributes*) ()\r\n#8  0x0000aaaaaac93008 in ddmd.parse.Parser.parseModule() ()\r\n#9  0x0000aaaaaac916cc in Module::parse() ()\r\n#10 0x0000aaaaaad302e8 in mars_mainBody(Array<char const*>&, Array<char const*>&) ()\r\n#11 0x0000aaaaaae2d49c in cppmain (argc=<optimized out>, argv=<optimized out>) at ./driver/main.cpp:1101\r\n#12 0x0000aaaaaae77dac in rt.dmain2._d_run_main(int, char**, extern(C) int(char[][]) function).runAll().__lambda1() ()\r\n#13 0x0000aaaaaae77d64 in rt.dmain2._d_run_main(int, char**, extern(C) int(char[][]) function).tryExec(scope void() delegate) ()\r\n#14 0x0000aaaaaae77c68 in _d_run_main ()\r\n#15 0x0000ffffb5506364 in __libc_start_main (main=0x0, argc=0, argv=0x0, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=<optimized out>) at libc-start.c:291\r\n#16 0x0000aaaaaabf4238 in _start ()\r\nBacktrace stopped: previous frame identical to this frame (corrupt stack?)\r\n```"},"comment":{"url":"https://api.github.com/repos/ldc-developers/ldc/issues/comments/267939203","html_url":"https://github.com/ldc-developers/ldc/issues/1931#issuecomment-267939203","issue_url":"https://api.github.com/repos/ldc-developers/ldc/issues/1931","id":267939203,"user":{"login":"markos","id":476119,"avatar_url":"https://avatars.githubusercontent.com/u/476119?v=3","gravatar_id":"","url":"https://api.github.com/users/markos","html_url":"https://github.com/markos","followers_url":"https://api.github.com/users/markos/followers","following_url":"https://api.github.com/users/markos/following{/other_user}","gists_url":"https://api.github.com/users/markos/gists{/gist_id}","starred_url":"https://api.github.com/users/markos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markos/subscriptions","organizations_url":"https://api.github.com/users/markos/orgs","repos_url":"https://api.github.com/users/markos/repos","events_url":"https://api.github.com/users/markos/events{/privacy}","received_events_url":"https://api.github.com/users/markos/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T11:09:14Z","updated_at":"2016-12-19T11:09:14Z","body":"Any suggestions on how/what to fix?"}}
{"actor":{"display_login":"markos"}}