[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Basic, but what the hell am I doing wrong here?



On Thu, 2004-06-10 at 21:42, William Ballard wrote:
> On Thu, Jun 10, 2004 at 09:36:04PM -0400, Stephen Touset wrote:
> > read(3, "#include <fstream>\n\nusing namesp"..., 8192) = 218
> > read(3, "", 4096)                       = 0
> > --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> > +++ killed by SIGSEGV +++
> 
> Shouldn't you get symbols for read() and step into that?
> And step into the kernel if that is opaque to you?
> 
> Looks like you are stepping over the NULL pointer being dereferenced in 
> read() somewhere.

But when it comes to it, I'm using ifstream correctly aren't I? This
shouldn't be something that deep--it's either something in my code
(extremely probable) or a very bad bug in the C library (extremely
unlikely) or kernel handling.



Reply to: