Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 129 for SIGSEGV (0.53 sec)

  1. src/runtime/testdata/testprogcgo/sigfwd.go

    #include <string.h>
    
    sig_atomic_t expectCSigsegv;
    int *sigfwdP;
    
    static void sigsegv() {
    	expectCSigsegv = 1;
    	*sigfwdP = 1;
    	fprintf(stderr, "ERROR: C SIGSEGV not thrown on caught?.\n");
    	exit(2);
    }
    
    static void segvhandler(int signum) {
    	if (signum == SIGSEGV) {
    		if (expectCSigsegv == 0) {
    			fprintf(stderr, "SIGSEGV caught in C unexpectedly\n");
    			exit(1);
    		}
    		fprintf(stdout, "OK\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 01 17:06:49 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/testdata/main_unix.c

    	memset(&osa, 0, sizeof osa);
    	sigemptyset(&osa.sa_mask);
    	if (sigaction(SIGSEGV, &sa, &osa) < 0) {
    		perror("sigaction");
    		return 2;
    	}
    	if (osa.sa_handler == SIG_DFL) {
    		fprintf(stderr, "Go runtime did not install signal handler\n");
    		return 2;
    	}
    	// gccgo does not set SA_ONSTACK for SIGSEGV.
    	if (getenv("GCCGO") == NULL && (osa.sa_flags&SA_ONSTACK) == 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/testdata/main4.c

    	recur(4, a);
    	sigioSeen = 1;
    }
    
    static jmp_buf jmp;
    static char* nullPointer;
    
    // Signal handler for SIGSEGV on a C thread.
    static void segvHandler(int signo, siginfo_t* info, void* ctxt) {
    	sigset_t mask;
    	int i;
    
    	if (sigemptyset(&mask) < 0) {
    		die("sigemptyset");
    	}
    	if (sigaddset(&mask, SIGSEGV) < 0) {
    		die("sigaddset");
    	}
    	i = sigprocmask(SIG_UNBLOCK, &mask, NULL);
    	if (i != 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. src/runtime/tls_ppc64x.s

    #include "funcdata.h"
    #include "textflag.h"
    
    // We have to resort to TLS variable to save g (R30).
    // One reason is that external code might trigger
    // SIGSEGV, and our runtime.sigtramp don't even know we
    // are in external code, and will continue to use R30,
    // this might well result in another SIGSEGV.
    
    // save_g saves the g register into pthread-provided
    // thread-local memory, so that we can call externally compiled
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 02:48:11 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcarchive/testdata/main2.c

    	va_end(args);
    }
    
    // Signal handler for SIGSEGV on a C thread.
    static void segvHandler(int signo, siginfo_t* info, void* ctxt) {
    	sigset_t mask;
    	int i;
    
    	// Call an arbitrary function that requires the stack to be properly aligned.
    	callWithVarargs("dummy arg", 3.1415);
    
    	if (sigemptyset(&mask) < 0) {
    		die("sigemptyset");
    	}
    	if (sigaddset(&mask, SIGSEGV) < 0) {
    		die("sigaddset");
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. src/runtime/tls_s390x.s

    #include "funcdata.h"
    #include "textflag.h"
    
    // We have to resort to TLS variable to save g (R13).
    // One reason is that external code might trigger
    // SIGSEGV, and our runtime.sigtramp don't even know we
    // are in external code, and will continue to use R13,
    // this might well result in another SIGSEGV.
    
    // save_g saves the g register into pthread-provided
    // thread-local memory, so that we can call externally compiled
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 07 18:56:54 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  7. src/internal/fuzz/sys_posix.go

    	return status.Signal(), status.Signaled()
    }
    
    // isCrashSignal returns whether a signal was likely to have been caused by an
    // error in the program that received it, triggered by a fuzz input. For
    // example, SIGSEGV would be received after a nil pointer dereference.
    // Other signals like SIGKILL or SIGHUP are more likely to have been sent by
    // another process, and we shouldn't record a crasher if the worker process
    // receives one of these.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 12 19:47:40 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  8. releasenotes/notes/42832.yaml

    apiVersion: release-notes/v2
    kind: bug-fix
    area: istioctl
    issue:
      - https://github.com/istio/istio/issues/42831
      - 42831
    releaseNotes:
    - |
      **Fixed** the issue where istioctl analyze was throwing SIGSEGV when optional field 'filter'
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jan 16 23:34:29 UTC 2023
    - 308 bytes
    - Viewed (0)
  9. src/runtime/cgo/signal_ios_arm64.s

    // Copyright 2015 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.
    
    #include "textflag.h"
    
    // xx_cgo_panicmem is the entrypoint for SIGSEGV as intercepted via a
    // mach thread port as EXC_BAD_ACCESS. As the segfault may have happened
    // in C code, we first need to load_g then call xx_cgo_panicmem.
    //
    //	R1 - LR at moment of fault
    //	R2 - PC at moment of fault
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 06 22:54:58 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  10. src/runtime/defs_netbsd.go

    	SIGINT    = C.SIGINT
    	SIGQUIT   = C.SIGQUIT
    	SIGILL    = C.SIGILL
    	SIGTRAP   = C.SIGTRAP
    	SIGABRT   = C.SIGABRT
    	SIGEMT    = C.SIGEMT
    	SIGFPE    = C.SIGFPE
    	SIGKILL   = C.SIGKILL
    	SIGBUS    = C.SIGBUS
    	SIGSEGV   = C.SIGSEGV
    	SIGSYS    = C.SIGSYS
    	SIGPIPE   = C.SIGPIPE
    	SIGALRM   = C.SIGALRM
    	SIGTERM   = C.SIGTERM
    	SIGURG    = C.SIGURG
    	SIGSTOP   = C.SIGSTOP
    	SIGTSTP   = C.SIGTSTP
    	SIGCONT   = C.SIGCONT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top