Discussion:
Segmentation Fault
Piyush Verma
2009-07-01 09:51:46 UTC
Permalink
Hello Friends

When I am running busybox I get the message segmentation fault.

I am using "armv6l-unknown-linux-uclibc-gcc" compiled by the guide line
from CLFS Embedded with uclibc.

This compiler has successfully compile linux kernel and it's running fine.

I have compiled and copied busybox executable file in rootfile system in
seperate folder and when I turn it by ".busybox ls" it give sigmentation
fault error message.

Any body have idea how to solve this issue ?
--
Thanks & Regards

Piyush Verma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090701/0f006a04/attachment.htm>
walter harms
2009-07-01 10:00:24 UTC
Permalink
Post by Piyush Verma
Hello Friends
When I am running busybox I get the message segmentation fault.
I am using "armv6l-unknown-linux-uclibc-gcc" compiled by the guide line
from CLFS Embedded with uclibc.
This compiler has successfully compile linux kernel and it's running fine.
I have compiled and copied busybox executable file in rootfile system in
seperate folder and when I turn it by ".busybox ls" it give sigmentation
fault error message.
Any body have idea how to solve this issue ?
Hello Piyush,
please give us a change to reproduce the problem.
What version of Busybox you are using ?
What command you are using ? (i understand ./busybox ?)
How is your busybox compiled, What is enabled/disabled (see: .config) ?


re,
wh
Piyush Verma
2009-07-01 10:16:59 UTC
Permalink
Hi wh

I am using busybox-1.13.3.

I already try with and without the pathc
busybox-1.13.3-branch_update-1.patch

I also try with selecting minimum option only "ls & sh".

here is the configuration file as attachment.

Thanks & Regards

Piyush Verma
Post by walter harms
Post by Piyush Verma
Hello Friends
When I am running busybox I get the message segmentation fault.
I am using "armv6l-unknown-linux-uclibc-gcc" compiled by the guide line
from CLFS Embedded with uclibc.
This compiler has successfully compile linux kernel and it's running
fine.
Post by Piyush Verma
I have compiled and copied busybox executable file in rootfile system in
seperate folder and when I turn it by ".busybox ls" it give sigmentation
fault error message.
Any body have idea how to solve this issue ?
Hello Piyush,
please give us a change to reproduce the problem.
What version of Busybox you are using ?
What command you are using ? (i understand ./busybox ?)
How is your busybox compiled, What is enabled/disabled (see: .config) ?
re,
wh
_______________________________________________
busybox mailing list
busybox at busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
--
Thanks & Regards

Piyush Verma
Product Manager.
DIGILIFE
http://www.digilifeglobal.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090701/ac35d405/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 26326 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090701/ac35d405/attachment-0001.obj>
Denys Vlasenko
2009-07-02 22:57:41 UTC
Permalink
Post by Piyush Verma
Post by Piyush Verma
When I am running busybox I get the message segmentation fault.
When you run exactly which command?
Post by Piyush Verma
Post by Piyush Verma
I am using "armv6l-unknown-linux-uclibc-gcc" compiled by the guide line
from CLFS Embedded with uclibc.
Does it happen with the same .config on a x86 machine?
Post by Piyush Verma
I am using busybox-1.13.3.
Try 1.14.2 with the same config.
Post by Piyush Verma
I already try with and without the pathc
busybox-1.13.3-branch_update-1.patch
I don't know what this patch is.
busybox.net provides only these patches:

http://busybox.net/downloads/fixes-1.13.3/
Post by Piyush Verma
I also try with selecting minimum option only "ls & sh".
here is the configuration file as attachment.
Trying to reporduce.
Compiled 1.15.svn with it. It works:

# ./busybox ash

BusyBox v1.15.0.svn (2009-07-03 00:47:41 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# ./busybox ls
AUTHORS TODO console-tools init procps
Config.in TODO_config_nommu coreutils libbb runit
INSTALL applets debianutils libpwdgrp scripts
LICENSE arch docs loginutils selinux
Makefile archival e2fsprogs mailutils shell
Makefile.custom busybox editors miscutils sysklogd
Makefile.flags busybox_unstripped examples modutils testsuite
Makefile.help busybox_unstripped.map findutils networking util-linux
README busybox_unstripped.out include printutils


Compiled 1.13.3 with it. It works too:

# ./busybox ash

BusyBox v1.13.3 (2009-07-03 00:55:54 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# ./busybox ls
AUTHORS TODO console-tools init procps
Config.in TODO_config_nommu coreutils libbb runit
INSTALL applets debianutils libpwdgrp scripts
LICENSE arch docs loginutils selinux
Makefile archival e2fsprogs mailutils shell
Makefile.custom busybox editors miscutils sysklogd
Makefile.flags busybox_unstripped examples modutils testsuite
Makefile.help busybox_unstripped.map findutils networking util-linux
README busybox_unstripped.out include printutils



--
vda
Piyush Verma
2009-07-03 01:42:27 UTC
Permalink
Hi Denys
Post by Denys Vlasenko
When you run exactly which command?
I run ./busybox ls
Post by Denys Vlasenko
Does it happen with the same .config on a x86 machine?
When compile on x86 machine it works fine.
Post by Denys Vlasenko
Try 1.14.2 with the same config
Now I am going to try busybox 1.14.2.
Post by Denys Vlasenko
Post by Denys Vlasenko
I don't know what this patch is.
I download this from CLFS website however I will also try one suggested by
you.
Post by Denys Vlasenko
Post by Denys Vlasenko
Trying to reporduce.
Sorry I don't have idea of compiled SVN but as it sounds it will be compiled
by server side and that would be x86.
It alrady work on x86 my side. Please Correct me if I am wrong.



And yes I got another compiled BUSYBOX from BSP rootfs and that work fine.

But i still want to trace the issue as I never compile busybox.

I would like to mention that I am always compiling static busybox.


Today I am going to try to compile busybox with different available ARM
compinle and different Busybox version from latest to older.
--
Thanks & Regards

Piyush Verma
Post by Denys Vlasenko
Post by Denys Vlasenko
Post by Piyush Verma
When I am running busybox I get the message segmentation fault.
When you run exactly which command?
Post by Denys Vlasenko
Post by Piyush Verma
I am using "armv6l-unknown-linux-uclibc-gcc" compiled by the guide
line
Post by Denys Vlasenko
Post by Piyush Verma
from CLFS Embedded with uclibc.
Does it happen with the same .config on a x86 machine?
Post by Denys Vlasenko
I am using busybox-1.13.3.
Try 1.14.2 with the same config.
Post by Denys Vlasenko
I already try with and without the pathc
busybox-1.13.3-branch_update-1.patch
I don't know what this patch is.
http://busybox.net/downloads/fixes-1.13.3/
Post by Denys Vlasenko
I also try with selecting minimum option only "ls & sh".
here is the configuration file as attachment.
Trying to reporduce.
# ./busybox ash
BusyBox v1.15.0.svn (2009-07-03 00:47:41 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
# ./busybox ls
AUTHORS TODO console-tools
init procps
Config.in TODO_config_nommu coreutils
libbb runit
INSTALL applets debianutils
libpwdgrp scripts
LICENSE arch docs
loginutils selinux
Makefile archival e2fsprogs
mailutils shell
Makefile.custom busybox editors
miscutils sysklogd
Makefile.flags busybox_unstripped examples
modutils testsuite
Makefile.help busybox_unstripped.map findutils
networking util-linux
README busybox_unstripped.out include
printutils
# ./busybox ash
BusyBox v1.13.3 (2009-07-03 00:55:54 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
# ./busybox ls
AUTHORS TODO console-tools
init procps
Config.in TODO_config_nommu coreutils
libbb runit
INSTALL applets debianutils
libpwdgrp scripts
LICENSE arch docs
loginutils selinux
Makefile archival e2fsprogs
mailutils shell
Makefile.custom busybox editors
miscutils sysklogd
Makefile.flags busybox_unstripped examples
modutils testsuite
Makefile.help busybox_unstripped.map findutils
networking util-linux
README busybox_unstripped.out include
printutils
--
vda
_______________________________________________
busybox mailing list
busybox at busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090703/044c9f23/attachment.htm>
Denys Vlasenko
2009-07-03 09:37:55 UTC
Permalink
Post by Piyush Verma
Post by Denys Vlasenko
When you run exactly which command?
I run ./busybox ls
Post by Denys Vlasenko
Does it happen with the same .config on a x86 machine?
When compile on x86 machine it works fine.
Then it may be a toolchain problem.
But it may also be a busybox bug which only triggers
on that arch or even on that arch+compiler combo.

If you have time, it would be great if you can narrow
segfault down to a specific line of code in ls.c

--
vda
Piyush Verma
2009-07-04 00:27:53 UTC
Permalink
Hi Denys
I believe problem is not in ls.c but in core of busybox.

Because when I run only ./busybox which is used to list all available
command have also same problem.

As I know segmentation fault is caused by accessing unauthorized memory.


Thanks & Regards

Piyush Verma
Post by Denys Vlasenko
Post by Piyush Verma
Post by Denys Vlasenko
When you run exactly which command?
I run ./busybox ls
Post by Denys Vlasenko
Does it happen with the same .config on a x86 machine?
When compile on x86 machine it works fine.
Then it may be a toolchain problem.
But it may also be a busybox bug which only triggers
on that arch or even on that arch+compiler combo.
If you have time, it would be great if you can narrow
segfault down to a specific line of code in ls.c
--
vda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090704/d162fbd4/attachment-0001.htm>
Denys Vlasenko
2009-07-04 14:45:40 UTC
Permalink
Post by Piyush Verma
Hi Denys
I believe problem is not in ls.c but in core of busybox.
Because when I run only ./busybox which is used to list all available
command have also same problem.
Thank you for letting me know that. It took you only five emails
to provide this important information.

Where exactly does it happen?
--
vda

Piyush Verma
2009-07-03 09:33:02 UTC
Permalink
Hello Friends Thanks A lot for your cooperation.

before I was using gcc-4.3.3 and on net I see that there are some issue on
it. how ever it did not mathc to my problem but I try to compile gcc-4.4.0
toolchain and it works fine

it's great


Thanks & Regards

Piyush Verma
Post by Denys Vlasenko
Post by Piyush Verma
Post by Piyush Verma
When I am running busybox I get the message segmentation fault.
When you run exactly which command?
Post by Piyush Verma
Post by Piyush Verma
I am using "armv6l-unknown-linux-uclibc-gcc" compiled by the guide
line
Post by Piyush Verma
Post by Piyush Verma
from CLFS Embedded with uclibc.
Does it happen with the same .config on a x86 machine?
Post by Piyush Verma
I am using busybox-1.13.3.
Try 1.14.2 with the same config.
Post by Piyush Verma
I already try with and without the pathc
busybox-1.13.3-branch_update-1.patch
I don't know what this patch is.
http://busybox.net/downloads/fixes-1.13.3/
Post by Piyush Verma
I also try with selecting minimum option only "ls & sh".
here is the configuration file as attachment.
Trying to reporduce.
# ./busybox ash
BusyBox v1.15.0.svn (2009-07-03 00:47:41 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
# ./busybox ls
AUTHORS TODO console-tools
init procps
Config.in TODO_config_nommu coreutils
libbb runit
INSTALL applets debianutils
libpwdgrp scripts
LICENSE arch docs
loginutils selinux
Makefile archival e2fsprogs
mailutils shell
Makefile.custom busybox editors
miscutils sysklogd
Makefile.flags busybox_unstripped examples
modutils testsuite
Makefile.help busybox_unstripped.map findutils
networking util-linux
README busybox_unstripped.out include
printutils
# ./busybox ash
BusyBox v1.13.3 (2009-07-03 00:55:54 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
# ./busybox ls
AUTHORS TODO console-tools
init procps
Config.in TODO_config_nommu coreutils
libbb runit
INSTALL applets debianutils
libpwdgrp scripts
LICENSE arch docs
loginutils selinux
Makefile archival e2fsprogs
mailutils shell
Makefile.custom busybox editors
miscutils sysklogd
Makefile.flags busybox_unstripped examples
modutils testsuite
Makefile.help busybox_unstripped.map findutils
networking util-linux
README busybox_unstripped.out include
printutils
--
vda
_______________________________________________
busybox mailing list
busybox at busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
--
Thanks & Regards

Piyush Verma
Project Manager.
DIGILIFE
http://www.digilifeglobal.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090703/19f27508/attachment-0001.htm>
Continue reading on narkive:
Loading...