[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

RE: Segmentation faults and Core Dump



you can  use "strace" on your exe file to get the some insight into what are
all the system calls called in your program. By using that info you can
track down what is happening?? Segmentation faults will come 
due to read/write from/to a un allocated memory zone. 
Check all pointer manipulations in ur program.
Thanks
Kondaiah Dasari 

> -----Original Message-----
> From:	Senthil Devan [SMTP:senthildr@xxxxxxxxxxxxxxxxxx]
> Sent:	Tuesday, March 27, 2001 3:33 AM
> To:	'linux-india'
> Subject:	[LIP] Segmentation faults and Core Dump
> 
> hi  Friends,
> 
> My program (comprising nearly 10 Source files) crashes with segmentation
> fault. I am not able to back track (bt) in gdb as the stack is getting
> corrupted. I also tried where in gdb (I haven't used where much), but it
> was
> not of much help. I need some suggestions as how segmentation faults can
> be
> tracked down. I also want to know about core dump file and how it can be
> used to find the cause of segmentation fault.
> 
> Thanks in advance.
> 
> Regards,
> Devan
> 
> 
> 
> 
> ---------------------------------------------
> An alpha version of a web based tool to manage
> your subscription with this mailing list is at
> http://lists.linux-india.org/cgi-bin/mj_wwwusr