[MacPorts] #57737: llvm-3.9 built with clang-3.4 segfaults when used with clang-3.9, but llvm-3.9 built with clang-3.7 works correctly

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #57737: llvm-3.9 built with clang-3.4 segfaults when used with clang-3.9, but llvm-3.9 built with clang-3.7 works correctly

MacPorts
#57737: llvm-3.9 built with clang-3.4 segfaults when used with clang-3.9, but
llvm-3.9 built with clang-3.7 works correctly
--------------------+----------------------
 Reporter:  kencu   |      Owner:  jeremyhu
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:  llvm-3.9
--------------------+----------------------
 Noticed when building newer clang versions on Leopard:
 {{{
 Date/Time:       2018-11-29 16:54:34.484 -0800
 OS Version:      Mac OS X Server 10.5.8 (9L34)
 Report Version:  6
 Anonymous UUID:  8AD195D0-D2E5-4A89-A13F-9829EBFB058B

 Exception Type:  EXC_BAD_ACCESS (SIGBUS)
 Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000001
 Crashed Thread:  0

 Thread 0 Crashed:
 0   libLLVM.dylib                       0x023066a5
 llvm::SmallPtrSetImplBase::Grow(unsigned int) + 93
 1   libLLVM.dylib                       0x02306643
 llvm::SmallPtrSetImplBase::insert_imp_big(void const*) + 139
 2   clang                               0x003dbe67
 llvm::SmallPtrSetImplBase::insert_imp(void const*) + 131
 3   clang                               0x005a7740
 llvm::SmallPtrSetImpl<clang::Decl*>::insert(clang::Decl*) + 32
 4   clang                               0x006b3b05
 clang::Sema::PushOnScopeChains(clang::NamedDecl*, clang::Scope*, bool) +
 459
 }}}

 rebuilding llvm-3.9 with clang-3.7 results in a functionally working
 system.

 So based on this, clang-3.4 was blacklisted when building llvm-3.9 or
 newer.

 My apologies, Jeremy -- I should have waited longer for you to review this
 issue before bumping the commit from the PR list.

--
Ticket URL: <https://trac.macports.org/ticket/57737>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57737: llvm-3.9 built with clang-3.4 segfaults when used with clang-3.9, but llvm-3.9 built with clang-3.7 works correctly

MacPorts
#57737: llvm-3.9 built with clang-3.4 segfaults when used with clang-3.9, but
llvm-3.9 built with clang-3.7 works correctly
-----------------------+----------------------
  Reporter:  kencu     |      Owner:  jeremyhu
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  llvm-3.9  |
-----------------------+----------------------
Changes (by kencu):

 * Attachment "clang_3.9 build with clang-3.4 bus error
 2018-11-29-165434_LeopardIntelServerVM.crash" added.


--
Ticket URL: <https://trac.macports.org/ticket/57737>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57737: llvm-3.9 built with clang-3.4 segfaults when used with clang-3.9, but llvm-3.9 built with clang-3.7 works correctly

MacPorts
In reply to this post by MacPorts
#57737: llvm-3.9 built with clang-3.4 segfaults when used with clang-3.9, but
llvm-3.9 built with clang-3.7 works correctly
-----------------------+----------------------
  Reporter:  kencu     |      Owner:  jeremyhu
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  llvm-3.9  |
-----------------------+----------------------
Description changed by kencu:

Old description:

> Noticed when building newer clang versions on Leopard:
> {{{
> Date/Time:       2018-11-29 16:54:34.484 -0800
> OS Version:      Mac OS X Server 10.5.8 (9L34)
> Report Version:  6
> Anonymous UUID:  8AD195D0-D2E5-4A89-A13F-9829EBFB058B
>
> Exception Type:  EXC_BAD_ACCESS (SIGBUS)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000001
> Crashed Thread:  0
>
> Thread 0 Crashed:
> 0   libLLVM.dylib                       0x023066a5
> llvm::SmallPtrSetImplBase::Grow(unsigned int) + 93
> 1   libLLVM.dylib                       0x02306643
> llvm::SmallPtrSetImplBase::insert_imp_big(void const*) + 139
> 2   clang                               0x003dbe67
> llvm::SmallPtrSetImplBase::insert_imp(void const*) + 131
> 3   clang                               0x005a7740
> llvm::SmallPtrSetImpl<clang::Decl*>::insert(clang::Decl*) + 32
> 4   clang                               0x006b3b05
> clang::Sema::PushOnScopeChains(clang::NamedDecl*, clang::Scope*, bool) +
> 459
> }}}
>
> rebuilding llvm-3.9 with clang-3.7 results in a functionally working
> system.
>
> So based on this, clang-3.4 was blacklisted when building llvm-3.9 or
> newer.
>
> My apologies, Jeremy -- I should have waited longer for you to review
> this issue before bumping the commit from the PR list.
New description:

 Noticed when building newer clang versions on Leopard:
 {{{
 Date/Time:       2018-11-29 16:54:34.484 -0800
 OS Version:      Mac OS X Server 10.5.8 (9L34)
 Report Version:  6
 Anonymous UUID:  8AD195D0-D2E5-4A89-A13F-9829EBFB058B

 Exception Type:  EXC_BAD_ACCESS (SIGBUS)
 Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000001
 Crashed Thread:  0

 Thread 0 Crashed:
 0   libLLVM.dylib                       0x023066a5
 llvm::SmallPtrSetImplBase::Grow(unsigned int) + 93
 1   libLLVM.dylib                       0x02306643
 llvm::SmallPtrSetImplBase::insert_imp_big(void const*) + 139
 2   clang                               0x003dbe67
 llvm::SmallPtrSetImplBase::insert_imp(void const*) + 131
 3   clang                               0x005a7740
 llvm::SmallPtrSetImpl<clang::Decl*>::insert(clang::Decl*) + 32
 4   clang                               0x006b3b05
 clang::Sema::PushOnScopeChains(clang::NamedDecl*, clang::Scope*, bool) +
 459
 }}}

 rebuilding llvm-3.9 with clang-3.7 results in a functionally working
 system.

--

--
Ticket URL: <https://trac.macports.org/ticket/57737#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works correctly (was: llvm-3.9 built with clang-3.4 segfaults when used with clang-3.9, but llvm-3.9 built with clang-3.7 works correctly)

MacPorts
In reply to this post by MacPorts
#57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works
correctly
------------------------+----------------------
  Reporter:  kencu      |      Owner:  jeremyhu
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  clang-3.9  |
------------------------+----------------------
Changes (by kencu):

 * port:  llvm-3.9 => clang-3.9


--
Ticket URL: <https://trac.macports.org/ticket/57737#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works correctly

MacPorts
In reply to this post by MacPorts
#57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works
correctly
------------------------+----------------------
  Reporter:  kencu      |      Owner:  jeremyhu
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  clang-3.9  |
------------------------+----------------------
Description changed by kencu:

Old description:

> Noticed when building newer clang versions on Leopard:
> {{{
> Date/Time:       2018-11-29 16:54:34.484 -0800
> OS Version:      Mac OS X Server 10.5.8 (9L34)
> Report Version:  6
> Anonymous UUID:  8AD195D0-D2E5-4A89-A13F-9829EBFB058B
>
> Exception Type:  EXC_BAD_ACCESS (SIGBUS)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000001
> Crashed Thread:  0
>
> Thread 0 Crashed:
> 0   libLLVM.dylib                       0x023066a5
> llvm::SmallPtrSetImplBase::Grow(unsigned int) + 93
> 1   libLLVM.dylib                       0x02306643
> llvm::SmallPtrSetImplBase::insert_imp_big(void const*) + 139
> 2   clang                               0x003dbe67
> llvm::SmallPtrSetImplBase::insert_imp(void const*) + 131
> 3   clang                               0x005a7740
> llvm::SmallPtrSetImpl<clang::Decl*>::insert(clang::Decl*) + 32
> 4   clang                               0x006b3b05
> clang::Sema::PushOnScopeChains(clang::NamedDecl*, clang::Scope*, bool) +
> 459
> }}}
>
> rebuilding llvm-3.9 with clang-3.7 results in a functionally working
> system.
New description:

 Noticed when building newer clang versions on Leopard:
 {{{
 Date/Time:       2018-11-29 16:54:34.484 -0800
 OS Version:      Mac OS X Server 10.5.8 (9L34)
 Report Version:  6
 Anonymous UUID:  8AD195D0-D2E5-4A89-A13F-9829EBFB058B

 Exception Type:  EXC_BAD_ACCESS (SIGBUS)
 Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000001
 Crashed Thread:  0

 Thread 0 Crashed:
 0   libLLVM.dylib                       0x023066a5
 llvm::SmallPtrSetImplBase::Grow(unsigned int) + 93
 1   libLLVM.dylib                       0x02306643
 llvm::SmallPtrSetImplBase::insert_imp_big(void const*) + 139
 2   clang                               0x003dbe67
 llvm::SmallPtrSetImplBase::insert_imp(void const*) + 131
 3   clang                               0x005a7740
 llvm::SmallPtrSetImpl<clang::Decl*>::insert(clang::Decl*) + 32
 4   clang                               0x006b3b05
 clang::Sema::PushOnScopeChains(clang::NamedDecl*, clang::Scope*, bool) +
 459
 }}}

 rebuilding clang-3.9 with clang-3.7 results in a functionally working
 system.

--

--
Ticket URL: <https://trac.macports.org/ticket/57737#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works correctly

MacPorts
In reply to this post by MacPorts
#57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works
correctly
------------------------+----------------------
  Reporter:  kencu      |      Owner:  jeremyhu
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  clang-3.9  |
------------------------+----------------------

Comment (by kencu):

 I rebuilt clang-3.9 with clang-3.4 and will attach the full build log, for
 any interest there may be there. Still segfaults with any use.

 {{{
 $ /opt/local/bin/clang-mp-3.9 -c ken_os_version_check_clang-6.c
 clang: error: unable to execute command: Bus error
 clang: error: clang frontend command failed due to signal (use -v to see
 invocation)
 clang version 3.9.1 (tags/RELEASE_391/final)
 Target: i386-apple-darwin9.8.0
 Thread model: posix
 InstalledDir: /opt/local/libexec/llvm-3.9/bin
 clang: note: diagnostic msg: PLEASE submit a bug report to
 http://llvm.org/bugs/ and include the crash backtrace, preprocessed
 source, and associated run script.
 clang: note: diagnostic msg:
 ********************

 PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
 Preprocessed source(s) and associated run script(s) are located at:
 clang: note: diagnostic msg:
 /var/folders/JS/JSmhNUB9HNSSCVaN+wE+XU+++TI/-Tmp-/ken_os_version_check_clang-6-af0b3d.c
 clang: note: diagnostic msg:
 /var/folders/JS/JSmhNUB9HNSSCVaN+wE+XU+++TI/-Tmp-/ken_os_version_check_clang-6-af0b3d.sh
 clang: note: diagnostic msg:
 }}}

 The blacklisting in the clang-3.9 Portfile already excludes clang-3.4, but
 as all the compilers are blacklisted, it winds up circling back to
 `gcc-4.2` on Leopard, which of course fails as it is not c++11.

 I'm not 100% certain we can automate this fully, but we could add
 clang-3.7 as a fallback compiler in the clang-3.9 Portfile.

 The LibcxxOnOlderSystems instructions already lead people to clang-3.4 and
 then clang-3.7, and then beyond, so if they follow those instructions,
 they should be good.

--
Ticket URL: <https://trac.macports.org/ticket/57737#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works correctly

MacPorts
In reply to this post by MacPorts
#57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works
correctly
------------------------+----------------------
  Reporter:  kencu      |      Owner:  jeremyhu
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  clang-3.9  |
------------------------+----------------------
Changes (by kencu):

 * Attachment "clang-3.9-built-with-clang-3.4.main.log.zip" added.

 build log clang-3.9 with clang-3.4

--
Ticket URL: <https://trac.macports.org/ticket/57737>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works correctly

MacPorts
In reply to this post by MacPorts
#57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works
correctly
------------------------+----------------------
  Reporter:  kencu      |      Owner:  jeremyhu
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:             |   Keywords:
      Port:  clang-3.9  |
------------------------+----------------------

Comment (by kencu):

 I wanted to document this here so I could refer to it in the future if
 needed. clang-3.4 is already blacklisted in building clang-3.9, so this
 can be closed.

--
Ticket URL: <https://trac.macports.org/ticket/57737#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works correctly

MacPorts
In reply to this post by MacPorts
#57737: clang-3.9 built with clang-3.4 segfaults, but built with clang-3.7 works
correctly
------------------------+----------------------
  Reporter:  kencu      |      Owner:  jeremyhu
      Type:  defect     |     Status:  closed
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:
Resolution:  fixed      |   Keywords:
      Port:  clang-3.9  |
------------------------+----------------------
Changes (by kencu):

 * status:  assigned => closed
 * resolution:   => fixed


--
Ticket URL: <https://trac.macports.org/ticket/57737#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS