linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC5200 + boa webserver + CGI + broken pipe
@ 2007-01-09 18:01 Daniel Martineschen
  2007-01-10  0:54 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Martineschen @ 2007-01-09 18:01 UTC (permalink / raw)
  To: linuxppc-embedded

Hi all,
I'm working in a MPC5200-based board with Denx Linux, kernel 2.4.25,
ELDK 3.1.1. The board uses the boa webserver to handle CGI scripts,
which communicate to a proprietary application and read data from a
database. The problem is that sometimes (actually, very often) these
CGI scripts end up causing a "pipe write: Broken pipe" message from
boa when the requested page is reloaded too fast on the web browser or
the user clicks "too fast" on links of the page. ("too fast" would be
to click a link 5 or 6 times within a second)

The "broken pipe" message is as follows:

10.0.0.3 - - [09/Jan/2007:12:50:09 +0000] request "GET
/.../index.cgi?run=command HTTP/1.1"  "/.../index.cgi"): pipe write:
Broken pipe

After that, no page can be loaded.
Additionally, the system breaks (but it doesn't happen all the time)
and reports following message (repeated 3 or 4 times before total
freeze):

Machine check in kernel mode.
Caused by (from SRR1=41030): Transfer error ack signal
Oops: machine check, sig: 7
NIP: C00089B8 XER: 00000000 LR: C00089E8 SP: C0841DE0 REGS: c0841d30
TRAP: 0200    Not tainted
MSR: 00041030 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c0840000[737] 'application' Last syscall: 162
last math c08e4000 last altivec 00000000
GPR00: 402FF520 C0841DE0 C0840000 C0131D20 00001032 00000001 FFFFD49C 00000001
GPR08: FFFFD49C 00000000 C01600EF C0841CF0 C0180000 101820C8 00000000 3D126FC0
GPR16: 00000000 000002AC 10180000 10180000 00001032 00841E60 00000000 C0005CC8
GPR24: C0005EC8 C0130000 C0130000 92492493 0D000000 00000002 402FF520 00000000
Call backtrace:
C00089E8 C000856C C0005E48 C0005CC8 C0006E24 C0005A7C

I've googled and found some emails regarding this problem, but I
couldn't figure out what caused this crash. Some said that this
problem occurs when boa receives a SIGPIPE, and because boa simply
ignores this signal.
These crashes are too frequent and even if the board uses root
filesystem via NFS this problem appears. Then, when I try to re-run
the proprietary application and refresh the page from browser, the
system freezes with either a "Bus error" signal or a SIGSEG.

Does anyone have any idea about this problem? I don't know if I
described the problem properly, but it seems that the source is the
boa webserver. I don't have much time to test other webservers, so if
someone has a clue to solve (even partially) this, please let me
know... If the solution is to change the webserver (maybe because boa
is really not reliable)

thanks in advance
Daniel

-- 
---
Daniel Martineschen

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

* Re: MPC5200 + boa webserver + CGI + broken pipe
  2007-01-09 18:01 MPC5200 + boa webserver + CGI + broken pipe Daniel Martineschen
@ 2007-01-10  0:54 ` Wolfgang Denk
  2007-01-10 11:07   ` Daniel Martineschen
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2007-01-10  0:54 UTC (permalink / raw)
  To: Daniel Martineschen; +Cc: linuxppc-embedded

In message <3acfce80701091001u27cac269q2fa227daf543a7d4@mail.gmail.com> you wrote:
>
> Additionally, the system breaks (but it doesn't happen all the time)
> and reports following message (repeated 3 or 4 times before total
> freeze):
> 
> Machine check in kernel mode.

This is most probably a hardware issue (bad SDRAM initialization?)

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Children begin by loving their parents. After a time they judge them.
Rarely, if ever, do they forgive them.                  - Oscar Wilde

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

* Re: MPC5200 + boa webserver + CGI + broken pipe
  2007-01-10  0:54 ` Wolfgang Denk
@ 2007-01-10 11:07   ` Daniel Martineschen
  2007-01-11  1:15     ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Martineschen @ 2007-01-10 11:07 UTC (permalink / raw)
  To: linuxppc-embedded

On 1/9/07, Wolfgang Denk <wd@denx.de> wrote:
> > Machine check in kernel mode.
>
> This is most probably a hardware issue (bad SDRAM initialization?)

yes, but why does it happen only when we use the boa webserver? when
boa is not running, the system works perfectly. moreover, when we
restart it (by kill-HUP-ing him), then the system shows these messages
and halts.
My point is: is it really a bad choice to use boa? can boa really be
causing so much trouble?

regards,
Daniel


-- 
---
Daniel Martineschen
http://www.inf.ufpr.br/danielm

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

* Re: MPC5200 + boa webserver + CGI + broken pipe
  2007-01-10 11:07   ` Daniel Martineschen
@ 2007-01-11  1:15     ` Wolfgang Denk
  2007-01-11 17:58       ` Daniel Martineschen
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Denk @ 2007-01-11  1:15 UTC (permalink / raw)
  To: Daniel Martineschen; +Cc: linuxppc-embedded

In message <3acfce80701100307o18a24b37q616bb0c8ec4086dd@mail.gmail.com> you wrote:
>
> > This is most probably a hardware issue (bad SDRAM initialization?)
> 
> yes, but why does it happen only when we use the boa webserver? when

Probably because this causes a specific load pattern  which  triggers
the problem.

> My point is: is it really a bad choice to use boa? can boa really be
> causing so much trouble?

No, probably any other application might have caused the same effect.

Is this a Rev. B CPU? Are you using current code? For example, do you
perform the required SDelay initialization (AN3221) ?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
So we follow our wandering paths, and the very darkness acts  as  our
guide and our doubts serve to reassure us. - Jean-Pierre de Caussade,
eighteenth-century Jesuit priest

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

* Re: MPC5200 + boa webserver + CGI + broken pipe
  2007-01-11  1:15     ` Wolfgang Denk
@ 2007-01-11 17:58       ` Daniel Martineschen
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Martineschen @ 2007-01-11 17:58 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded

On 1/10/07, Wolfgang Denk <wd@denx.de> wrote:
> In message <3acfce80701100307o18a24b37q616bb0c8ec4086dd@mail.gmail.com> you wrote:
> >
> > > This is most probably a hardware issue (bad SDRAM initialization?)
> >
> > yes, but why does it happen only when we use the boa webserver? when
>
> Probably because this causes a specific load pattern  which  triggers
> the problem.

hmm.. this problem with "broken pipes" only occur when there are too
many concurrent accesses to a CGI script, which communicates to
another application.
but, the system only freezes when we stop and re-start the webserver.
so, could be this CGI script causing all the trouble (by starting and
dying and leaving traces/ perfoming this "load pattern") ?

> Is this a Rev. B CPU? Are you using current code? For example, do you
> perform the required SDelay initialization (AN3221) ?

no, it's not Rev. B. we wanted to use it but we had some compatibility
problems.


regards

-- 
---
Daniel Martineschen
http://www.inf.ufpr.br/danielm

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

end of thread, other threads:[~2007-01-11 17:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-09 18:01 MPC5200 + boa webserver + CGI + broken pipe Daniel Martineschen
2007-01-10  0:54 ` Wolfgang Denk
2007-01-10 11:07   ` Daniel Martineschen
2007-01-11  1:15     ` Wolfgang Denk
2007-01-11 17:58       ` Daniel Martineschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).