<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Armin, <div>can you please give me more details about the GNU/Linux distribution you are using for </div><div>trying to compile ZOO-Kernel ?</div><div><br></div><div>Best,</div><div><br></div><div><div><div>Le 22 mars 2011 à 18:06, Armin Burger a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Gerald<br><br>I used the command you mentioned:<br><br>./zoo_loader.cgi<br>"request=Execute&service=WPS&version=1.0.0&Identifier=HelloPy&DataInputs=a=Demo"<br><br>curl version is 7.15.5<br><br>I compiled again with -DTIGER and the command still causes a segfault,<br>backtrace is then:<br><br>Core was generated by `./zoo_loader.cgi<br>request=Execute&service=WPS&version=1.0.0&Identifier=HelloPy&D'.<br>Program terminated with signal 11, Segmentation fault.<br>#0 0xb74194db in PyObject_Malloc () from /usr/lib/libpython2.5.so.1.0<br>(gdb) bt<br>#0 0xb74194db in PyObject_Malloc () from /usr/lib/libpython2.5.so.1.0<br>#1 0xb74224da in PyString_FromString () from /usr/lib/libpython2.5.so.1.0<br>#2 0xb7413d73 in PyDict_SetItemString () from /usr/lib/libpython2.5.so.1.0<br>#3 0xb7478e66 in PyImport_Cleanup () from /usr/lib/libpython2.5.so.1.0<br>#4 0xb7484d91 in Py_Finalize () from /usr/lib/libpython2.5.so.1.0<br>#5 0x080593ec in zoo_python_support (main_conf=0xbf972848,<br>request=0x806e988, s=0x8073028, real_inputs=0xbf972840,<br>real_outputs=0xbf972844)<br> at service_internal_python.c:195<br>#6 0x0804c23b in loadServiceAndRun (myMap=0xbf982cfc, s1=0x8073028,<br>request_inputs=0x806e988, inputs=0xbf982cf0, ioutputs=0xbf982cf8,<br>eres=0xbf982ce8)<br> at zoo_service_loader.c:306<br>#7 0x0804ee5d in runRequest (request_inputs=0x806e988) at<br>zoo_service_loader.c:1770<br>#8 0x0804b201 in cgiMain () at zoo_loader.c:264<br>#9 0x080603dc in main (argc=2, argv=0xbf982e84) at cgic.c:303<br><br><br>I will checl on a nother machine as well.<br>armin<br><br><br>On Tue, Mar 22, 2011 at 5:57 PM, Gérald Fenoy <<a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a>> wrote:<br><blockquote type="cite">Armin,<br></blockquote><blockquote type="cite">it seems that the issue is lightly different from the first one.<br></blockquote><blockquote type="cite">Maybe it comes from the cURL version you are using. To confirm that<br></blockquote><blockquote type="cite">assumption, can you<br></blockquote><blockquote type="cite">try to add -DTIGER to the CFLAGS in your Makefile to then clean and<br></blockquote><blockquote type="cite">recompile the<br></blockquote><blockquote type="cite">ZOO-Kernel ?<br></blockquote><blockquote type="cite">If it works this mean that we have to look deeply in the cURL version<br></blockquote><blockquote type="cite">installed on the target<br></blockquote><blockquote type="cite">and check which one cause trouble and which one not. Or force installer to<br></blockquote><blockquote type="cite">use a specific cURL<br></blockquote><blockquote type="cite">version.<br></blockquote><blockquote type="cite">I'm currently use ZOO-Kernels linked against 7.19.6 (on GNU/Linux)<br></blockquote><blockquote type="cite">and 7.19.7 (on MacOS X)<br></blockquote><blockquote type="cite">without issue.<br></blockquote><blockquote type="cite">Something sounds odd to me in your last backtrace. Indeed it seems that the<br></blockquote><blockquote type="cite">ZOO-Kernel<br></blockquote><blockquote type="cite">is trying to download something but in your example it should not. Can you<br></blockquote><blockquote type="cite">give me the exact<br></blockquote><blockquote type="cite">command line you were using for getting such a result ?<br></blockquote><blockquote type="cite">Hope to hear from you,<br></blockquote><blockquote type="cite">Best,<br></blockquote><blockquote type="cite">Le 22 mars 2011 à 17:29, Armin Burger a écrit :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Gerald<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I followed all the steps and still get the segfault message<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><ows:Exception exceptionCode="InternalError"><br></blockquote><blockquote type="cite"> <ows:ExceptionText>ZOO Kernel failed to process your request<br></blockquote><blockquote type="cite">receiving signal 11 = SIGSEGV</ows:ExceptionText><br></blockquote><blockquote type="cite"> </ows:Exception><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If I compile with USE_DBG the it writes out a core dump file,<br></blockquote><blockquote type="cite">analyzing it gives the message<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Core was generated by `./zoo_loader.cgi<br></blockquote><blockquote type="cite">request=Execute&service=WPS&version=1.0.0&Identifier=HelloPy&D'.<br></blockquote><blockquote type="cite">Program terminated with signal 11, Segmentation fault.<br></blockquote><blockquote type="cite">#0 0xb7f317ea in curl_formadd () from /usr/lib/libcurl.so.3<br></blockquote><blockquote type="cite">(gdb) bt<br></blockquote><blockquote type="cite">#0 0xb7f317ea in curl_formadd () from /usr/lib/libcurl.so.3<br></blockquote><blockquote type="cite">#1 0xb7f41018 in curl_slist_free_all () from /usr/lib/libcurl.so.3<br></blockquote><blockquote type="cite">#2 0xb7f4cf67 in curl_easy_setopt () from /usr/lib/libcurl.so.3<br></blockquote><blockquote type="cite">#3 0x08059aaf in InternetOpen ()<br></blockquote><blockquote type="cite">#4 0x0804d4f0 in runRequest (request_inputs=0x806e988) at<br></blockquote><blockquote type="cite">zoo_service_loader.c:708<br></blockquote><blockquote type="cite">#5 0x0804b201 in cgiMain () at zoo_loader.c:264<br></blockquote><blockquote type="cite">#6 0x08060414 in main (argc=2, argv=0xbf88d584) at cgic.c:303<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">armin<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Tue, Mar 22, 2011 at 4:39 PM, Gérald Fenoy <<a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a>><br></blockquote><blockquote type="cite">wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi Armin,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I did the following steps and everything goes right.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">1) Download the SVN source tree<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">2) compile cgic206 from the SVN source tree thirds directory<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">3) go into zoo-kernel directory and run autoconf<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">4) run : ./configure --with-python<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">5) create a directory zoo-dist<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">6) copy zoo_loader.cgi and main.cfg in zoo-dist<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">7) copy zoo-services/hello-py/test_service.py and<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">zoo-services/hello-py/cgi-env/HelloPy.zcfg in zoo-dist<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">8) from the zoo-dist directory, I run the following :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">./zoo_loader.cgi<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">"request=Execute&service=WPS&version=1.0.0&Identifier=HelloPy&DataInputs=a=Demo"<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I get the hello world message included in the ExecuteResponse.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please can you try to reproduce the steps above on your platform and<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">let me know if the error still occurs ?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hope to hear from you,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Le 22 mars 2011 à 14:16, Armin Burger a écrit :<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Nick<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I tried the SVN from today, still a segfault. I tried using GDB and<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">the only debug info I get is:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Core was generated by `./zoo_loader.cgi<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&D'.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Program terminated with signal 11, Segmentation fault.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">#0 0xb70c4a61 in fileno_unlocked () from /lib/tls/libc.so.6<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">(gdb) bt<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">#0 0xb70c4a61 in fileno_unlocked () from /lib/tls/libc.so.6<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">#1 0xb73ef188 in FCGI_fileno () from /usr/lib/libfcgi.so.0<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">#2 0x0804b039 in cgiMain () at zoo_loader.c:97<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">#3 0x080602b3 in main (argc=2, argv=0xbfd81284) at cgic.c:287<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">armin<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Thu, Mar 17, 2011 at 3:42 PM, nicolas bozon <<a href="mailto:nicolas.bozon@gmail.com">nicolas.bozon@gmail.com</a>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi Armin,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">You are right, it seems we get a problem, as we could reproduce the segfault<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">this morning before going to the code sprint.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">We'll try to solve the problem with gerald today and we'lll keep you<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">informed.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Best,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Nick<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">2011/3/14 Armin Burger <<a href="mailto:armin.burger@gmail.com">armin.burger@gmail.com</a>><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi all<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">after successfully compilation and installation of the zoo_loader.cgi<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">the "GetCapabilities" and "Describe Process" work fine. But as soon as<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I try to run the Excecute request using the simple HelloPy and a<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">python serviceProvider as hello.py with<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://my.website/zoo/?Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=My%20Name">http://my.website/zoo/?Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=My%20Name</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">the zoo kernel returns a segmentation fault message like<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><?xml version="1.0" encoding="UTF-8"?><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><ows:ExceptionReport xmlns:ows="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a>"<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">xmlns:xlink="<a href="http://www.w">http://www.w</a> <a href="http://3.org/1999/xlink">3.org/1999/xlink</a>"<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">xsi:schemaLocation="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd">http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>"<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">xml:lang="en- US" version="1.1.0"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <ows:Exception exceptionCode="InternalError"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> <ows:ExceptionText>ZOO Kernel failed to process your request<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">receiving signal 11 = SIGSEGV</ows:ExceptionText><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> </ows:Exception><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"></ows:ExceptionReport><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Same happens when I run it from the command line<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">./zoo_loader.cgi<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">"Service=WPS&Request=Execute&Version=1.0.0&Identifier=HelloPy&DataInputs=a=My%20Name"<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">So it seems sort of "caught" segfault from some internal<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">functionality. But I do not know how to do some kind of debugging.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any ideas what I could try?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Armin<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Zoo-discuss mailing list<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:Zoo-discuss@gisws.media.osaka-cu.ac.jp">Zoo-discuss@gisws.media.osaka-cu.ac.jp</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://gisws.media.osaka-cu.ac.jp/mailman/listinfo/zoo-discuss">http://gisws.media.osaka-cu.ac.jp/mailman/listinfo/zoo-discuss</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Zoo-discuss mailing list<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:Zoo-discuss@gisws.media.osaka-cu.ac.jp">Zoo-discuss@gisws.media.osaka-cu.ac.jp</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://gisws.media.osaka-cu.ac.jp/mailman/listinfo/zoo-discuss">http://gisws.media.osaka-cu.ac.jp/mailman/listinfo/zoo-discuss</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Gérald Fenoy<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Gérald Fenoy<br></blockquote><blockquote type="cite"><a href="mailto:gerald.fenoy@geolabs.fr">gerald.fenoy@geolabs.fr</a><br></blockquote><blockquote type="cite"><br></blockquote></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-size: 12px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Gérald Fenoy</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:gerald.fenoy@geolabs.fr"><span class="Apple-style-span" style="color: rgb(0, 0, 238); -webkit-text-decorations-in-effect: underline; ">gerald.fenoy@geolabs.fr</span></a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><span class="Apple-style-span" style="font-size: medium;"><br></span></div></span></div></div></span></span></div></div></body></html>