Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for sigpanic0 (0.15 sec)

  1. src/runtime/signal_windows.go

    	// won't get to see who faulted.)
    	// Also don't push a sigpanic frame if the faulting PC
    	// is the entry of asyncPreempt. In this case, we suspended
    	// the thread right between the fault and the exception handler
    	// starting to run, and we have pushed an asyncPreempt call.
    	// The exception is not from asyncPreempt, so not to push a
    	// sigpanic call to make it look like that. Instead, just
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  2. src/runtime/stubs.go

    func addmoduledata()
    
    // Injected by the signal handler for panicking signals.
    // Initializes any registers that have fixed meaning at calls but
    // are scratch in bodies and calls sigpanic.
    // On many platforms it just jumps to sigpanic.
    func sigpanic0()
    
    // intArgRegs is used by the various register assignment
    // algorithm implementations in the runtime. These include:.
    // - Finalizers (mfinal.go)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  3. src/runtime/signal_unix.go

    // instead.
    //
    // This must NOT be nosplit because the linker doesn't know where
    // sigpanic calls can be injected.
    //
    // The signal handler must not inject a call to sigpanic if
    // getg().throwsplit, since sigpanic may need to grow the stack.
    //
    // This is exported via linkname to assembly in runtime/cgo.
    //
    //go:linkname sigpanic
    func sigpanic() {
    	gp := getg()
    	if !canpanic() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  4. src/runtime/panic.go

    		return false
    	}
    	releasem(mp)
    	return true
    }
    
    // shouldPushSigpanic reports whether pc should be used as sigpanic's
    // return PC (pushing a frame for the call). Otherwise, it should be
    // left alone so that LR is used as sigpanic's return PC, effectively
    // replacing the top-most frame with sigpanic. This is used by
    // preparePanic.
    func shouldPushSigpanic(gp *g, pc, lr uintptr) bool {
    	if pc == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  5. src/runtime/crash_cgo_test.go

    	}
    }
    
    func TestCgoTracebackSigpanic(t *testing.T) {
    	// Test unwinding over a sigpanic in C code without a C
    	// symbolizer. See issue #23576.
    	if runtime.GOOS == "windows" {
    		// On Windows if we get an exception in C code, we let
    		// the Windows exception handler unwind it, rather
    		// than injecting a sigpanic.
    		t.Skip("no sigpanic in C on windows")
    	}
    	if runtime.GOOS == "ios" {
    		testenv.SkipFlaky(t, 59912)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  6. src/runtime/callers_test.go

    	// at runtime.sigpanic, because non-open-coded defers (which may be used in
    	// non-opt or race checker mode) include an extra 'deferreturn' frame (which is
    	// where the nil pointer deref happens).
    	state := 1
    	want := []string{"runtime.Callers", "runtime_test.TestCallersDeferNilFuncPanic.func1",
    		"runtime.gopanic", "runtime.panicmem", "runtime.sigpanic"}
    
    	defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 21:36:31 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/wasm/wasmobj.go

    			pc++
    			if p.To.Sym == sigpanic {
    				// The panic stack trace expects the PC at the call of sigpanic,
    				// not the next one. However, runtime.Caller subtracts 1 from the
    				// PC. To make both PC and PC-1 work (have the same line number),
    				// we advance the PC by 2 at sigpanic.
    				pc++
    			}
    		}
    	}
    	tableIdxs = append(tableIdxs, uint64(numResumePoints))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  8. src/runtime/sigtab_aix.go

    	_SIGABRT:    {_SigNotify + _SigThrow, "SIGABRT: abort"},
    	_SIGBUS:     {_SigPanic + _SigUnblock, "SIGBUS: bus error"},
    	_SIGFPE:     {_SigPanic + _SigUnblock, "SIGFPE: floating-point exception"},
    	_SIGKILL:    {0, "SIGKILL: kill"},
    	_SIGUSR1:    {_SigNotify, "SIGUSR1: user-defined signal 1"},
    	_SIGSEGV:    {_SigPanic + _SigUnblock, "SIGSEGV: segmentation violation"},
    	_SIGUSR2:    {_SigNotify, "SIGUSR2: user-defined signal 2"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 03 20:58:16 UTC 2018
    - 11.3K bytes
    - Viewed (0)
  9. src/runtime/stack_test.go

    //go:noinline
    func testDeferLeafSigpanic1() {
    	// Cause a sigpanic to be injected in this frame.
    	//
    	// This function has to be declared before
    	// TestDeferLeafSigpanic so the runtime will crash if we think
    	// this function's continuation PC is in
    	// TestDeferLeafSigpanic.
    	*(*int)(nil) = 0
    }
    
    // TestDeferLeafSigpanic tests defer matching around leaf functions
    // that sigpanic. This is tricky because on LR machines the outer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  10. src/runtime/stkframe.go

    	//   and this is the return PC (just after the CALL
    	//   instruction). In this case, pc-1 reflects the CALL
    	//   instruction itself and is the correct source of symbolic
    	//   information.
    	//
    	// - If this frame "called" sigpanic, then pc is the
    	//   instruction that panicked, and pc is the correct address
    	//   to use for symbolic information.
    	//
    	// - If this is the innermost frame, then PC is where
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top