Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] no core dumps
@ 2011-08-30  8:19 Jörg Rebenstorf
  2011-08-30 13:34 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Jörg Rebenstorf @ 2011-08-30  8:19 UTC (permalink / raw)
  To: buildroot

Hello,

I am using buildroot-2009.11.

I'd like to know how to enable the linux core dump feature in buildroot.
I have written a program that intentionally makes a segfault but still I
get no core dump file. Is there something special with buildroot here?
Do I need to activate a specific build option?
As you can see below I already enabled core dumps with the 'ulimit'
command.

I would also expect the output to be:
Segmentation fault (core dumped)

GL-SH> ./simplecom -h

Usage: ./simplecom [option]
No options means all filters are disabled.
Options:
   -h, --help                      Display this information and exit.
   -v, --version                   Shows the current version and exit.
   -a, --all                       Enables all filters, see below.
   -b, --sync_bus_statistic_rx     Enables 'sync_bus_statistic_rx'
filter.
   -c, --sync_alloctable_change_rx Enables 'sync_alloctable_change_rx'
filter.
   -d, --sync_admindata_rx         Enables 'sync_admindata_rx' filter.
   -s, --sync_async_rx             Enables 'sync_async_rx' filter.
   -t, --sync_alloctable_rx        Enables 'sync_alloctable_rx' filter.
   -u, --bus_status_rx             Enables 'bus_status_rx' filter.
   -l, --sync_lock                 Enables 'sync_lock' filter.
   -o, --sync_shutdown             Enables 'sync_shutdown' filter.
   -r, --sync_ctrl_rx              Enables 'sync_ctrl_rx' filter.
   -e, --sync_eth_rx               Enables 'sync_eth_rx' filter.

Segmentation fault

GL-SH> ulimit -a
time(seconds)        unlimited
file(blocks)         unlimited
data(kb)             unlimited
stack(kb)            8192
coredump(blocks)     unlimited
memory(kb)           unlimited
locked memory(kb)    64
process              2007
nofiles              1024
vmemory(kb)          unlimited
locks                unlimited
GL-SH> 

Cheers,
Crayor
-- 
G.i.N. Gesellschaft f?r industrielle Netzwerke GmbH
Dipl.-Inform. J?rg Rebenstorf
Raiffeisenstr. 15
D-64347 Griesheim
Telefon: +49 6155 - 8259 - 0
Telefax: +49 6155 - 8259 - 11
E-Mail:   joerg.rebenstorf at gin.de
Internet: http://www.gin.de
Sitz: Griesheim
Registergericht: Amtsgericht Darmstadt, HRB 5068
Gerichtsstand: Darmstadt
USt.-ID-Nr. DE 111633284
WEEE-Reg.-Nr. DE 20824942
Gesch?ftsf?hrer:
Dipl.-Ing. Wolfgang Bassenauer
Dipl.-Inform. Andreas Schoenberg

IMPORTANT NOTICE:
This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by email.
The above information is automatically added to this e-mail. This addition does not constitute a representation that the content of this e-mail is legally relevant and/or is intended to be legally binding upon G.i.N. mbH.
Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110830/8baca810/attachment.asc>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] no core dumps
  2011-08-30  8:19 [Buildroot] no core dumps Jörg Rebenstorf
@ 2011-08-30 13:34 ` Thomas Petazzoni
  2011-08-31  5:58   ` Jörg Rebenstorf
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2011-08-30 13:34 UTC (permalink / raw)
  To: buildroot

Hello,

Le Tue, 30 Aug 2011 10:19:22 +0200,
J?rg Rebenstorf <Joerg.Rebenstorf@GiN.de> a ?crit :

> I am using buildroot-2009.11.
> 
> I'd like to know how to enable the linux core dump feature in
> buildroot. I have written a program that intentionally makes a
> segfault but still I get no core dump file. Is there something
> special with buildroot here? Do I need to activate a specific build
> option? As you can see below I already enabled core dumps with the
> 'ulimit' command.

Do you have ELF core dumps enabled in your kernel configuration?

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] no core dumps
  2011-08-30 13:34 ` Thomas Petazzoni
@ 2011-08-31  5:58   ` Jörg Rebenstorf
  0 siblings, 0 replies; 3+ messages in thread
From: Jörg Rebenstorf @ 2011-08-31  5:58 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

no, 'ELF core dumps' hasn't been activated. That you for pointing it
out.

General Setup --->
   Configure standard kernel features --->
      Enable ELF core dumps

I enabled it and now it works as expected.

Cheers,
Crayor

On Tue, 2011-08-30 at 15:34 +0200, Thomas Petazzoni wrote:
> Hello,
> 
> Le Tue, 30 Aug 2011 10:19:22 +0200,
> J?rg Rebenstorf <Joerg.Rebenstorf@GiN.de> a ?crit :
> 
> > I am using buildroot-2009.11.
> > 
> > I'd like to know how to enable the linux core dump feature in
> > buildroot. I have written a program that intentionally makes a
> > segfault but still I get no core dump file. Is there something
> > special with buildroot here? Do I need to activate a specific build
> > option? As you can see below I already enabled core dumps with the
> > 'ulimit' command.
> 
> Do you have ELF core dumps enabled in your kernel configuration?
> 
> Regards,
> 
> Thomas
> -- 
> Thomas Petazzoni, Free Electrons
> Kernel, drivers, real-time and embedded Linux
> development, consulting, training and support.
> http://free-electrons.com
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
G.i.N. Gesellschaft f?r industrielle Netzwerke GmbH
Dipl.-Inform. J?rg Rebenstorf
Raiffeisenstr. 15
D-64347 Griesheim
Telefon: +49 6155 - 8259 - 0
Telefax: +49 6155 - 8259 - 11
E-Mail:   joerg.rebenstorf at gin.de
Internet: http://www.gin.de
Sitz: Griesheim
Registergericht: Amtsgericht Darmstadt, HRB 5068
Gerichtsstand: Darmstadt
USt.-ID-Nr. DE 111633284
WEEE-Reg.-Nr. DE 20824942
Gesch?ftsf?hrer:
Dipl.-Ing. Wolfgang Bassenauer
Dipl.-Inform. Andreas Schoenberg

IMPORTANT NOTICE:
This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by email.
The above information is automatically added to this e-mail. This addition does not constitute a representation that the content of this e-mail is legally relevant and/or is intended to be legally binding upon G.i.N. mbH.
Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110831/945c27fb/attachment.asc>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-31  5:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30  8:19 [Buildroot] no core dumps Jörg Rebenstorf
2011-08-30 13:34 ` Thomas Petazzoni
2011-08-31  5:58   ` Jörg Rebenstorf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox