* Apache & CGI & sigsegv
@ 2000-06-28 10:30 Iso-H
0 siblings, 0 replies; 4+ messages in thread
From: Iso-H @ 2000-06-28 10:30 UTC (permalink / raw)
To: axp-list
I have run into very wierd problem with quite simple
CGI binary (coded by C++); binary just SIGSEGVs at very
beginning. It seems that there is some kind of
malloc problems; gdb's backtrace says so.
If I run CGI from command line with same input it just
works fine; CGI fails only if it is run by Apache.
This all happens only with AlphaLinux (RHL-6x) and with
this particular CGI; everything works with x86-Linux
(and Apache) just dandy.
I have tried this with two machine; PWS433a/RHL-61 and
SX164/RHL-62. All rpms are original, I haven't upgrade anything.
I'm not 100% sure, but I think CGI worked with RHL-52; I just
can't verify this now because I don't have any RHL-52 system
around.
So if anybody has run into the same kind of problem and solved it
please let me know.
Iso-H
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Apache & CGI & sigsegv
@ 2000-06-28 11:38 Phil Carmody
2000-06-28 14:42 ` Iso-H
0 siblings, 1 reply; 4+ messages in thread
From: Phil Carmody @ 2000-06-28 11:38 UTC (permalink / raw)
To: axp-list; +Cc: axp-list
On Wed, 28 June 2000, Iso-H wrote:
> I have run into very wierd problem with quite simple
> CGI binary (coded by C++); binary just SIGSEGVs at very
> beginning. It seems that there is some kind of
> malloc problems; gdb's backtrace says so.
Get out your binary chopping tool and reduce the code to the minimal criminal. Then post it here, we have coders here, we have compilers and systems here, I for one don't mind spending 10 minutes checking to see if a 20 line program crashes or not, and then thinking of workarounds, or whatever.
Phil
You're only as young as the man that you feel - Mae West
You're only as straight as the man that you feel - Dr R Thompson
_______________________________________________________________________
$1 million in prizes! 20 daily instant winners.
AltaVista Rewards: Click here to win!
http://shopping.altavista.com/e.sdc?e=3
_______________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Apache & CGI & sigsegv
2000-06-28 11:38 Apache & CGI & sigsegv Phil Carmody
@ 2000-06-28 14:42 ` Iso-H
2000-06-29 7:00 ` Solved: " Iso-H
0 siblings, 1 reply; 4+ messages in thread
From: Iso-H @ 2000-06-28 14:42 UTC (permalink / raw)
To: axp-list
On 28 Jun 2000, Phil Carmody wrote:
> On Wed, 28 June 2000, Iso-H wrote:
> > I have run into very wierd problem with quite simple
> > CGI binary (coded by C++); binary just SIGSEGVs at very
> > beginning. It seems that there is some kind of
> > malloc problems; gdb's backtrace says so.
>
> Get out your binary chopping tool and reduce the code to the
> minimal criminal. Then post it here, we have coders here, we have
> compilers and systems here, I for one don't mind spending 10 minutes
> checking to see if a 20 line program crashes or not, and then thinking
> of workarounds, or whatever.
I made stripped version of CGI, but obviously I stripped
too much because original problem disappears too ;)
I'll let you know if I can produce stripped but still buggy
version of CGI binary.
>
> Phil
>
> You're only as young as the man that you feel - Mae West
> You're only as straight as the man that you feel - Dr R Thompson
> _______________________________________________________________________
>
> $1 million in prizes! 20 daily instant winners.
> AltaVista Rewards: Click here to win!
> http://shopping.altavista.com/e.sdc?e=3
>
> _______________________________________________________________________
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
Iso-H
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Solved: Re: Apache & CGI & sigsegv
2000-06-28 14:42 ` Iso-H
@ 2000-06-29 7:00 ` Iso-H
0 siblings, 0 replies; 4+ messages in thread
From: Iso-H @ 2000-06-29 7:00 UTC (permalink / raw)
To: axp-list
On Wed, 28 Jun 2000, Iso-H wrote:
> On 28 Jun 2000, Phil Carmody wrote:
>
> > On Wed, 28 June 2000, Iso-H wrote:
> > > I have run into very wierd problem with quite simple
> > > CGI binary (coded by C++); binary just SIGSEGVs at very
> > > beginning. It seems that there is some kind of
> > > malloc problems; gdb's backtrace says so.
> >
> > Get out your binary chopping tool and reduce the code to the
> > minimal criminal. Then post it here, we have coders here, we have
> > compilers and systems here, I for one don't mind spending 10 minutes
> > checking to see if a 20 line program crashes or not, and then thinking
> > of workarounds, or whatever.
>
> I made stripped version of CGI, but obviously I stripped
> too much because original problem disappears too ;)
>
> I'll let you know if I can produce stripped but still buggy
> version of CGI binary.
Eventually I found a char array which was freed too early.
But problem was still interesting (and most misleading!)
because it appeared only with AlphaLinux & Apache...
>
>
> >
> > Phil
> >
> > You're only as young as the man that you feel - Mae West
> > You're only as straight as the man that you feel - Dr R Thompson
> > _______________________________________________________________________
> >
> > $1 million in prizes! 20 daily instant winners.
> > AltaVista Rewards: Click here to win!
> > http://shopping.altavista.com/e.sdc?e=3
> >
> > _______________________________________________________________________
> >
> > --
> > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
> >
> >
>
> Iso-H
>
> --
>
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
Iso-H
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-06-29 7:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-28 11:38 Apache & CGI & sigsegv Phil Carmody
2000-06-28 14:42 ` Iso-H
2000-06-29 7:00 ` Solved: " Iso-H
-- strict thread matches above, loose matches on Subject: below --
2000-06-28 10:30 Iso-H
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox