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

RE: shell problems: export segfaults



> hi,
> I just started developing for the axis boards, so this is maybe
> a known error. But:
> 
> [root@axis1 /mnt/flash/etc]349# sh
> [root@axis1 /mnt/flash/etc]377# FOO=bar; export FOO
> Segmentation fault
> [root@axis1 /mnt/flash/etc]349#
> 
> [root@axis1 /mnt/flash/etc]349# sh
> [root@axis1 /mnt/flash/etc]380# export FOO=bar
> Segmentation fault
> [root@axis1 /mnt/flash/etc]349#
> 
> ...but
> 
> [root@axis1 /mnt/flash/etc]349# sh
> [root@axis1 /mnt/flash/etc]383# builtin export FOO=bar
> [root@axis1 /mnt/flash/etc]383# echo $FOO
> bar
> 
> I tried to set up an additional lib directory for dynamic linking
> (I installed kaffe into a nfs-mounted directory) that caused the
> problems.
> 
> Besides kaffe, this is the unmodified sdk v1.22, freshly downloaded
> and compiled with kernel 2.4.14
> 
> I will try to set up a debugger session to see more closely 
> what happens
> (in case I have some spare time).
> 
> Apart from that, the system works like a charm :)
> Simon

That look just like a bug that was fixed in devboard_lx-R2_1_0.
Can you verify that apps/shells/ash/alias.c has the following
code on line 89:

                ap->next = 0;

Best regards
/Jonas