Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for cgoTraceback (0.14 sec)

  1. src/runtime/crash_cgo_test.go

    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got:\n%s", want, got)
    	}
    }
    
    func TestCgoTraceback(t *testing.T) {
    	t.Parallel()
    	got := runTestProg(t, "testprogcgo", "CgoTraceback")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got:\n%s", want, got)
    	}
    }
    
    func TestCgoCallbackGC(t *testing.T) {
    	t.Parallel()
    	switch runtime.GOOS {
    	case "plan9", "windows":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  2. src/runtime/symtab.go

    			// This is done for historical reasons, and to make FuncForPC
    			// work correctly for entries in the result of runtime.Callers.
    			pc--
    		}
    		// It's important that interpret pc non-strictly as cgoTraceback may
    		// have added bogus PCs with a valid funcInfo but invalid PCDATA.
    		u, uf := newInlineUnwinder(funcInfo, pc)
    		sf := u.srcFunc(uf)
    		if u.isInlined(uf) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  3. src/runtime/extern.go

    or the failure is internal to the run-time.
    GOTRACEBACK=none omits the goroutine stack traces entirely.
    GOTRACEBACK=single (the default) behaves as described above.
    GOTRACEBACK=all adds stack traces for all user-created goroutines.
    GOTRACEBACK=system is like “all” but adds stack frames for run-time functions
    and shows goroutines created internally by the run-time.
    GOTRACEBACK=crash is like “system” but crashes in an operating system-specific
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. src/runtime/HACKING.md

    For runtime error debugging, it may be useful to run with `GOTRACEBACK=system`
    or `GOTRACEBACK=crash`. The output of `panic` and `fatal` is as described by
    `GOTRACEBACK`. The output of `throw` always includes runtime frames, metadata
    and all goroutines regardless of `GOTRACEBACK` (i.e., equivalent to
    `GOTRACEBACK=system`). Whether `throw` crashes or not is still controlled by
    `GOTRACEBACK`.
    
    Synchronization
    ===============
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. src/runtime/runtime1.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    import (
    	"internal/bytealg"
    	"internal/goarch"
    	"internal/runtime/atomic"
    	"unsafe"
    )
    
    // Keep a cached value to make gotraceback fast,
    // since we call it on every call to gentraceback.
    // The cached value is a uint32 in which the low bits
    // are the "crash" and "all" settings and the remaining
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  6. cmd/kube-apiserver/app/server.go

    	// To help debugging, immediately log version
    	klog.Infof("Version: %+v", version.Get())
    
    	klog.InfoS("Golang settings", "GOGC", os.Getenv("GOGC"), "GOMAXPROCS", os.Getenv("GOMAXPROCS"), "GOTRACEBACK", os.Getenv("GOTRACEBACK"))
    
    	config, err := NewConfig(opts)
    	if err != nil {
    		return err
    	}
    	completed, err := config.Complete()
    	if err != nil {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 01 17:44:20 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. cmd/kube-scheduler/app/server.go

    	logger.Info("Starting Kubernetes Scheduler", "version", version.Get())
    
    	logger.Info("Golang settings", "GOGC", os.Getenv("GOGC"), "GOMAXPROCS", os.Getenv("GOMAXPROCS"), "GOTRACEBACK", os.Getenv("GOTRACEBACK"))
    
    	// Configz registration.
    	if cz, err := configz.New("componentconfig"); err == nil {
    		cz.Set(cc.ComponentConfig)
    	} else {
    		return fmt.Errorf("unable to register configz: %s", err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  8. src/runtime/crash_test.go

    	case "aix", "darwin", "illumos", "openbsd", "solaris":
    		t.Skipf("skipping on %s because nanotime calls libc", runtime.GOOS)
    	}
    
    	// Pass GOTRACEBACK for issue #41120 to try to get more
    	// information on timeout.
    	fn := runTestProg(t, "testprog", "TimeProf", "GOTRACEBACK=crash")
    	fn = strings.TrimSpace(fn)
    	defer os.Remove(fn)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  9. src/runtime/debug/garbage.go

    // SetTraceback sets the amount of detail printed by the runtime in
    // the traceback it prints before exiting due to an unrecovered panic
    // or an internal runtime error.
    // The level argument takes the same values as the GOTRACEBACK
    // environment variable. For example, SetTraceback("all") ensure
    // that the program prints all goroutines when it crashes.
    // See the package runtime documentation for details.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. src/runtime/stack_test.go

    		timer := time.AfterFunc(timeout, func() {
    			// Panic — instead of calling t.Error and returning from the test — so
    			// that we get a useful goroutine dump if the test times out, especially
    			// if GOTRACEBACK=system or GOTRACEBACK=crash is set.
    			if !started.Load() {
    				panic("finalizer did not start")
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 23.1K bytes
    - Viewed (0)
Back to top