Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for panicmem (0.45 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. src/math/bits/bits_test.go

    	defer func() {
    		if err := recover(); err == nil {
    			t.Error("Div should have panicked when y<=hi")
    		} else if e, ok := err.(runtime.Error); !ok || e.Error() != overflowError {
    			t.Errorf("Div expected panic: %q, got: %q ", overflowError, e.Error())
    		}
    	}()
    	q, r := Div(1, 0, 1)
    	t.Errorf("undefined q, r = %v, %v calculated when Div should have panicked", q, r)
    }
    
    func TestDiv32PanicOverflow(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 22 20:11:06 UTC 2020
    - 32.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/runtime/scheme_test.go

    	panicked := make(chan bool)
    	go func() {
    		defer func() {
    			if recover() != nil {
    				panicked <- true
    			}
    		}()
    		s.AddKnownTypeWithName(gv.WithKind("InternalSimple"), &runtimetesting.InternalSimple{})
    		s.AddKnownTypeWithName(gv.WithKind("InternalSimple"), &runtimetesting.ExternalSimple{})
    		panicked <- false
    	}()
    	if !<-panicked {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  9. finisher_api.go

    				if panicked || err != nil {
    					db.RollbackTo(fmt.Sprintf("sp%p", fc))
    				}
    			}()
    		}
    		err = fc(db.Session(&Session{NewDB: db.clone == 1}))
    	} else {
    		tx := db.Begin(opts...)
    		if tx.Error != nil {
    			return tx.Error
    		}
    
    		defer func() {
    			// Make sure to rollback when panic, Block error or Commit error
    			if panicked || err != nil {
    				tx.Rollback()
    			}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/metrics/metrics.go

    	//  - rest-handler: the "executing" handler returns after the rest layer times out the request.
    	// status: whether the handler panicked or threw an error, possible values:
    	//  - 'panic': the handler panicked
    	//  - 'error': the handler return an error
    	//  - 'ok': the handler returned a result (no error and no panic)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 07:29:19 UTC 2023
    - 35K bytes
    - Viewed (0)
Back to top