Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-16952

"Signal: 10 Bus error" when compile ecl code with eclcc on Mac OS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4.0
    • Component/s: eclcc
    • Labels:
      None
    • Environment:
      OS X.

      Description

      When compile a simple ecl code like "OUTPUT('Hello');" on OS X eclcc reports

      0000000E 2017-01-26 08:29:50 93415 -1 Adding library: eclrtl
      0000000F 2017-01-26 08:29:50 93415 -1 Adding source file: a.out.res.s
      00000010 2017-01-26 08:29:50 93415 -1 addSourceFile a.out.cpp
      00000011 2017-01-26 08:29:50 93415 -1 addSourceFile a.out.res.s
      00000012 2017-01-26 08:29:50 93415 -1 addLibrary eclrtl
      00000013 2017-01-26 08:29:50 93415 -1 addLibrary ccd
      00000014 2017-01-26 08:29:50 93415 -1 Compiling a.out
      00000015 2017-01-26 08:29:50 93415 -1 "/usr/bin/g++" "a.out.cpp" -fvisibility=hidden -DUSE_VISIBILITY=1 -fPIC -O0 -O3 -m64 -c "-I/opt/HPCCSystems/6.3.0/./clienttools/componentfiles/cl/include" -o "a.out.cpp.o"
      00000016 2017-01-26 08:29:50 93415 -1 "/usr/bin/g++" "a.out.res.s" -fvisibility=hidden -DUSE_VISIBILITY=1 -fPIC -O0 -O3 -m64 -c "-I/opt/HPCCSystems/6.3.0/./clienttools/componentfiles/cl/include" -o "a.out.res.s.o"
      00000017 2017-01-26 08:29:50 93415 -1 ================================================
      00000018 2017-01-26 08:29:50 93415 -1 Signal: 10 Bus error: 10
      00000019 2017-01-26 08:29:50 93415 -1 Fault IP: 000000010813014C
      0000001A 2017-01-26 08:29:50 93415 -1 Accessing: 000000010813014C
      0000001B 2017-01-26 08:29:50 93415 -1 Registers:
      0000001C 2017-01-26 08:29:50 93415 -1 EAX:000000010813014C EBX:0000000000000018 ECX:0000020000000200 EDX:0000000000000000 ESI:0000020000000303 EDI:00007FFF7DBA6738
      0000001D 2017-01-26 08:29:50 93415 -1 CS:EIP:002B:000000010813014C
      0000001E 2017-01-26 08:29:50 93415 -1 ESP:0000700000080CF8 EBP:0000700000080D20
      0000001F 2017-01-26 08:29:50 93415 -1 Stack[0000700000080CF8]: 00007FFF9F154DA7 0000000000007FFF 0000000000000000 494A031000000000 00007FD1494A0310 494A033800007FD1 00007FD1494A0338 0000000000007FD1
      00000020 2017-01-26 08:29:50 93415 -1 Stack[0000700000080D18]: 0000000000000000 00080D3000000000 0000700000080D30 8B8B9A7400007000 00007FFF8B8B9A74 00080D5000007FFF 0000700000080D50 967CDF7C00007000
      00000021 2017-01-26 08:29:50 93415 -1 Stack[0000700000080D38]: 00007FFF967CDF7C DFC1E51200007FFF EA0051A1DFC1E512 494A0310EA0051A1 00007FD1494A0310 00080DC000007FD1 0000700000080DC0 0749CD3E00007000
      00000022 2017-01-26 08:29:50 93415 -1 Stack[0000700000080D58]: 000000010749CD3E 00080E3400000001 0000000000080E34 494A060000000000 00007FD1494A0600 00080E2000007FD1 0000700000080E20 9F1533EA00007000
      00000023 2017-01-26 08:29:50 93415 -1 Stack[0000700000080D78]: 00007FFF9F1533EA 0000000000007FFF 0000000000000000 0000000000000000 0000000000000000 DFC1E51200000000 EA0051A1DFC1E512 494A0310EA0051A1
      00000024 2017-01-26 08:29:50 93415 -1 Stack[0000700000080D98]: 00007FD1494A0310 494A060000007FD1 00007FD1494A0600 DFC1E51200007FD1 EA0051A1DFC1E512 494A0330EA0051A1 00007FD1494A0330 494A033800007FD1
      00000025 2017-01-26 08:29:50 93415 -1 Stack[0000700000080DB8]: 00007FD1494A0338 00080E3000007FD1 0000700000080E30 0745A00100007000 000000010745A001 0000000000000001 0000000000000000 0000000000000000
      00000026 2017-01-26 08:29:50 93415 -1 Stack[0000700000080DD8]: 0000000000000000 494A1EC000000000 00007FD1494A1EC0 494A1F0000007FD1 00007FD1494A1F00 494A1F2000007FD1 00007FD1494A1F20 9F155E9A00007FD1
      00000027 2017-01-26 08:29:50 93415 -1 ThreadList:
      700000081000 123145302839296 4294967295: CCompilerWorker

      I can manually run following and linker command sucessfully to generate a.out executable

      "/usr/bin/g++" "a.out.cpp" -fvisibility=hidden -DUSE_VISIBILITY=1 -fPIC -O0 -O3 -m64 -c "-I/opt/HPCCSystems/6.3.0/./clienttools/componentfiles/cl/include" -o "a.out.cpp.o"
      00000016 2017-01-26 08:29:50 93415 -1 "/usr/bin/g++" "a.out.res.s" -fvisibility=hidden -DUSE_VISIBILITY=1 -fPIC -O0 -O3 -m64 -c "-I/opt/HPCCSystems/6.3.0/./clienttools/componentfiles/cl/include" -o "a.out.res.s.o"

      I tested on two different Mac systems so it is not the memory problem.
      Due to some include files missing and others the last eclcc works so far I can find is 6.0.0-1/6.0.0.2

      I am testing JIRA HPCC/15414-16930

      branch: https://github.com/xwang2713/HPCC-Platform/tree/HPCC-15414_clean_lib2
      build: http://10.240.32.242/builds/custom/JIRA/15414-16930/hpccsystems-clienttools-community_6.3.0-trunk0Darwin-x86_64.dmg

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              xwang2713 Xiaoming Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: