Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for panicmem (0.14 sec)

  1. src/runtime/callers_test.go

    		"runtime.gopanic", "runtime.panicmem", "runtime.sigpanic"}
    
    	defer func() {
    		if r := recover(); r == nil {
    			t.Fatal("did not panic")
    		}
    		pcs := make([]uintptr, 20)
    		pcs = pcs[:runtime.Callers(0, pcs)]
    		testCallersEqual(t, pcs, want)
    		if state == 1 {
    			t.Fatal("nil defer func panicked at defer time rather than function exit time")
    		}
    
    	}()
    	var f 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)
  2. src/runtime/os_plan9.go

    		i := indexNoFloat(note, "addr=")
    		if i >= 0 {
    			i += 5
    		} else if i = indexNoFloat(note, "va="); i >= 0 {
    			i += 3
    		} else {
    			panicmem()
    		}
    		addr := note[i:]
    		gp.sigcode1 = uintptr(atolwhex(addr))
    		if gp.sigcode1 < 0x1000 {
    			panicmem()
    		}
    		if gp.paniconfault {
    			panicmemAddr(gp.sigcode1)
    		}
    		if inUserArenaChunk(gp.sigcode1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. src/runtime/os_wasm.go

    const _SIGSEGV = 0xb
    
    func sigpanic() {
    	gp := getg()
    	if !canpanic() {
    		throw("unexpected signal during runtime execution")
    	}
    
    	// js only invokes the exception handler for memory faults.
    	gp.sig = _SIGSEGV
    	panicmem()
    }
    
    // func exitThread(wait *uint32)
    // FIXME: wasm doesn't have atomic yet
    func exitThread(wait *atomic.Uint32)
    
    type mOS struct{}
    
    func osyield()
    
    //go:nosplit
    func osyield_no_g() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/runtime/runtime-seh_windows_test.go

    	got := make([]string, 0, len(want))
    	for _, pc := range pcs {
    		fn := runtime.FuncForPC(pc)
    		if fn == nil || len(got) >= len(want) {
    			break
    		}
    		name := fn.Name()
    		switch name {
    		case "runtime.panicmem":
    			// These functions are skipped as they appear inconsistently depending
    			// whether inlining is on or off.
    			continue
    		}
    		got = append(got, name)
    	}
    	if !slices.Equal(want, got) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 16:52:06 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. src/runtime/cgo/gcc_signal_ios_arm64.c

    #else
    	thread_state.ts_32.__r[1] = thread_state.ts_32.__lr;
    	thread_state.ts_32.__r[2] = thread_state.ts_32.__pc;
    	thread_state.ts_32.__pc = x_cgo_panicmem;
    #endif
    
    	if (0) {
    		// Useful debugging logic when panicmem is broken.
    		//
    		// Sends the first SIGSEGV and lets lldb catch the
    		// second one, avoiding a loop that locks up iOS
    		// devices requiring a hard reboot.
    		fprintf(stderr, "runtime/cgo: caught exc_bad_access\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:04:22 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. src/runtime/signal_windows.go

    	gp := getg()
    	if !canpanic() {
    		throw("unexpected signal during runtime execution")
    	}
    
    	switch gp.sig {
    	case _EXCEPTION_ACCESS_VIOLATION, _EXCEPTION_IN_PAGE_ERROR:
    		if gp.sigcode1 < 0x1000 {
    			panicmem()
    		}
    		if gp.paniconfault {
    			panicmemAddr(gp.sigcode1)
    		}
    		if inUserArenaChunk(gp.sigcode1) {
    			// We could check that the arena chunk is explicitly set to fault,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 20:32:29 UTC 2023
    - 14.5K bytes
    - Viewed (0)
  7. src/runtime/signal_unix.go

    			panicmem()
    		}
    		// Support runtime/debug.SetPanicOnFault.
    		if gp.paniconfault {
    			panicmemAddr(gp.sigcode1)
    		}
    		print("unexpected fault address ", hex(gp.sigcode1), "\n")
    		throw("fault")
    	case _SIGSEGV:
    		if (gp.sigcode0 == 0 || gp.sigcode0 == _SEGV_MAPERR || gp.sigcode0 == _SEGV_ACCERR) && gp.sigcode1 < 0x1000 {
    			panicmem()
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  8. src/runtime/panic.go

    // code generated by the compiler for out of bounds index expressions,
    // out of bounds slice expressions, division by zero, and shift by negative.
    // The panicdivide (again), panicoverflow, panicfloat, and panicmem
    // functions are called by the signal handler when a signal occurs
    // indicating the respective problem.
    //
    // Since panic{Index,Slice,shift} are never called directly, and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  9. src/iter/pull_test.go

    func TestPullPanic(t *testing.T) {
    	t.Run("next", func(t *testing.T) {
    		next, stop := Pull(panicSeq())
    		if !panicsWith("boom", func() { next() }) {
    			t.Fatal("failed to propagate panic on first next")
    		}
    		// Make sure we don't panic again if we try to call next or stop.
    		if _, ok := next(); ok {
    			t.Fatal("next returned true after iterator panicked")
    		}
    		// Calling stop again should be a no-op.
    		stop()
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/filters/routine_test.go

    )
    
    func TestPropogatingPanic(t *testing.T) {
    	var buf bytes.Buffer
    	klog.SetOutput(&buf)
    	klog.LogToStderr(false)
    	defer klog.LogToStderr(true)
    
    	panicMsg := "panic as designed"
    	handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		panic(panicMsg)
    	})
    	resolver := &request.RequestInfoFactory{
    		APIPrefixes:          sets.NewString("api", "apis"),
    		GrouplessAPIPrefixes: sets.NewString("api"),
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top