It's UWAweek 30 (2nd semester, week 1)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 8 other people reading this forum.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
5:24am Sun 10th Sep, Christopher M.

ANONYMOUS wrote:
> I recently tried to run the project code on the CSSE lab computers (Room 203 in the Computer Science building), but when I tried to run WSL it wouldn't even open (I think due to administrative reasons?) Ubuntu wasn't available either, so I'm not sure how to run the code to see if it works on the lab computers.
In Labs 2.03 and 2.05 you should first reboot the machine if it is running Windows. When given the menu to choose which OS to boot, choose Linux/Ubuntu. There may be some setup difference between different computers in the same lab, so you may need to try 1 or 2.
> My project partner and I get different outputs when running the same code on our laptops (mine gets a segmentation fault after waiting for a long period of time, theirs prints out the output straight away), so help would be greatly appreciated.
There's no single guaranteed cause/explanation. How similar are the two laptops (same sized 'int's in C, for example)? The whole program should be extremely fast, taking well less than (real) second to execute, so anything that takes "a long period of time" suggests an infinite while or for loop which, eventually, accesses memory that your program doesn't own - hence the segmentation violation. Any chance of that?

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  7:24AM Jul 25 2024
Privacy policy