Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [segmentation-fault]

Segmentation faults occur when accessing memory which does not belong to your process. Use this tag along with a tag indicating the language and a tag indicating the operating system. Segmentation faults are typically the result of a dereference operation with pointer variables (most often containing an invalid address) or a buffer overflow. The root cause for an invalid pointer value may be far from the location generating the segmentation fault.

0 votes
0 answers
47 views

Trouble with overloaded operator<< function in circular list

I am working on a program that reads in a polynomial as input, outputs the polynomial, evaluating the polynomial, and adding two polynomials while maintaining a circularly linked list. An analysis ...
benhpark's user avatar
0 votes
0 answers
13 views

App Crashes on a particular screen with Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

I am working with BabylonJS in React-Native Android app, and everything was working fine until I added a release build by creating a keystore and other steps that it requires and now it just simply ...
Chaudhry Talha's user avatar
0 votes
0 answers
61 views

Segmentation fault err but add fprintf() not segmentation fault err

extern void *masu_malloc(size_t size); extern void masu_free(void *ptr); extern void *masu_realloc(void *ptr, size_t size); extern void *masu_calloc(size_t nmemb, size_t size); void *malloc(size_t ...
Kim TaeHyeon's user avatar
0 votes
2 answers
57 views

Segmentation Fault when pass a numpy array to open3d.utility.Vector3dVector

I want to pass a numpy array whose dtype is "float64" to open3d.utility.Vector3dVector to get points of point cloud, but Segmentation Fault. Help me, please. I have searched many solutions ...
resautu's user avatar
0 votes
1 answer
22 views

segmentation fault when trying to import the following packages: datasets, transformers, and evaluate

This is my first time posting on Stack overflow so I apologize if I didn't include enough detail I am trying to finetune a Bert model from HuggingFace, and when I try the following import statements: ...
Ryan Zheng's user avatar
0 votes
0 answers
14 views

Segmentation Fault When Importing osqp in Python on MacOS

I'm experiencing a segmentation fault when trying to import the osqp package in Python on my MacOS system. I've tried to isolate the environment by using a virtual environment. Here are my System ...
kpardeshi's user avatar
0 votes
1 answer
54 views

terra::split | R session aborts when splitting polygon fatal error

When trying to split a polygon R runs into a fatal error and aborts. This happens when using R Studio and R on itself. I wrote the code on an earlier version of R on a different machine (also a mac), ...
Amantil's user avatar
-1 votes
0 answers
62 views

Segmentation fault in Debug mode with boost::system::error_code

I had a task to investigate bug (segmentation fault) in our component that happened when it was compiled in Debug mode (component worked when compiled in Release mode). I found the problem in ...
Ivan Stimac's user avatar
0 votes
1 answer
71 views

C code for solving a 15-puzzle gives a segmentation fault when it tries to show the paths for each update to the puzzle

I have a code that is supposed to show the paths in solving a 15-puzzle after showing the initial state and goal state. However, while it does show the initial state and goal state, it gives a ...
Sebastian Llaurador's user avatar
0 votes
0 answers
59 views

Incorrect Matrix Multiplication Not Producing Segmentation Fault

I am working on homework assignment 1 for the Performance Engineering of Software Systems course on MIT OCW. The assignment involves debugging some C code designed to multiply matrices. Matrices are ...
Coder1913's user avatar
4 votes
1 answer
164 views

Understanding the flow of the kernel upon receiving a SIGSEGV for null-dereference

I'm trying to figure out the sequence of things that occur inside the Linux kernel (x86_64, v6.9) when we write these two codes: // Null-dereference + writing to page zero *(char *)0 = 0; // Null-...
Iman Seyed's user avatar
0 votes
1 answer
62 views

Why does my C program with any input results in segmentation fault?

I've spent hours of racking my brain on why doesn't this work #include <stdio.h> #define MAXLINE 1000 #define TRUE 1 #define FALSE 0 int getLine(char s[], int lim); void copy(char to[], char ...
JERVIS JAMES PEDOTIM's user avatar
0 votes
2 answers
51 views

Multiprocessing sharing c pointer in Python

I tried implementing tree sitter support in Python using multiprocessing but the Python process is crashing. Further below is a Minimum Reproducible Example. My needs are to be able to send the ...
TRCK's user avatar
  • 213
-1 votes
1 answer
75 views

Segmentation fault in my code SLL Natural Merge Sort in C++

This is my code SLL Natural Merge Sort in C++: #include <stdio.h> #include <stdlib.h> typedef struct Node{ int data; Node* link; }NODE; typedef struct List{ NODE* first; ...
Huy Trần Ngọc's user avatar
2 votes
2 answers
99 views

Circular linked list, destructor delete order causing seg-fault

Overview I have a simple circularly linked list I was making for demonstration purposes (I know I should be using smart pointers, but this is a pedagogical exercise for memory and data structures). ...
Amiel's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
907