Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for logPanic (0.1 sec)

  1. pilot/pkg/util/runtime/runtime.go

    // limitations under the License.
    
    package runtime
    
    import (
    	"runtime"
    
    	"istio.io/istio/pkg/log"
    )
    
    // LogPanic logs the caller tree when a panic occurs.
    func LogPanic(r any) {
    	// Same as stdlib http server code. Manually allocate stack trace buffer size
    	// to prevent excessively large logs
    	const size = 64 << 10
    	stacktrace := make([]byte, size)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime_test.go

    		defer HandleCrash()
    		panic("test panic")
    	})
    	if err != nil {
    		t.Fatalf("%v", err)
    	}
    	// Example log:
    	//
    	// ...] Observed a panic: test panic
    	// goroutine 6 [running]:
    	// command-line-arguments.logPanic(0x..., 0x...)
    	// 	.../src/k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/util/runtime/runtime.go:69 +0x...
    	lines := strings.Split(log, "\n")
    	if len(lines) < 4 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. tests/fuzz/regression_test.go

    		defer func() {
    			if r := recover(); r != nil {
    				if _, broken := brokenCases[name]; broken {
    					t.Logf("expected broken case failed: %v", broken)
    				} else {
    					runtime.LogPanic(r)
    					t.Fatalf("panic encountered: %v", r)
    				}
    			} else {
    				// Ensure we update brokenCases when they are fixed
    				if _, broken := brokenCases[name]; broken {
    					t.Fatalf("expected broken case passed")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 10 16:43:09 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/envoyfilter/cluster_patch.go

    func ApplyClusterMerge(pctx networking.EnvoyFilter_PatchContext, efw *model.EnvoyFilterWrapper,
    	c *cluster.Cluster, hosts []host.Name,
    ) (out *cluster.Cluster) {
    	defer runtime.HandleCrash(runtime.LogPanic, func(any) {
    		log.Errorf("clusters patch %s/%s caused panic, so the patches did not take effect", efw.Namespace, efw.Name)
    		IncrementEnvoyFilterErrorMetric(Cluster)
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top