help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-cgicc] FreeBSD Problem


From: Alexander J. Oss
Subject: Re: [help-cgicc] FreeBSD Problem
Date: Tue, 28 Oct 2003 21:05:49 -0500

Hm.  Can you trace through the cgicc library execution to find out which
statement is generating the bus error?

----- Original Message ----- 
From: "Guilherme A. Mendes" <address@hidden>
To: "Alexander J. Oss" <address@hidden>
Cc: <address@hidden>
Sent: Tuesday, October 28, 2003 6:21 AM
Subject: Re: [help-cgicc] FreeBSD Problem


They are not equal. The code below runs correctly on Linux.
Are there other ways to parse the POST/GET variables?


Em Ter, 2003-10-28 às 02:41, Alexander J. Oss escreveu:
> Have you confirmed that your form_iterator is not equal to
> CGI.getElements.end()?  You may be dereferencing an invalid iterator.
>
> ----- Original Message ----- 
> From: "Guilherme A. Mendes" <address@hidden>
> To: <address@hidden>
> Cc: <address@hidden>
> Sent: Monday, October 27, 2003 9:31 PM
> Subject: Re: [help-cgicc] FreeBSD Problem
>
>
> #include <iostream>
> #include "myHeader.h"
> using namespace std;
> using namespace cgicc;
>
> int main(int argc, char **argv) {
>         Cgicc CGI;
>
>         cout << "<B>TEST!!! <BR><BR>";
>         cout << CGI.getVersion() << "<BR><BR>";
>         cout << CGI.getEnvironment().getRequestMethod()
> << "<br><br>";
>
>     form_iterator name = CGI.getElement("c");
>     cout << "valor: " << **name << endl;
>     return 0;
> }
>
> When I run it:
>
> ---------
> Content-Type: text/html
>
> Bus error (core dumped)
> ---------
>
> I'm starting cgicc in the file "myHeader.h". I tried to run a
> example from cgicc site, but it didnt work out.
>
> Thanks,
> GMendes
>
>
>
> > Can you post the entire code (or a minimal program that repr
> oduces the
> > error)?
> >
> > ----- Original Message ----- 
> > From: "Guilherme A. Mendes" <address@hidden>
> > To: <address@hidden>
> > Sent: Monday, October 27, 2003 8:22 AM
> > Subject: [help-cgicc] FreeBSD Problem
> >
> >
> > Hi all,
> >
> > The code below doesnt work on FreeBSD (4.9-RELEASE) gcc 2.9:
> >
> > const_form_iterator name = formData.getElement("name");
> > cout << "Your name is " << **name << '.' << br() << endl;
> >
> > I got 'bus error' when I try to run it. It works right on Li
> nux (Debian,
> > 2.4.18).
> > The script crashes when find **name.
> >
> > Thanks in advance,
> > GMendes
> >
> >
> >
> > _______________________________________________
> > help-cgicc mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/help-cgicc
> >
> >
> >
> >
> > _______________________________________________
> > help-cgicc mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/help-cgicc
> >
>
>
>
> __________________________________________
> ..: Guilherme A. Mendes
> ..: Desenv. WEB
> ..: address@hidden
>
>
>
>
> ---
> Acabe com aquelas janelinhas que pulam na sua tela.
> AntiPop-up UOL - É grátis!
> http://antipopup.uol.com.br
>
>
>
> _______________________________________________
> help-cgicc mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cgicc
>
>
>
>
> _______________________________________________
> help-cgicc mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cgicc



_______________________________________________
help-cgicc mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-cgicc






reply via email to

[Prev in Thread] Current Thread [Next in Thread]