All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eial Czerwacki <eial@scalemp.com>
To: buildroot@busybox.net
Subject: [Buildroot] segfault when running a simple c program on env build with buildroot
Date: Thu, 09 Feb 2012 16:48:30 +0200	[thread overview]
Message-ID: <4F33DCBE.7080606@scalemp.com> (raw)

Hello All,

I have a small env built with buildroot based on busybox-1.19.2 and
uclibc-0.9.32.
I've included gcc into it and I'm trying to build and run the following
program but it segfaults:

sh-4.1# cat test.c
int main() { return 0; }
sh-4.1# gcc -o a test.c
sh-4.1# ls -l a
-rwxr-xr-x    1 root     root         11553 Feb  9 07:44 a
sh-4.1# ./a
Segmentation fault
sh-4.1# dmesg | tail -1
<6>[634724.545000] a[24405]: segfault at 0 ip (null) sp bfd8fc7c error 4

my buildroot config is attached and the version in use a snapshot from
the date 10/9/2011.

any ideas why?

Eial.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: buildroot.config
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20120209/70e1170b/attachment-0001.ksh>

             reply	other threads:[~2012-02-09 14:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-09 14:48 Eial Czerwacki [this message]
2012-02-09 15:09 ` [Buildroot] segfault when running a simple c program on env build with buildroot Thomas Petazzoni
2012-02-09 15:11 ` Thomas Petazzoni
2012-02-09 15:16   ` Eial Czerwacki
2012-02-09 15:54     ` Thomas Petazzoni
2012-02-12  7:14       ` Eial Czerwacki
2012-02-12  8:25         ` Eial Czerwacki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F33DCBE.7080606@scalemp.com \
    --to=eial@scalemp.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.