Segfault while scanning structures from file Programming Software Development by vikingsheepman … *object){ int status; /************************** SEGFAULT **************************/ status = fscanf(filep, …gt;credits, object->course ); /************************** SEGFAULT **************************/ if(status == 4){ status … Re: segfault and valarray Programming Software Development by dm215 …. My question regards the point in the execution where a segfault occurs. In one particular case, the loop executes no problem…;vec" (as shown in the sample) I get a segfault. My question remains, why? SegFault on class instantiation Programming Software Development by levk Hi, I get a segfault when I try to instantiate a class I wrote. I … segfault and valarray Programming Software Development by dm215 … vec2 based on vec.size() instead of vec itself, the segfault still happens at the constructor for vec2. This is even… Re: segfault and valarray Programming Software Development by thekashyap …;vec" (as shown in the sample) I get a segfault. My question remains, why?[/quote] Well, this time you got… Re: segfault and valarray Programming Software Development by dm215 … an entire half-day to track it down, since the segfault occurred down the line from where the overflow actually was… Re: segfault and valarray Programming Software Development by thekashyap … an entire half-day to track it down, since the segfault occurred down the line from where the overflow actually was… Segfault in Primes Program Programming Software Development by orwell84 … is for. It's also probably the source of the segfault (the array, that is) Segfault when I run from Visual Studio, But works fine when run outside of VS? Programming Software Development by epicasian … dev topic. Okay, whenever I start debugging from VC++, I segfault. But when I run my program outside of VC++, it… segfault thats driving me crazy Programming Software Development by inbarda … = &_clock; } int candidate::getID(){ (*clock).some_method(); // <=this generates segfault return id; } void candidate::waiting(){ (*clock).some_method(); // <===== this doesnt… Re: Segfault in global object member access Programming Software Development by mike_2000_17 … that would never compile, let alone run up to a segfault). And so, I assume the latest code you posted is… with the pointer is going to be either a crash (segfault) or a corruption of your program. The same goes after… Re: Segfault in global object member access Programming Software Development by akshay.lahiry … that would never compile, let alone run up to a segfault) > please post your actual code (or an exerpt from… that would never compile, let alone run up to a segfault) The reason I dont post real code is most of… Re: SEGFAULT caused by a stdlib function im not calling Programming Software Development by splurchner … made, but I tried it and it still segfaults. The segfault might be for a different reason this time though. It… Re: SEGFAULT caused by a stdlib function im not calling Programming Software Development by Dave Sinkula … use NULL in subsequent calls. And we've moved the segfault further down the road. Ostringstream SegFault Programming Software Development by freddyfly … line and is fine but others I'll get a segfault here. I am using threads and I've looked around… about threads with ostringstream. Any ideas about why it would segfault here? It doesn't seem to me that creating this… Re: Ostringstream SegFault Programming Software Development by Narue …'t seem to me that creating this would cause a segfault... Just because it dies there doesn't mean the problem… Re: Ostringstream SegFault Programming Software Development by freddyfly Hmmmm ok so I am probably just looking in the wrong place...would the problem likely be caused by the same thread that is throwing the segfault or could it be any? This ostringstream is not in my code, I'm building on someone else's and haven't used ostringstreams before and am pretty new to lots of threads so I'm just trying to figure this out... strtok returns segfault Programming Software Development by ItecKid *EDIT-I know strtok doesn't actually 'return' a segfault-I realize after submitting topic that is poor wording. Hello, … to strtok\n"); /* This line never prints due to segfault */ } [/code] I am attempting to parse the 'ls -l' to… Why is this strchr program a segfault? Programming Software Development by HelloJarvis … working with `strchr` and, for some reason, am getting a segfault. My program takes a string, iterates through the characters of…) { int index = c - word; score += scores[index]; } } This gives a segfault. What am I doing wrong? Thanks in advance! Re: Unsure of AT&T syntax and segfault Programming Software Development by chrisname …[/code] I don't understand where I'm getting a segfault. I thought it was because of my use of AT… it didn't help :l Does anyone know where the segfault is? Thanks :l Weird segfault involving popen Programming Software Development by liliafan … without a problem, but when it exits I get a segfault, if I remove the popen code no more segfaults so… Re: Weird segfault involving popen Programming Software Development by liliafan …* files_to_open = new char[ kMaxFileSize ]; is perfect gets rid of the segfault completely. I hate to impose further but any chance you… char * = "string" and strcpy = SegFault? Programming Software Development by saishn I get a segfault when I run the following. Seems to fail at strcpy. [… Re: char * = "string" and strcpy = SegFault? Programming Software Development by Bench [QUOTE=saishn;246937]I get a segfault when I run the following. Seems to fail at strcpy. [… argc constantly changing -- leads to segfault? Programming Software Development by dm215 … MPI-C++ code, and I am getting a frustratingly unreproducible segfault. I am also having trouble with gdb (I think because… struct pointers...segfault.... Programming Software Development by xyzt …,print a list and free a list. but i get segfault while printing the list. (by the way, list is not… Unsure of AT&T syntax and segfault Programming Software Development by chrisname … I'm also unsure as to how to solve this segfault I'm getting: [code=c]#include <stdio.h>… Re: Unsure of AT&T syntax and segfault Programming Software Development by gerard4143 … I'm also unsure as to how to solve this segfault I'm getting: [code=c]#include <stdio.h>… [C]segfault, pointers to singly-linked list Programming Software Development by iamminsk … (prevoius != NULL); return 0; }[/CODE] i still keep on getting segfault here: prevoius->next=pointer; any attempt of helping would… Re: [C]segfault, pointers to singly-linked list Programming Software Development by iamminsk it should be fp instead of plik, i've changed some tags and forgot about this. segfault still exists in the same place: prevoius->next=pointer