Member Avatar
guys, I am implementing hash function in below code snippet but unfortunetly getting segmentation fault. Could you please understand me what went wrong in this implementation. ...
by can-mohan in Software Development ()
Member Avatar
Hi everyone I need a suggestion on detecting the faults/bugs in a java program. To say I should check whether my program is faultless. Thanks, Varun Krishna. P
by Varunkrishna in Software Development ()
Member Avatar
Hello. I need to set up some pipes for a homework assignment as part of a bigger project. The issue I'm having is that the array (args) I'm using to populate the pipe arguments keeps segfaulting and I don't know why. Everything has been malloced beforehand and the faults only …
by greatman05 in Software Development ()
Member Avatar
This is more of a tale of "I think I broke it". Basically as an assignment for CS I have to write an assembler for a subset of the MIPS assembly language. Currently it is not working, getting a sigseg, so I decided to debug the code and step through …
by Labdabeta 182 in Software Development ()
Member Avatar
Hey I have an code in Qt that is an QPushButton is hidden at start of the cpp but later i want to get it appear when the file is open and an line is readed but the problem i get an segmentation fault. Can be because the setHidden(true) in …
by J-P1988 in Software Development ()
Member Avatar
Hi I have a little C-program and when I run I discover alot of page fault?! How can I improve my C program to have it faster?
by tony75 10 in Software Development ()
Member Avatar
I's running this on visual c++ and it runs without error. However, when I tried to run this on Linux, it kept giving me this "segmentation fault" message without any output. There is no pointer and is a quite simple program so can anyone please tell me what is wrong?? …
by pigrabbit87 in Software Development ()
Member Avatar
Im having some trouble putting together a linked list implementation of a queue. I'm getting a segmentation fault, which I believe is due to my empty() function because in an attempt to fix my empty() function, I made it determine empty based on (current_size == 0) instead of (front_p == …
by testie in Software Development ()
Member Avatar
Hello, I am writing a program that reads in data from a text file and puts it into a linked list. Certain variables are read in only if the "officeHeld" number is a particular number, otherwise the variable is set to 0. When I run this through Visual Studio, I …
by pattilupwned in Software Development ()
Member Avatar
Hi can someone point me to a C# project for a tracking system. which is implemnted in C#. my question is it has 2 processors and four track manager system can someone give me an tutorial to get started. appreciate it thanks
by anisha.silva in Software Development ()
Member Avatar
Member Avatar
Here I have the classes Logger and Driver. Driver takes the singleton class of Logger, and logs the same statement 10000 times. I want to use this logger, so that it runs in the background and only logs every so often. This will force the program to not use too …
by sidvb1 in Software Development ()
Member Avatar
plz help me to solve the error in this program : Given programs replaces multiple spaces with only one space... there is no error , but it shows "Segmentation Fault"...whats the issue ?????????
by Subodh11 in Software Development ()
Member Avatar
Hi, I'm writing a small C program to clean the radius radacct table, removing ended sessions records and inserting on a separated database. The problem is that MySQL C API doesn't have an easy way to insert the result of a query on another database/table directly, you have to build …
by modesto916 in Software Development ()
Member Avatar
Hello all! I have used this forum many times in the past to solve a variety of programming related problems, but am truly stumped on a segfault within a binary search tree. I have isolated the segfault to a fscanf statement that look legitamate to me. The following code blocks …
by vikingsheepman in Software Development ()
Member Avatar
Hi all !! I am new to Fortran. Please see the following code: The output is: Two questions: Why is the size of array not being printed correctly in the subroutine? Why the segmentation fault? Thank you in advance !!
by hypernova in Software Development ()
Member Avatar
main.c Hey guys, I get a segmentation fault error using the code above. For now I just want to read the login name and password of a user from a text file, so later I can show it. The text file is filled like this: LOGIN=PASS LOGIN2=PASS2 ... etc I …
by mcjiwe in Software Development ()
Member Avatar
I was wandering what could be the causes of this error message? Like in general. 10x.
by Lucaci Andrew 140 in Software Development ()
Member Avatar
include<stdio.h> int strlen_(const char *string); int strlen_(const char *string) { int length; for(length = 0; *string != '\0'; string++){ length++; } return length; } char *strcat_(char *string1, const char *string2); char *strcat_(char *string1, const char *string2) { char *p = string1; if(string1 == NULL || string2 == NULL) return string1; …
by saamsonn in Software Development ()
Member Avatar
hi all, total noob here with assembly. I'm working on a project for one my classes and for some reason we all keep getting segmentation faults when attempting to run the program. I can't for the life of me figure out what the heck is going on and why this …
by efficacious in Software Development ()
Member Avatar
for(int i=0;i&lt;=c;i++) { l=0; if(strcmp(findedge(tst[i],dfa[0][j]),"null")!=0) { strcpy(t1,findedge(tst[i],dfa[0][j])); When I try to append comma or some other symbol to temp, a segmentation fault occurs. If that step is omitted everything works perfectly. This is code is from my program to convert NFA to DFA. You can see that I even tried …
by jeevsmyd -2 in Software Development ()
Member Avatar
Here are program instructions. IT SAYS "segmentation fault" WHEN RAN. Specifications You must create a Ship class: The Ship class maintains the position data for each ship/vessel and its distance from another Ship. It has a default constructor, which sets all of the member data to zero, and a non-default …
by Adnan671 in Software Development ()
Member Avatar
Hi this my first post here XD Its like this i have the code writen but it gives me this error Segmentation fault (core dumped) Can anyone tell me why? MAX_BUFFER equ 10240 ; Constante que sera' usada como tamanho maximo de cada linha lida do teclado (10kb) FICH_ABERTURA equ …
by reynaud0000 in Software Development ()
Member Avatar
I have a simple doubly linked list for a class I am in and I keep getting a seg fault on my last line of code, no matter what i make it. I can put a bunch of random couts and it will print them all then on the last …
by wnr78ta in Software Development ()
Member Avatar
I wrote this program and it compiled with no errors or warnings but when i went to run it i get a segmentation fault and i cant figure out what is causing it. Ive spent hours and hours on this . Anyone with some expertise willing to take a look? …
by dgreene1210 in Software Development ()
Member Avatar
I am currently creating a queue ADT for one of my classes in college. We are using a linux ssh server for compiling our programs, but i am writing the code in windows. When i compile i get no errors, but when i run it goes fine until it hits …
by biggnlarge in Software Development ()
Member Avatar
Please help me find the error with my code. Whenever I try to run the program, it returns a Segmentation Fault message. I've been trying to find and play with the codes but I'm really stuck.. Please help me.. Here's my code: .section .data format: .asciz "%d\n" values: .int 5, …
by loveMii in Software Development ()
Member Avatar
Hello all, I was trying this problem of checking if the input integers can be ordered using the STL implementation of the stack. The program reads from a file named "input.txt" which in its first line has the number of integers that follow in the second line. The second line …
by neelpulse in Software Development ()
Member Avatar
Just took my old desktop out of storage... Its from 05/06 ish... and 2gb of its RAM is faulty :( - Wont boot with it in. Any ideas why this is? The slots themselves don't seem to be faulty, just the sticks....
by jbennet 1,618 in Hardware ()