Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 56 for panicmem (0.16 sec)

  1. src/runtime/os3_plan9.go

    		// functions are correctly handled. This will smash
    		// the stack frame but we're not going back there
    		// anyway.
    		if usesLR {
    			c.savelr(c.lr())
    		}
    
    		// If PC == 0, probably panicked because of a call to a nil func.
    		// Not faking that as the return address will make the trace look like a call
    		// to sigpanic instead. (Otherwise the trace will end at
    		// sigpanic and we won't get to see who faulted).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. 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)
  3. src/encoding/binary/binary_test.go

    		}
    	}
    }
    
    func testUint64SmallSliceLengthPanics() (panicked bool) {
    	defer func() {
    		panicked = recover() != nil
    	}()
    	b := [8]byte{1, 2, 3, 4, 5, 6, 7, 8}
    	LittleEndian.Uint64(b[:4])
    	return false
    }
    
    func testPutUint64SmallSliceLengthPanics() (panicked bool) {
    	defer func() {
    		panicked = recover() != nil
    	}()
    	b := [8]byte{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  4. src/runtime/export_debug_test.go

    		// Call the debug function.
    		h.debugCallRun(ctxt)
    	case 1:
    		// Function returned. Copy frame and result registers back out.
    		h.debugCallReturn(ctxt)
    	case 2:
    		// Function panicked. Copy panic out.
    		h.debugCallPanicOut(ctxt)
    	case 8:
    		// Call isn't safe. Get the reason.
    		h.debugCallUnsafe(ctxt)
    		// Don't wake h.done. We need to transition to status 16 first.
    	case 16:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. src/time/tick_test.go

    		if err := recover(); err == nil {
    			t.Errorf("NewTicker(-1) should have panicked")
    		}
    	}()
    	NewTicker(-1)
    }
    
    // Test that Ticker.Reset panics when given a duration less than zero.
    func TestTickerResetLtZeroDuration(t *testing.T) {
    	defer func() {
    		if err := recover(); err == nil {
    			t.Errorf("Ticker.Reset(0) should have panicked")
    		}
    	}()
    	tk := NewTicker(Second)
    	tk.Reset(0)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  6. src/testing/fuzz.go

    			}
    			// Before resetting the current coverage, defer the snapshot so that
    			// we make sure it is called right before the tRunner function
    			// exits, regardless of whether it was executed cleanly, panicked,
    			// or if the fuzzFn called t.Fatal.
    			if f.testContext.isFuzzing {
    				defer f.fuzzContext.deps.SnapshotCoverage()
    				f.fuzzContext.deps.ResetCoverage()
    			}
    			fn.Call(args)
    		})
    		<-t.signal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  7. src/syscall/exec_unix_test.go

    	if v != uint64(orig.Cur) {
    		t.Errorf("exec rlimit = %d, want %d", v, orig)
    	}
    }
    
    func TestForkExecNilArgv(t *testing.T) {
    	defer func() {
    		if p := recover(); p != nil {
    			t.Fatal("forkExec panicked")
    		}
    	}()
    
    	// We don't really care what the result of forkExec is, just that it doesn't
    	// panic, so we choose something we know won't actually spawn a process (probably).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 04:41:27 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. src/strings/builder_test.go

    	}
    	for _, tt := range tests {
    		didPanic := make(chan bool)
    		go func() {
    			defer func() { didPanic <- recover() != nil }()
    			tt.fn()
    		}()
    		if got := <-didPanic; got != tt.wantPanic {
    			t.Errorf("%s: panicked = %v; want %v", tt.name, got, tt.wantPanic)
    		}
    	}
    }
    
    func TestBuilderWriteInvalidRune(t *testing.T) {
    	// Invalid runes, including negative ones, should be written as
    	// utf8.RuneError.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/dispatcher.go

    						}
    						return
    					}
    					// this ensures that the admission request fails and a message is provided.
    					errCh <- apierrors.NewInternalError(fmt.Errorf("ValidatingAdmissionWebhook/%v has panicked: %v", hookName, r))
    				},
    			)
    
    			hook, ok := invocation.Webhook.GetValidatingWebhook()
    			if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 20:24:12 UTC 2023
    - 13K bytes
    - Viewed (0)
  10. cni/pkg/plugin/plugin.go

    	// Defer a panic recover, so that in case if panic we can still return
    	// a proper error to the runtime.
    	defer func() {
    		if e := recover(); e != nil {
    			msg := fmt.Sprintf("istio-cni panicked during cmdAdd: %v\n%v", e, string(debug.Stack()))
    			if err != nil {
    				// If we're recovering and there was also an error, then we need to
    				// present both.
    				msg = fmt.Sprintf("%s: %v", msg, err)
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top