Hi!
I'm having a problem with a PostgreSQL query in Iliad. The code is quite simple (it calls a stored function) and works flawlessly if executed from the browser or from gst. The error I get seems to be a memory issue: /usr/local/share/smalltalk/kernel/../scripts/Remote.st:281: Aborted /usr/local/share/smalltalk/kernel/../scripts/Remote.st:281: Error occurred while not in byte code interpreter!! /usr/local/bin/../lib/libgst.so.7[0x7fb4b52af037] /lib64/libc.so.6[0x37056332f0] /lib64/libc.so.6(gsignal+0x35)[0x3705633275] /lib64/libc.so.6(abort+0x175)[0x3705634a55] /usr/local/bin/../lib/libgst.so.7[0x7fb4b528572b] /usr/local/bin/../lib/libsigsegv.so.0[0x7fb4b5055cdd] /lib64/libc.so.6[0x37056332f0] /usr/lib64/libpq.so[0x7fb4b4094770] /usr/lib64/libpq.so(PQgetResult+0x20)[0x7fb4b40962f0] /usr/lib64/libpq.so[0x7fb4b4096456] Bèrto -- ============================== Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement viole les droits du peuple, l'insurrection est, pour le peuple et pour chaque portion du peuple, le plus sacré des droits et le plus indispensable des devoirs. _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
BTW, I have a number of other such calls here and there, and all of
them work as expected. On 15 April 2010 22:09, Bèrto ëd Sèra <[hidden email]> wrote: > Hi! > > I'm having a problem with a PostgreSQL query in Iliad. The code is > quite simple (it calls a stored function) and works flawlessly if > executed from the browser or from gst. The error I get seems to be a > memory issue: > > /usr/local/share/smalltalk/kernel/../scripts/Remote.st:281: Aborted > /usr/local/share/smalltalk/kernel/../scripts/Remote.st:281: Error > occurred while not in byte code interpreter!! > /usr/local/bin/../lib/libgst.so.7[0x7fb4b52af037] > /lib64/libc.so.6[0x37056332f0] > /lib64/libc.so.6(gsignal+0x35)[0x3705633275] > /lib64/libc.so.6(abort+0x175)[0x3705634a55] > /usr/local/bin/../lib/libgst.so.7[0x7fb4b528572b] > /usr/local/bin/../lib/libsigsegv.so.0[0x7fb4b5055cdd] > /lib64/libc.so.6[0x37056332f0] > /usr/lib64/libpq.so[0x7fb4b4094770] > /usr/lib64/libpq.so(PQgetResult+0x20)[0x7fb4b40962f0] > /usr/lib64/libpq.so[0x7fb4b4096456] > > Bèrto > -- > ============================== > Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement > viole les droits du peuple, l'insurrection est, pour le peuple et pour > chaque portion du peuple, le plus sacré des droits et le plus > indispensable des devoirs. > -- ============================== Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement viole les droits du peuple, l'insurrection est, pour le peuple et pour chaque portion du peuple, le plus sacré des droits et le plus indispensable des devoirs. _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
In reply to this post by Bèrto ëd Sèra
On 04/15/2010 09:09 PM, Bèrto ëd Sèra wrote:
> Hi! > > I'm having a problem with a PostgreSQL query in Iliad. The code is > quite simple (it calls a stored function) and works flawlessly if > executed from the browser or from gst. The error I get seems to be a > memory issue: > > /usr/local/share/smalltalk/kernel/../scripts/Remote.st:281: Aborted > /usr/local/share/smalltalk/kernel/../scripts/Remote.st:281: Error > occurred while not in byte code interpreter!! > /usr/local/bin/../lib/libgst.so.7[0x7fb4b52af037] > /lib64/libc.so.6[0x37056332f0] > /lib64/libc.so.6(gsignal+0x35)[0x3705633275] > /lib64/libc.so.6(abort+0x175)[0x3705634a55] > /usr/local/bin/../lib/libgst.so.7[0x7fb4b528572b] > /usr/local/bin/../lib/libsigsegv.so.0[0x7fb4b5055cdd] > /lib64/libc.so.6[0x37056332f0] > /usr/lib64/libpq.so[0x7fb4b4094770] > /usr/lib64/libpq.so(PQgetResult+0x20)[0x7fb4b40962f0] > /usr/lib64/libpq.so[0x7fb4b4096456] Does it happen _always_? If so, you should try running it under gdb. Just prepend gdb --args to the gst-remote invocation, then do handle SIGSEGV noprint run ... <reproduce the issue> ... bt and post the bt output here. Paolo _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
Hi!
I suppose a number of people are going to share my ignorance, so I post this to the general list. I need to produce a gdb trace for a probable bug in the gst - postgresql interface. This is my first time ever with gbd, so I dig out a guide for it and find it here: http://linux.bytesex.org/gdb.html My software is Ilad based, so it actually runs out of a bash script, gdb seems to want an executable. So okay, I'll try and make it step by step. I run (as a normal user) [bertodsera@fedora-acer7520 ambaradan]$ gdb gst-remote GNU gdb (GDB) Fedora (6.8.50.20090302-40.fc11) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... (gdb) --eval 'Iliad.SwazooIliad stop' Undefined command: "--eval". Try "help". (gdb) run --eval 'Iliad.SwazooIliad stop' Starting program: /usr/local/bin/gst-remote --eval 'Iliad.SwazooIliad stop' [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7d497bc in _gst_dictionary_add (dictionaryOOP=0x7fab157eb030, associationOOP=0x7fab157f5000) at dict.c:1863 1863 SET_ASSOCIATION_VALUE (associationOOP, value); Now... this is obviously a problem with what I'm doing on gdb, since I never had a problem in executing this command form inside the script. Where am I going wrong? Bèrto _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
More precisely this is the bt for it:
bertodsera@fedora-acer7520 ambaradan]$ gdb gst-remote GNU gdb (GDB) Fedora (6.8.50.20090302-40.fc11) Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... (gdb) run --eval 'Iliad.SwazooIliad stop' Starting program: /usr/local/bin/gst-remote --eval 'Iliad.SwazooIliad stop' [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7d497bc in _gst_dictionary_add (dictionaryOOP=0x7fab157eb030, associationOOP=0x7fab157f5000) at dict.c:1863 1863 SET_ASSOCIATION_VALUE (associationOOP, value); (gdb) bt #0 0x00007ffff7d497bc in _gst_dictionary_add (dictionaryOOP=0x7fab157eb030, associationOOP=0x7fab157f5000) at dict.c:1863 #1 0x00007ffff7d4985d in add_smalltalk (globalName=<value optimized out>, globalValue=0x7fab157eca00) at dict.c:1053 #2 0x00007ffff7d49afc in init_runtime_objects () at dict.c:1076 #3 0x00007ffff7d4b9e5 in _gst_init_dictionary_on_image_load (prim_table_matches=true) at dict.c:1321 #4 0x00007ffff7d60b38 in load_snapshot (imageFd=1) at save.c:505 #5 0x00007ffff7d6129c in _gst_load_from_file (fileName=<value optimized out>) at save.c:451 #6 0x00007ffff7d3189d in _gst_initialize (kernel_dir=0x6069d0 "/usr/local/share/smalltalk/kernel", image_file=0x7ffff7da581f "gst.im", flags=40) at files.c:495 #7 0x0000000000401cac in main (argc=<value optimized out>, argv=0x7fffffffdfc8) at gst-tool.c:541 (gdb) quit On 18 April 2010 21:21, Bèrto ëd Sèra <[hidden email]> wrote: > Hi! > > I suppose a number of people are going to share my ignorance, so I > post this to the general list. I need to produce a gdb trace for a > probable bug in the gst - postgresql interface. This is my first time > ever with gbd, so I dig out a guide for it and find it here: > http://linux.bytesex.org/gdb.html > > My software is Ilad based, so it actually runs out of a bash script, > gdb seems to want an executable. So okay, I'll try and make it step by > step. I run (as a normal user) > [bertodsera@fedora-acer7520 ambaradan]$ gdb gst-remote > GNU gdb (GDB) Fedora (6.8.50.20090302-40.fc11) > Copyright (C) 2009 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-redhat-linux-gnu". > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>... > (gdb) --eval 'Iliad.SwazooIliad stop' > Undefined command: "--eval". Try "help". > (gdb) run --eval 'Iliad.SwazooIliad stop' > Starting program: /usr/local/bin/gst-remote --eval 'Iliad.SwazooIliad stop' > [Thread debugging using libthread_db enabled] > > Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff7d497bc in _gst_dictionary_add > (dictionaryOOP=0x7fab157eb030, associationOOP=0x7fab157f5000) at > dict.c:1863 > 1863 SET_ASSOCIATION_VALUE (associationOOP, value); > > Now... this is obviously a problem with what I'm doing on gdb, since I > never had a problem in executing this command form inside the script. > Where am I going wrong? > > Bèrto > -- ============================== Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement viole les droits du peuple, l'insurrection est, pour le peuple et pour chaque portion du peuple, le plus sacré des droits et le plus indispensable des devoirs. _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
The bash script reads:
[bertodsera@fedora-acer7520 ambaradan]$ cat ./start.sh #!/bin/sh CURR_DIR=`pwd` echo "Killing gst-remote --server" gst-remote --eval 'Iliad.SwazooIliad stop' sleep 2 gst-remote --kill echo "Creating Iliad-Localization/package.xml ..." cd Iliad-Localization ../make_package.sh -n Iliad-Localization -s Ambaradan -p Iliad cd .. echo "Creating Ambaradan-Datamodel/package.xml ..." cd Ambaradan-Datamodel ../make_package.sh -n Ambaradan-Datamodel -s Ambaradan -p Iliad-Localization -p XML -p XML-SAXParser -p DBD-PostgreSQL cd .. echo "Creating Ambaradan-Localization/package.xml ..." cd Ambaradan-Localization ../make_package.sh -n Ambaradan-Localization -s Ambaradan -p Ambaradan-Datamodel cd .. echo "Creating Ambaradan-Application/package.xml ..." cd Ambaradan-Application ../make_package.sh -n Ambaradan-Application -s Ambaradan -p Ambaradan-Localization cd .. echo "Creating package-file ..." ./make_packages.sh echo "Creating Image ..." { echo "PackageLoader fileInPackage: 'Ambaradan'." echo "ObjectMemory snapshot: 'ambaradan.im'." } | gst -i echo "Starting server ..." gst-remote -I ambaradan.im --server & sleep 3 echo "Restarting Swazoo! startOn: 8080..." gst-remote --eval 'Iliad.SwazooIliad startOn: 8080' echo done! -- ============================== Constitution du 24 juin 1793 - Article 35. - Quand le gouvernement viole les droits du peuple, l'insurrection est, pour le peuple et pour chaque portion du peuple, le plus sacré des droits et le plus indispensable des devoirs. _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
In reply to this post by Bèrto ëd Sèra
On 04/18/2010 08:21 PM, Bèrto ëd Sèra wrote:
> Program received signal SIGSEGV, Segmentation fault. > 0x00007ffff7d497bc in _gst_dictionary_add > (dictionaryOOP=0x7fab157eb030, associationOOP=0x7fab157f5000) at > dict.c:1863 > 1863 SET_ASSOCIATION_VALUE (associationOOP, value); > > Now... this is obviously a problem with what I'm doing on gdb, since I > never had a problem in executing this command form inside the script. > Where am I going wrong? You have to run 'handle SIGSEGV noprint' as the first command when you start gdb. Paolo _______________________________________________ help-smalltalk mailing list [hidden email] http://lists.gnu.org/mailman/listinfo/help-smalltalk |
Free forum by Nabble | Edit this page |