On Tue, Aug 22, 2006 at 03:56:13PM +0200, Aurelien Jarno wrote: > I now have a more precise idea of the problem. The following command > produce a segfault: > > LD_ASSUME_KERNEL=2.4.1 LD_PRELOAD=/usr/lib/libaoss.so /bin/bash -x /bin/egrep > > where /bin/grep contains: > > #!/bin/sh > exec grep -E ${1+"$@"} > > Note that without LD_ASSUME_KERNEL=2.4.1 (ie using nptl instead of > linuxthreads) or using dash instead of bash, the problem goes out. > > gdb returns nothing, so I don't really know where is the problem and how > to debug it.
Can you get a core dump? Alternatively, inserting gdbserver before /bin/bash and using remote debugging sometimes helps; it perturbs the process less than gdb does. But only if the parent process is the one you need to debug. -- Daniel Jacobowitz CodeSourcery -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]