Article View: gnu.gcc.help
Article #49536Help: "No such file or directory"
From: Paolo Baiardi
Date: Mon, 03 Jan 1994 16:41
Date: Mon, 03 Jan 1994 16:41
46 lines
3053 bytes
3053 bytes
I posted a message like this before Christmas, but since our news server was
down or malfunctioning, I lost some articles and don't know if someone answered
me or the message arrived.
-*-
Hard/Soft: Sparc-Sun2 Sunos 4.1.1
Gcc: gcc 2.5.4 libg++ 2.5.1
This gdb report comes from a program that was reading a c++ file for extracting
information ( like a browser, but not interactive ). During the read phase, the
program parses c++ constructs like class/data/procedure definitions, their para-
meters and so on; it works flawlessy on short files, on long ones, stops with a
message like:
Program received signal 10, Bus error
streambuf::sgetline (this=0x3, buf=0x393e0 "int typ;", n=255, delim=10,
extract_delim=-1) at sgetline.C:34
sgetline.C:34: No such file or directory.
(gdb) where
#0 streambuf::sgetline (this=0x3, buf=0x393e0 "int typ;", n=255, delim=10,
extract_delim=-1) at sgetline.C:34
#1 0x29c24 in istream::getline (this=0xf7fffb7c, buf=0x393e0 "int typ;",
len=256, delim=10) at igetline.C:26
#2 0xe2c0 in string::getline (this=0xf7fff930, flow=@0xf7fffb7c)
at /home/common/staff/kurgan/PROG/ARS2.0/SRC/IMP/string.cc:203
#3 0x3954 in treeblock::parse (this=0xf7fff9b8, fin=@0xf7fffb7c)
at /home/common/staff/kurgan/PROG/ARS2.0/SRC/DOC/reader.cc:331
#4 0xd370 in main (argc=3, argv=0xf7fffc14)
at /home/common/staff/kurgan/PROG/ARS2.0/SRC/DOC/analyzer.cc:51
buf holds the last line read ( "int typ;" ). This line changes if I modify the
c++ source file, on this case, it was the ~400th line...
Could someone enlight me ? I have compiled the code with gcc233,245,254, but I
don't gained anything. In past days I have installed gcc254 on a HP735, there
the program stops signaling ( in random places ):
"Virtual memory exeeded in 'new`"
but since the -ggdb option in not available, I'm unable to obtain more hints.
Some ideas ? May be some new() fails without being catched, I use a string class
with dynamic allocation for parsing...
Thanks in advance,
Paolo
--
+-----------------------------------------------------------------------------+
| Paolo Baiardi >kurgan@dist.dist.unige.it< |
+-----------------------------------------------------------------------------+
--
+-----------------------------------------------------------------------------+
| Paolo Baiardi >kurgan@dist.dist.unige.it< |
+-----------------------------------------------------------------------------+
Technical Details
Message-ID:
<2g9hrc$qi3@sgi.iunet.it>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!EU.net!i2unix!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f2fa9b67b9674635,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-03 12:27:57 PST Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!uknet!EU.net!i2unix!news From: kurgan@dist.dist.unige.it (Paolo Baiardi) Newsgroups: gnu.gcc.help Subject: Help: "No such file or directory" Date: 3 Jan 1994 16:41:16 GMT Organization: DIST - Universita' di Genova Lines: 46 Message-ID: <2g9hrc$qi3@sgi.iunet.it> NNTP-Posting-Host: dist.dist.unige.it Keywords: Bus Error, Bugs