Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

work in dos, but not in linux

Status
Not open for further replies.

rolfjf

Programmer
Jun 13, 2000
8
BR
I made a program that compiles and run at home.
Here in the university, the same program compiles but doesn't run.
It gives a message: 'Segmentation Fault (core dumped)' and a file called dump is created.
I only use the stdio.h and stdlib.h and I have tested the libraries before, and they worked.
What happened?
 
Without seeing your code, I'd guess that your program is doing something screwy with dynamic memory such as free()ing a pointer twice or writing into memory you don't own (such as writing stuff beyond an allocated block).

For more, post your code. We can only really speculate without seeing it.

Russ
bobbitts@hotmail.com
 
if you are doing some kind of paralell project make sure you are root or have the admin set the proper group id for your program.

or maybe there could be some hard-coded file names in your program that linux will choke on like a\b\c\d(dos) should be a/b/c/d(linux).

but i can only guess without seeing the source.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top