When running clang++ in Arch it immediately segfaults












0















I get the following output if I simply run clang++ without arguments in my terminal (Konsole). I installed Clang from the extra/clang version 7.0.1-1 package with kernel 4.19.8-arch1-1-ARCH. Other packages like gcc work fine and rebooting did not make a difference.



[overv@arch ~]$ clang++
Stack dump:
0. Program arguments: clang++
1. Compilation construction
/usr/bin/../lib/libLLVM-7.so(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2b)[0x7f41d2c5db1b]
/usr/bin/../lib/libLLVM-7.so(_ZN4llvm3sys17RunSignalHandlersEv+0x34)[0x7f41d2c5bf74]
/usr/bin/../lib/libLLVM-7.so(+0x8fd0fe)[0x7f41d2c5c0fe]
/usr/bin/../lib/libc.so.6(+0x37e00)[0x7f41d1562e00]
/usr/bin/../lib/libLLVM-7.so(_ZNSt23_Sp_counted_ptr_inplaceIN4llvm3sys2fs6detail12DirIterStateESaIS4_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info+0x1b)[0x7f41d2bb4ecb]
/usr/bin/../lib/libclangBasic.so.7(+0x1ddd04)[0x7f41d2207d04]
/usr/bin/../lib/libclangDriver.so.7(+0x114e69)[0x7f41d1b06e69]
/usr/bin/../lib/libclangDriver.so.7(+0x115de0)[0x7f41d1b07de0]
/usr/bin/../lib/libclangDriver.so.7(+0x12a895)[0x7f41d1b1c895]
/usr/bin/../lib/libclangDriver.so.7(_ZNK5clang6driver6Driver12getToolChainERKN4llvm3opt7ArgListERKNS2_6TripleE+0x34b)[0x7f41d1a5aacb]
/usr/bin/../lib/libclangDriver.so.7(_ZN5clang6driver6Driver16BuildCompilationEN4llvm8ArrayRefIPKcEE+0x7f3)[0x7f41d1a65e93]
clang++(main+0x10bc)[0x55d8d255b0ec]
/usr/bin/../lib/libc.so.6(__libc_start_main+0xf3)[0x7f41d154f223]
clang++(_start+0x2e)[0x55d8d255d5fe]
Segmentation fault (core dumped)


Is that version currently unstable to the point of being broken or did I do something wrong? How would I go about debugging this?










share|improve this question





























    0















    I get the following output if I simply run clang++ without arguments in my terminal (Konsole). I installed Clang from the extra/clang version 7.0.1-1 package with kernel 4.19.8-arch1-1-ARCH. Other packages like gcc work fine and rebooting did not make a difference.



    [overv@arch ~]$ clang++
    Stack dump:
    0. Program arguments: clang++
    1. Compilation construction
    /usr/bin/../lib/libLLVM-7.so(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2b)[0x7f41d2c5db1b]
    /usr/bin/../lib/libLLVM-7.so(_ZN4llvm3sys17RunSignalHandlersEv+0x34)[0x7f41d2c5bf74]
    /usr/bin/../lib/libLLVM-7.so(+0x8fd0fe)[0x7f41d2c5c0fe]
    /usr/bin/../lib/libc.so.6(+0x37e00)[0x7f41d1562e00]
    /usr/bin/../lib/libLLVM-7.so(_ZNSt23_Sp_counted_ptr_inplaceIN4llvm3sys2fs6detail12DirIterStateESaIS4_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info+0x1b)[0x7f41d2bb4ecb]
    /usr/bin/../lib/libclangBasic.so.7(+0x1ddd04)[0x7f41d2207d04]
    /usr/bin/../lib/libclangDriver.so.7(+0x114e69)[0x7f41d1b06e69]
    /usr/bin/../lib/libclangDriver.so.7(+0x115de0)[0x7f41d1b07de0]
    /usr/bin/../lib/libclangDriver.so.7(+0x12a895)[0x7f41d1b1c895]
    /usr/bin/../lib/libclangDriver.so.7(_ZNK5clang6driver6Driver12getToolChainERKN4llvm3opt7ArgListERKNS2_6TripleE+0x34b)[0x7f41d1a5aacb]
    /usr/bin/../lib/libclangDriver.so.7(_ZN5clang6driver6Driver16BuildCompilationEN4llvm8ArrayRefIPKcEE+0x7f3)[0x7f41d1a65e93]
    clang++(main+0x10bc)[0x55d8d255b0ec]
    /usr/bin/../lib/libc.so.6(__libc_start_main+0xf3)[0x7f41d154f223]
    clang++(_start+0x2e)[0x55d8d255d5fe]
    Segmentation fault (core dumped)


    Is that version currently unstable to the point of being broken or did I do something wrong? How would I go about debugging this?










    share|improve this question



























      0












      0








      0








      I get the following output if I simply run clang++ without arguments in my terminal (Konsole). I installed Clang from the extra/clang version 7.0.1-1 package with kernel 4.19.8-arch1-1-ARCH. Other packages like gcc work fine and rebooting did not make a difference.



      [overv@arch ~]$ clang++
      Stack dump:
      0. Program arguments: clang++
      1. Compilation construction
      /usr/bin/../lib/libLLVM-7.so(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2b)[0x7f41d2c5db1b]
      /usr/bin/../lib/libLLVM-7.so(_ZN4llvm3sys17RunSignalHandlersEv+0x34)[0x7f41d2c5bf74]
      /usr/bin/../lib/libLLVM-7.so(+0x8fd0fe)[0x7f41d2c5c0fe]
      /usr/bin/../lib/libc.so.6(+0x37e00)[0x7f41d1562e00]
      /usr/bin/../lib/libLLVM-7.so(_ZNSt23_Sp_counted_ptr_inplaceIN4llvm3sys2fs6detail12DirIterStateESaIS4_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info+0x1b)[0x7f41d2bb4ecb]
      /usr/bin/../lib/libclangBasic.so.7(+0x1ddd04)[0x7f41d2207d04]
      /usr/bin/../lib/libclangDriver.so.7(+0x114e69)[0x7f41d1b06e69]
      /usr/bin/../lib/libclangDriver.so.7(+0x115de0)[0x7f41d1b07de0]
      /usr/bin/../lib/libclangDriver.so.7(+0x12a895)[0x7f41d1b1c895]
      /usr/bin/../lib/libclangDriver.so.7(_ZNK5clang6driver6Driver12getToolChainERKN4llvm3opt7ArgListERKNS2_6TripleE+0x34b)[0x7f41d1a5aacb]
      /usr/bin/../lib/libclangDriver.so.7(_ZN5clang6driver6Driver16BuildCompilationEN4llvm8ArrayRefIPKcEE+0x7f3)[0x7f41d1a65e93]
      clang++(main+0x10bc)[0x55d8d255b0ec]
      /usr/bin/../lib/libc.so.6(__libc_start_main+0xf3)[0x7f41d154f223]
      clang++(_start+0x2e)[0x55d8d255d5fe]
      Segmentation fault (core dumped)


      Is that version currently unstable to the point of being broken or did I do something wrong? How would I go about debugging this?










      share|improve this question
















      I get the following output if I simply run clang++ without arguments in my terminal (Konsole). I installed Clang from the extra/clang version 7.0.1-1 package with kernel 4.19.8-arch1-1-ARCH. Other packages like gcc work fine and rebooting did not make a difference.



      [overv@arch ~]$ clang++
      Stack dump:
      0. Program arguments: clang++
      1. Compilation construction
      /usr/bin/../lib/libLLVM-7.so(_ZN4llvm3sys15PrintStackTraceERNS_11raw_ostreamE+0x2b)[0x7f41d2c5db1b]
      /usr/bin/../lib/libLLVM-7.so(_ZN4llvm3sys17RunSignalHandlersEv+0x34)[0x7f41d2c5bf74]
      /usr/bin/../lib/libLLVM-7.so(+0x8fd0fe)[0x7f41d2c5c0fe]
      /usr/bin/../lib/libc.so.6(+0x37e00)[0x7f41d1562e00]
      /usr/bin/../lib/libLLVM-7.so(_ZNSt23_Sp_counted_ptr_inplaceIN4llvm3sys2fs6detail12DirIterStateESaIS4_ELN9__gnu_cxx12_Lock_policyE2EE14_M_get_deleterERKSt9type_info+0x1b)[0x7f41d2bb4ecb]
      /usr/bin/../lib/libclangBasic.so.7(+0x1ddd04)[0x7f41d2207d04]
      /usr/bin/../lib/libclangDriver.so.7(+0x114e69)[0x7f41d1b06e69]
      /usr/bin/../lib/libclangDriver.so.7(+0x115de0)[0x7f41d1b07de0]
      /usr/bin/../lib/libclangDriver.so.7(+0x12a895)[0x7f41d1b1c895]
      /usr/bin/../lib/libclangDriver.so.7(_ZNK5clang6driver6Driver12getToolChainERKN4llvm3opt7ArgListERKNS2_6TripleE+0x34b)[0x7f41d1a5aacb]
      /usr/bin/../lib/libclangDriver.so.7(_ZN5clang6driver6Driver16BuildCompilationEN4llvm8ArrayRefIPKcEE+0x7f3)[0x7f41d1a65e93]
      clang++(main+0x10bc)[0x55d8d255b0ec]
      /usr/bin/../lib/libc.so.6(__libc_start_main+0xf3)[0x7f41d154f223]
      clang++(_start+0x2e)[0x55d8d255d5fe]
      Segmentation fault (core dumped)


      Is that version currently unstable to the point of being broken or did I do something wrong? How would I go about debugging this?







      linux arch-linux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 18 '18 at 1:52









      Nisse Engström

      22337




      22337










      asked Dec 17 '18 at 23:12









      OvervOverv

      270315




      270315






















          1 Answer
          1






          active

          oldest

          votes


















          1














          I fixed the problem by installing system updates including the llvm-libs package.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385384%2fwhen-running-clang-in-arch-it-immediately-segfaults%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1














            I fixed the problem by installing system updates including the llvm-libs package.






            share|improve this answer




























              1














              I fixed the problem by installing system updates including the llvm-libs package.






              share|improve this answer


























                1












                1








                1







                I fixed the problem by installing system updates including the llvm-libs package.






                share|improve this answer













                I fixed the problem by installing system updates including the llvm-libs package.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 17 '18 at 23:15









                OvervOverv

                270315




                270315






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1385384%2fwhen-running-clang-in-arch-it-immediately-segfaults%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Plaza Victoria

                    Puebla de Zaragoza

                    Musa