home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / g / lib / bug / 729 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.2 KB  |  58 lines

  1. Newsgroups: gnu.g++.lib.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!dfv.rwth-aachen.DE!mj
  3. From: mj@dfv.rwth-aachen.DE (Martin Junius)
  4. Subject: libg++-2.3 strange bug
  5. Message-ID: <1992Dec29.170317.20721@dfv.rwth-aachen.de>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Communication Networks
  8. Distribution: gnu
  9. Date: Tue, 29 Dec 1992 17:03:17 GMT
  10. Approved: bug-lib-g++@prep.ai.mit.edu
  11. Lines: 45
  12.  
  13. Just noticed a strange bug when redirecting libg++ 2.3 iostream 
  14. output to a pipe: OUTPUT GETS LOST! This doesn't happen with 
  15. normal output or redirection to a file.
  16.  
  17. It also doesn't happen at all with libg++ 2.2.
  18.  
  19.  
  20. ----y.C-----------------------------------------------------------------------
  21. #include <iostream.h>
  22.  
  23. main()
  24. {
  25.     cerr << "Begin test\n";
  26.     cerr << "Blah\n";
  27.     cerr << "Blah bbbbbbbbbbbbbbb\n";
  28. }
  29. ----Compile-------------------------------------------------------------------
  30. Reading specs from /usr/global/lib/gcc-lib/sparc/2.3.3/specs
  31. gcc version 2.3.3
  32.  /usr/global/lib/gcc-lib/sparc/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix y.C /usr/tmp/cca24756.i
  33. GNU CPP version 2.3.3 (sparc)
  34.  /usr/global/lib/gcc-lib/sparc/2.3.3/cc1plus /usr/tmp/cca24756.i -quiet -dumpbase y.cc -version -o /usr/tmp/cca24756.s
  35. GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
  36.  as -o /usr/tmp/cca247561.o /usr/tmp/cca24756.s
  37.  /usr/global/lib/gcc-lib/sparc/2.3.3/ld -e start -dc -dp /lib/crt0.o -L/usr/global/lib/gcc-lib/sparc/2.3.3 -L/usr/global/lib /usr/tmp/cca247561.o -lg++ -lgcc -lc -lgcc
  38. ----Normal output-------------------------------------------------------------
  39. # a.out
  40. Begin test
  41. Blah
  42. Blah bbbbbbbbbbbbbbb
  43. ----Redirected output---------------------------------------------------------
  44. # a.out 2>&1 | cat
  45. Begin test
  46. ------------------------------------------------------------------------------
  47.  
  48. Everything after the first line is lost. I'll have a look at it, 
  49. just trying to figure out how to debug such a thing. ;-)
  50.  
  51. Martin
  52. -- 
  53.  _____ _____
  54. |     |___  |   Martin Junius           FIDO:      2:242/6.1
  55. | | | |   | |   Communication Networks  Internet:  mj@dfv.rwth-aachen.de
  56. |_|_|_|@work|   Aachen U of Technology  Phone:     ++49-241-8790220 (voice)
  57.  
  58.