Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for cgoTraceback (0.16 sec)

  1. src/runtime/crash_unix_test.go

    	}
    }
    
    func TestPanicSystemstack(t *testing.T) {
    	// Test that GOTRACEBACK=crash prints both the system and user
    	// stack of other threads.
    
    	// The GOTRACEBACK=crash handler takes 0.1 seconds even if
    	// it's not writing a core file and potentially much longer if
    	// it is. Skip in short mode.
    	if testing.Short() {
    		t.Skip("Skipping in short mode (GOTRACEBACK=crash is slow)")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 20:11:47 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  2. src/runtime/traceback_system_test.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime_test
    
    // This test of GOTRACEBACK=system has its own file,
    // to minimize line-number perturbation.
    
    import (
    	"bytes"
    	"fmt"
    	"internal/testenv"
    	"io"
    	"os"
    	"path/filepath"
    	"reflect"
    	"runtime"
    	"runtime/debug"
    	"strconv"
    	"strings"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. src/internal/testenv/exec.go

    		// from breaking tests that are trying to parse other command output.
    		if strings.HasPrefix(env, "GODEBUG=") {
    			continue
    		}
    		// Exclude GOTRACEBACK for the same reason.
    		if strings.HasPrefix(env, "GOTRACEBACK=") {
    			continue
    		}
    		cmd.Env = append(cmd.Env, env)
    	}
    	return cmd
    }
    
    // CommandContext is like exec.CommandContext, but:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 27 17:53:23 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/runtime/fds_test.go

    	if err := o.Close(); err != nil {
    		t.Fatal(err)
    	}
    
    	env := []string{"TEST_OUTPUT=" + outputPath}
    	for _, e := range os.Environ() {
    		if strings.HasPrefix(e, "GODEBUG=") || strings.HasPrefix(e, "GOTRACEBACK=") {
    			continue
    		}
    		env = append(env, e)
    	}
    
    	proc, err := os.StartProcess(fdsBin, []string{fdsBin}, &os.ProcAttr{
    		Env:   env,
    		Files: []*os.File{},
    	})
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 25 16:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/cmd/go/testdata/script/mod_tidy_replace.txt

    env GO111MODULE=on
    env GOFLAGS=-mod=mod
    [short] skip
    
    # golang.org/issue/30166: 'go mod tidy' should not crash if a replaced module is
    # involved in a cycle.
    cd cycle
    env GOTRACEBACK=off
    go mod tidy
    cd ..
    
    # From inside the module, 'go list -m all' should NOT include transitive
    # requirements of modules that have been replaced.
    go list -m all
    stdout 'rsc.io/quote/v3 v3.0.0'
    ! stdout 'rsc.io/sampler'
    ! stdout 'golang.org/x/text'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 3K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/godebug_default.txt

    env GO111MODULE=on
    env GOTRACEBACK=single
    
    # Go 1.21 work module should leave panicnil with an implicit default.
    cp go.mod.21 go.mod
    go list -f '{{.Module.GoVersion}} {{.DefaultGODEBUG}}'
    ! stdout panicnil
    stdout randautoseed=0
    
    # Go 1.21 work module should NOT set panicnil=1 in Go 1.20 dependency.
    cp go.mod.21 go.mod
    go list -f '{{.Module.GoVersion}} {{.DefaultGODEBUG}}' q
    ! stdout panicnil=1
    ! stdout randautoseed
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top