* [Buildroot] Init not handling signals
@ 2013-11-12 16:27 John OSullivan
2013-11-13 20:32 ` Arnout Vandecappelle
0 siblings, 1 reply; 3+ messages in thread
From: John OSullivan @ 2013-11-12 16:27 UTC (permalink / raw)
To: buildroot
Hi,
I'm not sure if this is the correct forum to ask this question but I have
seen a few buildroot/busybox references to this problem but none with a
clear solution.
I am running buildroot-2012-05 with busybox 1.19, using the busybox init
with an inittab based on the default one provided.
In the init tab there is a trap for ctrlaltdel
::ctrlaltdel:/sbin/reboot
This line is never called after hitting ctrl alt del on a keyboard
Instead we get a signal pending on the init task
Cat /proc/1/status
---------------------------
Name: swapper
State: R (running)
Tgid: 1
Pid: 1
PPid: 0
TracerPid: 0
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 32
Groups:
Threads: 1
SigQ: 1/938
SigPnd: 0000000000000100
ShdPnd: 0000000000000002
SigBlk: 0000000000000000
SigIgn: 0000000000000000
SigCgt: 0000000000000000
CapInh: 0000000000000000
After the init process is signalled the Swapper task assumes 100% processor
occupancy and system performance degenerates. (as evidenced by top)
The kernel version is 2.6.33.3 (I also tried 2.6.39.4). This happens on a
minimal system built from buildroot without any other processes running, the
only way to recover the situation is with a reboot.
Any ideas or suggestions on what the issue might be?
I was going to try a non-busybox init but before I do that I want to make
sure that there is not an available explanation for the behaviour I am
observing.
Regards
johnos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20131112/c0ea04d5/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Init not handling signals
2013-11-12 16:27 [Buildroot] Init not handling signals John OSullivan
@ 2013-11-13 20:32 ` Arnout Vandecappelle
0 siblings, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2013-11-13 20:32 UTC (permalink / raw)
To: buildroot
On 12/11/13 17:27, John OSullivan wrote:
> Hi,
>
> I?m not sure if this is the correct forum to ask this question but I have
> seen a few buildroot/busybox references to this problem but none with a
> clear solution.
The busybox mailing list would probably be more appropriate...
>
> I am running buildroot-2012-05 with busybox 1.19, using the busybox init
> with an inittab based on the default one provided.
>
> In the init tab there is a trap for ctrlaltdel
>
> ::ctrlaltdel:/sbin/reboot
>
> This line is never called after hitting ctrl alt del on a keyboard
>
> Instead we get a signal pending on the init task
>
> Cat /proc/1/status
>
> ---------------------------
>
> Name: swapper
>
> State: R (running)
>
> Tgid: 1
>
> Pid: 1
>
> PPid: 0
>
> TracerPid: 0
>
> Uid: 0 0 0 0
>
> Gid: 0 0 0 0
>
> FDSize: 32
>
> Groups:
>
> Threads: 1
>
> SigQ: 1/938
>
> SigPnd: 0000000000000100
>
> ShdPnd: 0000000000000002
If I understand correctly, this is a SIGCHLD and a SIGINT. The SIGINT
is sent to init by the kernel when you press ctrlaltdel - so I guess you
pressed it twice.
>
> SigBlk: 0000000000000000
>
> SigIgn: 0000000000000000
>
> SigCgt: 0000000000000000
>
> CapInh: 0000000000000000
>
> After the init process is signalled the Swapper task assumes 100%
> processor occupancy and system performance degenerates. (as evidenced by top)
That seems to indicate it's getting fork-bombed. You can check that by
running ps; ps from the shell - if the two instances have very different
PIDs, then you have a fork bomb :-)
Regards,
Arnout
>
> The kernel version is 2.6.33.3 (I also tried 2.6.39.4). This happens on a
> minimal system built from buildroot without any other processes running,
> the only way to recover the situation is with a reboot.
>
> Any ideas or suggestions on what the issue might be?
>
> I was going to try a non-busybox init but before I do that I want to make
> sure that there is not an available explanation for the behaviour I am
> observing.
>
> Regards
>
> johnos
>
>
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <5282583a.e630420a.3bfb.507aSMTPIN_ADDED_BROKEN@mx.google.com>]
* [Buildroot] Init not handling signals
[not found] <5282583a.e630420a.3bfb.507aSMTPIN_ADDED_BROKEN@mx.google.com>
@ 2013-11-12 20:51 ` Thomas De Schampheleire
0 siblings, 0 replies; 3+ messages in thread
From: Thomas De Schampheleire @ 2013-11-12 20:51 UTC (permalink / raw)
To: buildroot
John OSullivan <john.osullivan@cloudiumsystems.com> wrote:
>Hi,
>
>I'm not sure if this is the correct forum to ask this question but I have
>seen a few buildroot/busybox references to this problem but none with a
>clear solution.
>
>I am running buildroot-2012-05 with busybox 1.19, using the busybox init
>with an inittab based on the default one provided.
>
>In the init tab there is a trap for ctrlaltdel
>
>::ctrlaltdel:/sbin/reboot
>
>
>
>This line is never called after hitting ctrl alt del on a keyboard
>
>Instead we get a signal pending on the init task
>
>Cat /proc/1/status
>
>---------------------------
>
>Name: swapper
>
>State: R (running)
>
>Tgid: 1
>
>Pid: 1
>
>PPid: 0
>
>TracerPid: 0
>
>Uid: 0 0 0 0
>
>Gid: 0 0 0 0
>
>FDSize: 32
>
>Groups:
>
>Threads: 1
>
>SigQ: 1/938
>
>SigPnd: 0000000000000100
>
>ShdPnd: 0000000000000002
>
>SigBlk: 0000000000000000
>
>SigIgn: 0000000000000000
>
>SigCgt: 0000000000000000
>
>CapInh: 0000000000000000
>
>
>
>After the init process is signalled the Swapper task assumes 100% processor
>occupancy and system performance degenerates. (as evidenced by top)
>
>The kernel version is 2.6.33.3 (I also tried 2.6.39.4). This happens on a
>minimal system built from buildroot without any other processes running, the
>only way to recover the situation is with a reboot.
>
>Any ideas or suggestions on what the issue might be?
>
>I was going to try a non-busybox init but before I do that I want to make
>sure that there is not an available explanation for the behaviour I am
>observing.
>
At first sight, I think the busybox mailing list is more appropriate... As far as I know, buildroot doesn't do anything special in this regard.
Best regards
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-11-13 20:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-12 16:27 [Buildroot] Init not handling signals John OSullivan
2013-11-13 20:32 ` Arnout Vandecappelle
[not found] <5282583a.e630420a.3bfb.507aSMTPIN_ADDED_BROKEN@mx.google.com>
2013-11-12 20:51 ` Thomas De Schampheleire
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox