Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by jb145
Thu, 23 Jul 1992 01:14
bug with iostream.h?
Author: jb145
Date: Thu, 23 Jul 1992 01:14
Date: Thu, 23 Jul 1992 01:14
31 lines
1351 bytes
1351 bytes
#I've been having a very frustrating problem with iostream.h in gcc version 2.0(?). I am running g++ on a Decstation mips machine. Is there any known bug in the compiler with respect to buffered input from the keyboard? When I comment out the line: int from; cin >> from; then the program runs fine, looping forever without keyboard input. But when the line is left in, then it works fine for about 100 or 200 inputs cycles until suddenly crashing with a message like: grow failed because stack limit exceeded, pid 26935, proc play ts = 0x1c, ds = 0x1d, ss = 0x80 Segmentation fault (core dumped) I have been chasing this problem for over two weeks and am hoping, begging that you will have a clue what might be causing it. By the way, I've tried lots of hacks such as replacing cin >> from; with char str[5]; cin >> str; from = atoi(str); but the crash remains despite all my efforts. Thanks very much, whoever you are!! Justin Boyan jb145@eng.cam.ac.uk
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads