public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/iains/heads/d-for-darwin)] Darwin D : Disable backtraces for Darwin for now.
@ 2021-10-15 19:34 Iain D Sandoe
  0 siblings, 0 replies; 5+ messages in thread
From: Iain D Sandoe @ 2021-10-15 19:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0c9d8f06f80a08a4ed7c757861a60bec3db1e36e

commit 0c9d8f06f80a08a4ed7c757861a60bec3db1e36e
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Dec 19 13:21:46 2020 +0000

    Darwin D : Disable backtraces for Darwin for now.
    
    It seems that there is some fault in the handling of these that
    causes the process to spin if the backtrace is attempted in most
    cases.

Diff:
---
 libphobos/libdruntime/core/runtime.d | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libphobos/libdruntime/core/runtime.d b/libphobos/libdruntime/core/runtime.d
index 5fc99046d23..77b8f466566 100644
--- a/libphobos/libdruntime/core/runtime.d
+++ b/libphobos/libdruntime/core/runtime.d
@@ -479,6 +479,9 @@ extern (C) bool runModuleUnitTests()
 
         static extern (C) void unittestSegvHandler( int signum, siginfo_t* info, void* ptr )
         {
+            version(Darwin) {}
+            else
+            {
             import core.stdc.stdio;
             fprintf(stderr, "Segmentation fault while running unittests:\n");
             fprintf(stderr, "----------------\n");
@@ -489,6 +492,7 @@ extern (C) bool runModuleUnitTests()
 
             foreach (size_t i, const(char[]) msg; bt)
                 fprintf(stderr, "%s\n", msg.ptr ? msg.ptr : "???");
+            }
         }
 
         sigaction_t action = void;
@@ -513,11 +517,15 @@ extern (C) bool runModuleUnitTests()
 
         static extern (C) void unittestSegvHandler( int signum, siginfo_t* info, void* ptr ) nothrow
         {
+            version(Darwin) {}
+            else
+            {
             static enum MAXFRAMES = 128;
             void*[MAXFRAMES]  callstack;
 
             auto numframes = backtrace( callstack.ptr, MAXFRAMES );
             backtrace_symbols_fd( callstack.ptr, numframes, 2 );
+            }
         }
 
         sigaction_t action = void;


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] Darwin D : Disable backtraces for Darwin for now.
@ 2021-10-18 15:55 Iain D Sandoe
  0 siblings, 0 replies; 5+ messages in thread
From: Iain D Sandoe @ 2021-10-18 15:55 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0f2f993aa6c78a952fc06bc6db9359d094b890ad

commit 0f2f993aa6c78a952fc06bc6db9359d094b890ad
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Dec 19 13:21:46 2020 +0000

    Darwin D : Disable backtraces for Darwin for now.
    
    It seems that there is some fault in the handling of these that
    causes the process to spin if the backtrace is attempted in most
    cases.

Diff:
---
 libphobos/libdruntime/core/runtime.d | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libphobos/libdruntime/core/runtime.d b/libphobos/libdruntime/core/runtime.d
index 5fc99046d23..77b8f466566 100644
--- a/libphobos/libdruntime/core/runtime.d
+++ b/libphobos/libdruntime/core/runtime.d
@@ -479,6 +479,9 @@ extern (C) bool runModuleUnitTests()
 
         static extern (C) void unittestSegvHandler( int signum, siginfo_t* info, void* ptr )
         {
+            version(Darwin) {}
+            else
+            {
             import core.stdc.stdio;
             fprintf(stderr, "Segmentation fault while running unittests:\n");
             fprintf(stderr, "----------------\n");
@@ -489,6 +492,7 @@ extern (C) bool runModuleUnitTests()
 
             foreach (size_t i, const(char[]) msg; bt)
                 fprintf(stderr, "%s\n", msg.ptr ? msg.ptr : "???");
+            }
         }
 
         sigaction_t action = void;
@@ -513,11 +517,15 @@ extern (C) bool runModuleUnitTests()
 
         static extern (C) void unittestSegvHandler( int signum, siginfo_t* info, void* ptr ) nothrow
         {
+            version(Darwin) {}
+            else
+            {
             static enum MAXFRAMES = 128;
             void*[MAXFRAMES]  callstack;
 
             auto numframes = backtrace( callstack.ptr, MAXFRAMES );
             backtrace_symbols_fd( callstack.ptr, numframes, 2 );
+            }
         }
 
         sigaction_t action = void;


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] Darwin D : Disable backtraces for Darwin for now.
@ 2021-10-13  8:31 Iain D Sandoe
  0 siblings, 0 replies; 5+ messages in thread
From: Iain D Sandoe @ 2021-10-13  8:31 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:842c7b21de346bbb55d2c973694b3c7f16f57465

commit 842c7b21de346bbb55d2c973694b3c7f16f57465
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Dec 19 13:21:46 2020 +0000

    Darwin D : Disable backtraces for Darwin for now.
    
    It seems that there is some fault in the handling of these that
    causes the process to spin if the backtrace is attempted in most
    cases.

Diff:
---
 libphobos/libdruntime/core/runtime.d | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libphobos/libdruntime/core/runtime.d b/libphobos/libdruntime/core/runtime.d
index 5fc99046d23..77b8f466566 100644
--- a/libphobos/libdruntime/core/runtime.d
+++ b/libphobos/libdruntime/core/runtime.d
@@ -479,6 +479,9 @@ extern (C) bool runModuleUnitTests()
 
         static extern (C) void unittestSegvHandler( int signum, siginfo_t* info, void* ptr )
         {
+            version(Darwin) {}
+            else
+            {
             import core.stdc.stdio;
             fprintf(stderr, "Segmentation fault while running unittests:\n");
             fprintf(stderr, "----------------\n");
@@ -489,6 +492,7 @@ extern (C) bool runModuleUnitTests()
 
             foreach (size_t i, const(char[]) msg; bt)
                 fprintf(stderr, "%s\n", msg.ptr ? msg.ptr : "???");
+            }
         }
 
         sigaction_t action = void;
@@ -513,11 +517,15 @@ extern (C) bool runModuleUnitTests()
 
         static extern (C) void unittestSegvHandler( int signum, siginfo_t* info, void* ptr ) nothrow
         {
+            version(Darwin) {}
+            else
+            {
             static enum MAXFRAMES = 128;
             void*[MAXFRAMES]  callstack;
 
             auto numframes = backtrace( callstack.ptr, MAXFRAMES );
             backtrace_symbols_fd( callstack.ptr, numframes, 2 );
+            }
         }
 
         sigaction_t action = void;


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] Darwin D : Disable backtraces for Darwin for now.
@ 2021-10-11 20:36 Iain D Sandoe
  0 siblings, 0 replies; 5+ messages in thread
From: Iain D Sandoe @ 2021-10-11 20:36 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6da953379bb164adcd78c3cadcefb010ca1ae863

commit 6da953379bb164adcd78c3cadcefb010ca1ae863
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Dec 19 13:21:46 2020 +0000

    Darwin D : Disable backtraces for Darwin for now.
    
    It seems that there is some fault in the handling of these that
    causes the process to spin if the backtrace is attempted in most
    cases.

Diff:
---
 libphobos/libdruntime/core/runtime.d | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libphobos/libdruntime/core/runtime.d b/libphobos/libdruntime/core/runtime.d
index 5fc99046d23..77b8f466566 100644
--- a/libphobos/libdruntime/core/runtime.d
+++ b/libphobos/libdruntime/core/runtime.d
@@ -479,6 +479,9 @@ extern (C) bool runModuleUnitTests()
 
         static extern (C) void unittestSegvHandler( int signum, siginfo_t* info, void* ptr )
         {
+            version(Darwin) {}
+            else
+            {
             import core.stdc.stdio;
             fprintf(stderr, "Segmentation fault while running unittests:\n");
             fprintf(stderr, "----------------\n");
@@ -489,6 +492,7 @@ extern (C) bool runModuleUnitTests()
 
             foreach (size_t i, const(char[]) msg; bt)
                 fprintf(stderr, "%s\n", msg.ptr ? msg.ptr : "???");
+            }
         }
 
         sigaction_t action = void;
@@ -513,11 +517,15 @@ extern (C) bool runModuleUnitTests()
 
         static extern (C) void unittestSegvHandler( int signum, siginfo_t* info, void* ptr ) nothrow
         {
+            version(Darwin) {}
+            else
+            {
             static enum MAXFRAMES = 128;
             void*[MAXFRAMES]  callstack;
 
             auto numframes = backtrace( callstack.ptr, MAXFRAMES );
             backtrace_symbols_fd( callstack.ptr, numframes, 2 );
+            }
         }
 
         sigaction_t action = void;


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [gcc(refs/users/iains/heads/d-for-darwin)] Darwin D : Disable backtraces for Darwin for now.
@ 2021-01-11 21:27 Iain D Sandoe
  0 siblings, 0 replies; 5+ messages in thread
From: Iain D Sandoe @ 2021-01-11 21:27 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cf9efaf59d0b658ee08313ca8705d938e48dac5a

commit cf9efaf59d0b658ee08313ca8705d938e48dac5a
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Sat Dec 19 13:21:46 2020 +0000

    Darwin D : Disable backtraces for Darwin for now.
    
    It seems that there is some fault in the handling of these that
    causes the process to spin if the backtrace is attempted in most
    cases.

Diff:
---
 libphobos/libdruntime/core/runtime.d | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libphobos/libdruntime/core/runtime.d b/libphobos/libdruntime/core/runtime.d
index 848b607ae69..508cc0fc563 100644
--- a/libphobos/libdruntime/core/runtime.d
+++ b/libphobos/libdruntime/core/runtime.d
@@ -479,6 +479,9 @@ extern (C) bool runModuleUnitTests()
 
         static extern (C) void unittestSegvHandler( int signum, siginfo_t* info, void* ptr )
         {
+            version(Darwin) {}
+            else
+            {
             import core.stdc.stdio;
             fprintf(stderr, "Segmentation fault while running unittests:\n");
             fprintf(stderr, "----------------\n");
@@ -497,6 +500,7 @@ extern (C) bool runModuleUnitTests()
 
             foreach (size_t i, const(char[]) msg; bt)
                 fprintf(stderr, "%s\n", msg.ptr ? msg.ptr : "???");
+            }
         }
 
         sigaction_t action = void;
@@ -521,11 +525,15 @@ extern (C) bool runModuleUnitTests()
 
         static extern (C) void unittestSegvHandler( int signum, siginfo_t* info, void* ptr ) nothrow
         {
+            version(Darwin) {}
+            else
+            {
             static enum MAXFRAMES = 128;
             void*[MAXFRAMES]  callstack;
 
             auto numframes = backtrace( callstack.ptr, MAXFRAMES );
             backtrace_symbols_fd( callstack.ptr, numframes, 2 );
+            }
         }
 
         sigaction_t action = void;


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-18 15:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15 19:34 [gcc(refs/users/iains/heads/d-for-darwin)] Darwin D : Disable backtraces for Darwin for now Iain D Sandoe
  -- strict thread matches above, loose matches on Subject: below --
2021-10-18 15:55 Iain D Sandoe
2021-10-13  8:31 Iain D Sandoe
2021-10-11 20:36 Iain D Sandoe
2021-01-11 21:27 Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).