[cs631apue] Differences in FTS between Linux and BSD

Elliot Wasem ewasem at stevens.edu
Sat Oct 5 17:04:51 EDT 2019


I'm sorry I forgot to get back. I'm not entirely sure what I was doing
wrong before but after a rewrite I'm now doing it correctly. I think it had
to do with me making assumptions about the state of allocated memory. Thank
you for checking up though!

On Sat, Oct 5, 2019, 4:30 PM Jan Schaumann <jschauma at stevens.edu> wrote:

> Jan Schaumann <jschauma at stevens.edu> wrote:
> > Elliot Wasem <ewasem at stevens.edu> wrote:
> >
> > > What's happening is that when I call
> > > fts_children(my_FTS_ptr, 0) after calling
> > > fts_read(my_FTS_ptr), it's segfaulting. If I print
> > > strerror(errno) right before calling
> > > fts_children(...), it says that it failed to
> > > allocate memory. When I run $gdb ./ls ./ls.core, it
> > > just says there's an error at ?? (literally prints
> > > ??) at libc.so.12.
> >
> > Your libc was not built with debugging symbols, so the
> > debugger can't tell you much about that particular
> > place in the library.  However, it should be able to
> > tell you where in _your_ program the execution
> > triggered the segfault.
>
> Did you ever sort out what your problem was?
>
> -Jan
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20191005/99343816/attachment.html>


More information about the cs631apue mailing list