[cs631apue] Differences in FTS between Linux and BSD

Jan Schaumann jschauma at stevens.edu
Sat Oct 5 16:30:04 EDT 2019


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


More information about the cs631apue mailing list