|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Re: Yet another interface to SWI-Prolog in mod_perlWilliam,
please, file a bug report through http://rt.cpan.org/ with all the information required to duplicate the bug (OS, SWI-Prolog, Apache, mod_perl and Yaswi versions, the apache configuration) and I will try to see what's happening next time I have some spare time (hopefully, next week). Cheers, - Salva ----- Original Message ---- > From: william <yingun@...> > To: prolog@... > Sent: Saturday, May 24, 2008 7:17:49 PM > Subject: [SWIPL] Yet another interface to SWI-Prolog in mod_perl > > I am trying to run the Yaswi > http://search.cpan.org/~salva/Language-Prolog-Yaswi-0.14/Yaswi.pm > module in mod_perl, > > use CGI qw(:standard); > print header; > > use Language::Prolog::Yaswi qw(:query :run); > use Language::Prolog::Types::overload; > use Language::Prolog::Sugar functors => { equal => '=', > is => 'is' }, > chains => { orn => ';', > andn => ',', > add => '+' }, > vars => [qw (X Y Z)]; > > swi_set_query( equal(X, Y), > orn( equal(X, 27), > equal(Y, 'hello'))); > > while (swi_next) { > printf "Query=".swi_query()."\n"; > printf " X=%_, Y=%_\n\n", swi_var(X), swi_var(Y); > } > > > > > at first I got error > > [PROLOG SYSTEM ERROR: Thread 1 > Recursively received fatal signal 11 > > PROLOG STACK: > ] > > > It happend to solve that problem in Java, we need to add -nosignals > So I add > swi_init('-nosignals'); > > But now I got errors of > [Thu May 22 17:07:48 2008] [notice] child pid 13466 exit signal > Segmentation fault (11) > [Thu May 22 17:07:48 2008] [notice] child pid 13492 exit signal > Segmentation fault (11) > [Thu May 22 17:07:48 2008] [notice] child pid 13493 exit signal > Segmentation fault (11) > [Thu May 22 17:07:48 2008] [notice] child pid 13494 exit signal > Segmentation fault (11) > [Thu May 22 17:07:48 2008] [notice] child pid 13495 exit signal > Segmentation fault (11) > > > Is it possible to run Yaswi in mod_perl ? I got not problem when using > CGI, Thanks. > > ------------ > For further info, please visit http://www.swi-prolog.org/ > > To unsubscribe, send a plaintext mail with "unsubscribe prolog " > in its body to majordomo@... ------------ For further info, please visit http://www.swi-prolog.org/ To unsubscribe, send a plaintext mail with "unsubscribe prolog <e-mail>" in its body to majordomo@... |
|
|
Re: Yet another interface to SWI-Prolog in mod_perlOn 5/25/08, Salvador Fandino <sfandino@...> wrote:
> William, > > please, file a bug report through http://rt.cpan.org/ with all the > information required to duplicate the bug (OS, SWI-Prolog, Apache, > mod_perl and Yaswi versions, the apache configuration) and I will try > to see what's happening next time I have some spare time (hopefully, > next week). > > Cheers, > > - Salva > > > ----- Original Message ---- > > From: william <yingun@...> > > To: prolog@... > > Sent: Saturday, May 24, 2008 7:17:49 PM > > Subject: [SWIPL] Yet another interface to SWI-Prolog in mod_perl > > > > I am trying to run the Yaswi > > http://search.cpan.org/~salva/Language-Prolog-Yaswi-0.14/Yaswi.pm > > module in mod_perl, > > > > use CGI qw(:standard); > > print header; > > > > use Language::Prolog::Yaswi qw(:query :run); > > use Language::Prolog::Types::overload; > > use Language::Prolog::Sugar functors => { equal => '=', > > is => 'is' }, > > chains => { orn => ';', > > andn => ',', > > add => '+' }, > > vars => [qw (X Y Z)]; > > > > swi_set_query( equal(X, Y), > > orn( equal(X, 27), > > equal(Y, 'hello'))); > > > > while (swi_next) { > > printf "Query=".swi_query()."\n"; > > printf " X=%_, Y=%_\n\n", swi_var(X), swi_var(Y); > > } > > > > > > > > > > at first I got error > > > > [PROLOG SYSTEM ERROR: Thread 1 > > Recursively received fatal signal 11 > > > > PROLOG STACK: > > ] > > > > > > It happend to solve that problem in Java, we need to add -nosignals > > So I add > > swi_init('-nosignals'); > > > > But now I got errors of > > [Thu May 22 17:07:48 2008] [notice] child pid 13466 exit signal > > Segmentation fault (11) > > [Thu May 22 17:07:48 2008] [notice] child pid 13492 exit signal > > Segmentation fault (11) > > [Thu May 22 17:07:48 2008] [notice] child pid 13493 exit signal > > Segmentation fault (11) > > [Thu May 22 17:07:48 2008] [notice] child pid 13494 exit signal > > Segmentation fault (11) > > [Thu May 22 17:07:48 2008] [notice] child pid 13495 exit signal > > Segmentation fault (11) > > > > > > Is it possible to run Yaswi in mod_perl ? I got not problem when using > > CGI, Thanks. > > > > > ------------ > > For further info, please visit http://www.swi-prolog.org/ > > > > To unsubscribe, send a plaintext mail with "unsubscribe prolog " > > in its body to majordomo@... > > > > > Thanks, I feel grateful to get the reply from you. I had file the bug, with additional info of : I found the potential solution might be at http://gollem.science.uva.nl/SWI-Prolog/Manual/foreigninclude.html#sec:9.6.20.1 9.6.20.1 Threading, Signals and embedded Prolog But when I uninstall and install the swi-prolog from source, also using sh configure --disable-segv-handling Now I got the new error of pl: Usage: 1) pl --help Display this message (also -h) 2) pl --version Display version information (also -v) 3) pl --arch Display architecture 4) pl --dump-runtime-variables[=format] Dump link info in sh(1) format 5) pl [options] 6) pl [options] [-o output] -c file ... 7) pl [options] [-o output] -b bootfile -c file ... Options: -x state Start from state (must be first) -[LGTA]size[KMG] Specify {Local,Global,Trail,Argument} limits -t toplevel Toplevel goal -g goal Initialisation goal -f file User initialisation file -F file System initialisation file -s file Script source file [+/-]tty Allow tty control -O Optimised compilation --nosignals Do not modify any signal handling --nodebug Omit generation of debug info --quiet Quiet operation (also -q) --home=DIR Use DIR as SWI-Prolog home [Sun May 25 16:50:40 2008] [error] unable to start prolog engine at /usr/local/lib/perl/5.8.8/Language/Prolog/Yaswi/Low.pm line 63.\n Seems like the wrong command argument has been passed by Yaswi. Thanks. ------------ For further info, please visit http://www.swi-prolog.org/ To unsubscribe, send a plaintext mail with "unsubscribe prolog <e-mail>" in its body to majordomo@... |
|
|
Re: Yet another interface to SWI-Prolog in mod_perlOn 5/25/08, william <yingun@...> wrote:
> On 5/25/08, Salvador Fandino <sfandino@...> wrote: > > William, > > > > please, file a bug report through http://rt.cpan.org/ with all the > > information required to duplicate the bug (OS, SWI-Prolog, Apache, > > mod_perl and Yaswi versions, the apache configuration) and I will try > > to see what's happening next time I have some spare time (hopefully, > > next week). > > > > Cheers, > > > > - Salva > > > > > > ----- Original Message ---- > > > From: william <yingun@...> > > > To: prolog@... > > > Sent: Saturday, May 24, 2008 7:17:49 PM > > > Subject: [SWIPL] Yet another interface to SWI-Prolog in mod_perl > > > > > > I am trying to run the Yaswi > > > http://search.cpan.org/~salva/Language-Prolog-Yaswi-0.14/Yaswi.pm > > > module in mod_perl, > > > > > > use CGI qw(:standard); > > > print header; > > > > > > use Language::Prolog::Yaswi qw(:query :run); > > > use Language::Prolog::Types::overload; > > > use Language::Prolog::Sugar functors => { equal => '=', > > > is => 'is' }, > > > chains => { orn => ';', > > > andn => ',', > > > add => '+' }, > > > vars => [qw (X Y Z)]; > > > > > > swi_set_query( equal(X, Y), > > > orn( equal(X, 27), > > > equal(Y, 'hello'))); > > > > > > while (swi_next) { > > > printf "Query=".swi_query()."\n"; > > > printf " X=%_, Y=%_\n\n", swi_var(X), swi_var(Y); > > > } > > > > > > > > > > > > > > > at first I got error > > > > > > [PROLOG SYSTEM ERROR: Thread 1 > > > Recursively received fatal signal 11 > > > > > > PROLOG STACK: > > > ] > > > > > > > > > It happend to solve that problem in Java, we need to add -nosignals > > > So I add > > > swi_init('-nosignals'); > > > > > > But now I got errors of > > > [Thu May 22 17:07:48 2008] [notice] child pid 13466 exit signal > > > Segmentation fault (11) > > > [Thu May 22 17:07:48 2008] [notice] child pid 13492 exit signal > > > Segmentation fault (11) > > > [Thu May 22 17:07:48 2008] [notice] child pid 13493 exit signal > > > Segmentation fault (11) > > > [Thu May 22 17:07:48 2008] [notice] child pid 13494 exit signal > > > Segmentation fault (11) > > > [Thu May 22 17:07:48 2008] [notice] child pid 13495 exit signal > > > Segmentation fault (11) > > > > > > > > > Is it possible to run Yaswi in mod_perl ? I got not problem when using > > > CGI, Thanks. > > > > > > > > ------------ > > > For further info, please visit http://www.swi-prolog.org/ > > > > > > To unsubscribe, send a plaintext mail with "unsubscribe prolog " > > > in its body to majordomo@... > > > > > > > > > > > > > > Thanks, I feel grateful to get the reply from you. > > I had file the bug, with additional info of : > > I found the potential solution might be at > http://gollem.science.uva.nl/SWI-Prolog/Manual/foreigninclude.html#sec:9.6.20.1 > > 9.6.20.1 Threading, Signals and embedded Prolog > > But when I uninstall and install the swi-prolog from source, also using > sh configure --disable-segv-handling > > Now I got the new error of > > pl: Usage: > 1) pl --help Display this message (also -h) > 2) pl --version Display version information (also -v) > 3) pl --arch Display architecture > 4) pl --dump-runtime-variables[=format] > Dump link info in sh(1) format > 5) pl [options] > 6) pl [options] [-o output] -c file ... > 7) pl [options] [-o output] -b bootfile -c file ... > Options: > -x state Start from state (must be first) > -[LGTA]size[KMG] Specify {Local,Global,Trail,Argument} limits > -t toplevel Toplevel goal > -g goal Initialisation goal > -f file User initialisation file > -F file System initialisation file > -s file Script source file > [+/-]tty Allow tty control > -O Optimised compilation > --nosignals Do not modify any signal handling > --nodebug Omit generation of debug info > --quiet Quiet operation (also -q) > --home=DIR Use DIR as SWI-Prolog home > [Sun May 25 16:50:40 2008] [error] unable to start prolog engine at > /usr/local/lib/perl/5.8.8/Language/Prolog/Yaswi/Low.pm line 63.\n > > Seems like the wrong command argument has been passed by Yaswi. > > Thanks. > Hello Salvador, I had spent many many hours, since morning trying to solve this error, could you help me what is going on here ? I would be very happy if that could be solved. Thanks. when I uninstall and install the swi-prolog from source, also using sh configure --disable-segv-handling Now I got the new error of pl: Usage: 1) pl --help Display this message (also -h) 2) pl --version Display version information (also -v) 3) pl --arch Display architecture 4) pl --dump-runtime-variables[=format] Dump link info in sh(1) format 5) pl [options] 6) pl [options] [-o output] -c file ... 7) pl [options] [-o output] -b bootfile -c file ... Options: -x state Start from state (must be first) -[LGTA]size[KMG] Specify {Local,Global,Trail,Argument} limits -t toplevel Toplevel goal -g goal Initialisation goal -f file User initialisation file -F file System initialisation file -s file Script source file [+/-]tty Allow tty control -O Optimised compilation --nosignals Do not modify any signal handling --nodebug Omit generation of debug info --quiet Quiet operation (also -q) --home=DIR Use DIR as SWI-Prolog home [Sun May 25 16:50:40 2008] [error] unable to start prolog engine at /usr/local/lib/perl/5.8.8/Language/Prolog/Yaswi/Low.pm line 63.\n Seems like the wrong command argument has been passed by Yaswi. Thanks. ------------ For further info, please visit http://www.swi-prolog.org/ To unsubscribe, send a plaintext mail with "unsubscribe prolog <e-mail>" in its body to majordomo@... |
| Free Forum Powered by Nabble | Forum Help |