Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,840 for panic (0.06 sec)

  1. src/runtime/panic.go

    		}
    	}
    
    	gp := getg()
    	if gp.m.curg != gp {
    		print("panic: ")
    		printpanicval(e)
    		print("\n")
    		throw("panic on system stack")
    	}
    
    	if gp.m.mallocing != 0 {
    		print("panic: ")
    		printpanicval(e)
    		print("\n")
    		throw("panic during malloc")
    	}
    	if gp.m.preemptoff != "" {
    		print("panic: ")
    		printpanicval(e)
    		print("\n")
    		print("preempt off reason: ")
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-29 17:58
    - 43.8K bytes
    - Viewed (0)
  2. src/cmd/internal/test2json/testdata/panic.json

    {"Action":"output","Test":"TestPanic","Output":"panic(0x1110ea0, 0x116aea0)\n"}
    {"Action":"output","Test":"TestPanic","Output":"\t/go/src/runtime/panic.go:679 +0x1b2\n"}
    {"Action":"output","Test":"TestPanic","Output":"command-line-arguments.TestPanic(0xc000092100)\n"}
    {"Action":"output","Test":"TestPanic","Output":"\ta_test.go:6 +0x39\n"}
    Registered: 2024-06-12 16:32
    - Last Modified: 2022-11-09 17:33
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/internal/test2json/testdata/panic.test

    --- FAIL: TestPanic (0.00s)
    panic: oops [recovered]
    	panic: oops
    
    goroutine 7 [running]:
    testing.tRunner.func1(0xc000092100)
    	/go/src/testing/testing.go:874 +0x3a3
    panic(0x1110ea0, 0x116aea0)
    	/go/src/runtime/panic.go:679 +0x1b2
    command-line-arguments.TestPanic(0xc000092100)
    	a_test.go:6 +0x39
    testing.tRunner(0xc000092100, 0x114f500)
    	go/src/testing/testing.go:909 +0xc9
    created by testing.(*T).Run
    	go/src/testing/testing.go:960 +0x350
    Registered: 2024-06-12 16:32
    - Last Modified: 2019-10-30 20:46
    - 479 bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/panic.c

    Cuong Manh Le <******@****.***> 1635360910 +0700
    Registered: 2024-06-12 16:32
    - Last Modified: 2021-10-27 20:29
    - 239 bytes
    - Viewed (0)
  5. src/runtime/testdata/testprogcgo/panic.go

    Cuong Manh Le <******@****.***> 1635360910 +0700
    Registered: 2024-06-12 16:32
    - Last Modified: 2021-10-27 20:29
    - 312 bytes
    - Viewed (0)
  6. src/runtime/defer_test.go

    		}
    	}()
    	defer func() {
    		panic("panic2")
    	}()
    	panic("panic1")
    }
    
    // This tests that recover() does not succeed unless it is called directly from a
    // defer function that is directly called by the panic.  Here, we first call it
    // from a defer function that is created by the defer function called directly by
    // the panic.  In
    func TestRecoverMatching(t *testing.T) {
    	defer func() {
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-09-20 18:57
    - 11.4K bytes
    - Viewed (0)
  7. src/runtime/callers_test.go

    		// recovered, there is no remaining panic on the stack.
    		pcs := make([]uintptr, 20)
    		pcs = pcs[:runtime.Callers(0, pcs)]
    		testCallersEqual(t, pcs, want)
    	}()
    	defer func() {
    		r := recover()
    		if r != "panic2" {
    			t.Fatalf("got %v, wanted %v", r, "panic2")
    		}
    	}()
    	defer func() {
    		// panic2 aborts/replaces panic1, because it is a recursive panic
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-08-28 21:36
    - 12.1K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprog/deadlock.go

    		}()
    		panic("second panic")
    	}()
    	panic("first panic")
    }
    
    // Test case where a single defer recovers one panic but starts another panic. If
    // the second panic is never recovered, then the recovered first panic will still
    // appear on the panic stack (labeled '[recovered]') and the runtime stack.
    func RecursivePanic4() {
    	defer func() {
    		recover()
    		panic("second panic")
    	}()
    	panic("first panic")
    }
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2021-01-27 20:44
    - 6.5K bytes
    - Viewed (0)
  9. src/runtime/panic_test.go

    		{"panicCustomFloat32", `panic: main.MyFloat32(-9.370000e+001)`},
    		{"panicCustomFloat64", `panic: main.MyFloat64(-9.370000e+001)`},
    		{"panicCustomInt", `panic: main.MyInt(93)`},
    		{"panicCustomInt8", `panic: main.MyInt8(93)`},
    		{"panicCustomInt16", `panic: main.MyInt16(93)`},
    		{"panicCustomInt32", `panic: main.MyInt32(93)`},
    		{"panicCustomInt64", `panic: main.MyInt64(93)`},
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-08 19:10
    - 1.7K bytes
    - Viewed (0)
  10. test/recover1.go

    	defer mustNotRecover()
    	defer func() {
    		recover()
    		defer mustRecover(3)
    		panic(3)
    	}()
    	panic(2)
    }
    
    func test4() {
    	// Single panic.
    	defer mustNotRecover()
    	defer func() {
    		recover()
    	}()
    	panic(4)
    }
    
    func test5() {
    	// Single panic but recover called via defer
    	defer mustNotRecover()
    	defer func() {
    		defer recover()
    	}()
    	panic(5)
    }
    Registered: 2024-06-12 16:32
    - Last Modified: 2016-05-02 13:43
    - 2.5K bytes
    - Viewed (0)
Back to top