On Sunday 19 October 2008 20:38:45 Jeremy Bowen wrote:
> Hi
>
> I'm having a problem with BusyBox on my AVR32 system.
>
> I'm running "BusyBox v1.12.0 (2008-10-16 09:24:36 NZDT) multi-call binary"
> which I have compiled using avr32-linux-gcc (GCC) 4.2.2-atmel.1.0.8 and
> linked against a recent SVN copy of uClibc 0.9.30-rc2-svn
>
> Running grep results in a segfault:
> grep[209]: segfault at 00000000 pc 00010ec2 sp 7f82bb34 ecr 24

That's a null pointer dereference.

> As far as I can tell this is occurring inside BusyBox from libbb/xregcomp.c
> in the "regcomp_or_errmsg()" function in the call to "regcomp()" itself.
>
> Any suggestions on what to look for would be appreciated. Thanks in
> advance.

You need to figure out what actual line is segfaulting.  I'd stick 
dprintf(2,"here\n") calls into the busybox source to track down exactly where 
the segfault happens.  (You can of course use gdb or some such, if you're 
feeling posh. :)

If you can figure out what line is causing the segfault, and what the values 
of the variables used on that line are, it'd help a lot.  Right now we don't 
know if it's a busybox problem or a uClibc problem.

> PS. Before anyone asks, I'm not using "buildroot"

Neither do I. :)

Rob
_______________________________________________
uClibc mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/uclibc

Reply via email to