Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for sigpanic0 (0.17 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/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)
  8. src/runtime/os_plan9.go

    func nsec(*int64) int64
    
    //go:noescape
    func sigtramp(ureg, note unsafe.Pointer)
    
    func setfpmasks()
    
    //go:noescape
    func tstart_plan9(newm *m)
    
    func errstr() string
    
    type _Plink uintptr
    
    func sigpanic() {
    	gp := getg()
    	if !canpanic() {
    		throw("unexpected signal during runtime execution")
    	}
    
    	note := gostringnocopy((*byte)(unsafe.Pointer(gp.m.notesig)))
    	switch gp.sig {
    	case _SIGRFAULT, _SIGWFAULT:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. src/runtime/traceback_test.go

    		// Check a simple case of inlining
    		r := ttiSimple1()
    		check(t, r, "runtime_test.ttiSimple3(...)", "runtime_test.ttiSimple2(...)", "runtime_test.ttiSimple1()")
    	})
    
    	t.Run("sigpanic", func(t *testing.T) {
    		// Check that sigpanic from an inlined function prints correctly
    		r := ttiSigpanic1()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 22.9K bytes
    - Viewed (0)
  10. src/runtime/debuglog.go

    func printDebugLogPC(pc uintptr, returnPC bool) {
    	fn := findfunc(pc)
    	if returnPC && (!fn.valid() || pc > fn.entry()) {
    		// TODO(austin): Don't back up if the previous frame
    		// was a sigpanic.
    		pc--
    	}
    
    	print(hex(pc))
    	if !fn.valid() {
    		print(" [unknown PC]")
    	} else {
    		name := funcname(fn)
    		file, line := funcline(fn, pc)
    		print(" [", name, "+", hex(pc-fn.entry()),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 18.3K bytes
    - Viewed (0)
Back to top