Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#95 closed defect (fixed)

Select statement return Segmentation fault

Reported by: barboni@… Owned by: Peter Baumann
Priority: major Milestone:
Component: conversion Version:
Keywords: Cc:
Complexity: Medium

Description

The select statement with option "—out file" return Segmentation fault. The same query with option "—out hex" or "—out string" works as expected

example:
rasql -q 'select png(m) from rgb as m' —out file —user rasadmin
—passwd rasadmin
rasql: rasdaman query tool v1.0, rasdaman v8 — generated on 19.12.2011
14:48:29.
opening database RASBASE at localhost:7001...ok
Executing retrieval query…Segmentation fault

The system works well since git commit "59b19b884c7dfdbbe463783818e7ee4c9638ed95" of "Wed Nov 23 09:19:12 2011"
The problem appears compiling the git commit from version "d89e8f24386f2d3375ac887bead1bc9f084ca4c5" of "Thu Dec 15 18:14:31 2011"

I suppose this error was introduced by the patch number "1e406e315d255b6367c6d45bce47afa54b6e9c31" of "Mon Dec 12 10:00:46 2011" labeled "Propagate the conversion format to the client (fixes ticket:77)"

The server is a Scientific Linux release 6.0 (Carbon)
$ gcc —version
gcc (GCC) 4.4.4 20100726 (Red Hat 4.4.4-13)

There are no error logged by rasdaman on files N*.log and file rasmgr.log

The output using gdb rasql is:
/usr/local/rasdaman-8.2/bin/rasql: rasdaman query tool v1.0, rasdaman v8 — generated on 19.12.2011 17:33:09.
opening database RASBASE at localhost:7001...ok
Executing retrieval query…
Program received signal SIGSEGV, Segmentation fault.
0x0000003f57d9e55e in RnpClientComm::doTransferDecompression(r_GMarray*, r_Base_Type const*, r_Data_Format, unsigned long) () from /usr/lib64/libgdal.so.1
Missing separate debuginfos, use: debuginfo-install cfitsio-3.240-2.el6.x86_64 cyrus-sasl-lib-2.1.23-8.el6.x86_64 expat-2.0.1-9.1.el6.x86_64 gdal-1.8.1-1.eox3.el6.x86_64 geos-3.3.1-1.el6.x86_64 giflib-4.1.6-3.1.el6.x86_64 glibc-2.12-1.47.el6.x86_64 hdf5-1.8.5.patch1-5.el6.x86_64 jasper-libs-1.900.1-15.el6_1.1.x86_64 keyutils-libs-1.4-1.el6.x86_64 krb5-libs-1.9-22.el6_2.1.x86_64 libICE-1.0.6-1.el6.x86_64 libSM-1.1.0-7.1.el6.x86_64 libX11-1.3-2.el6.x86_64 libXau-1.0.5-1.el6.x86_64 libcom_err-1.41.12-3.el6.x86_64 libcurl-7.19.7-26.el6_1.1.x86_64 libgcc-4.4.4-13.el6.x86_64 libgeotiff-1.3.0-4.el6.x86_64 libidn-1.18-2.el6.x86_64 libjpeg-6b-46.el6.x86_64 libpng-1.2.46-1.el6_1.x86_64 libselinux-2.0.94-2.el6.x86_64 libspatialite-2.4.0-0.6.RC4.el6.x86_64 libssh2-1.2.2-7.el6.x86_64 libstdc++-4.4.4-13.el6.x86_64 libtiff-3.9.4-1.el6_0.3.x86_64 libtool-ltdl-2.2.6-15.5.el6.x86_64 libuuid-2.17.2-12.4.el6.x86_64 libxcb-1.5-1.el6.x86_64 mysql-libs-5.1.52-1.el6_0.1.x86_64 ncurses-libs-5.7-3.20090208.el6.x86_64 netcdf-4.1.1-3.el6.2.x86_64 netpbm-10.47.05-11.el6.x86_64 nspr-4.8.8-1.el6_1.x86_64 nss-3.12.10-2.el6_1.x86_64 nss-softokn-freebl-3.12.9-3.el6.x86_64 nss-util-3.12.10-1.el6_1.x86_64 ogdi-3.2.0-0.14.beta2.el6.x86_64 openldap-2.4.19-15.el6_0.2.x86_64 openssl-1.0.0-10.el6_1.5.x86_64 postgresql-libs-8.4.9-1.el6_1.1.x86_64 proj-4.7.0-2.el6.x86_64 readline-6.0-3.el6.x86_64 sqlite-3.6.20-1.el6.x86_64 unixODBC-2.2.14-11.el6.x86_64 xerces-c-3.0.1-20.el6.x86_64 zlib-1.2.3-25.el6.x86_64

Regards

Damiano

Change History (3)

comment:1 by beccati@…, 12 years ago

On Ubuntu the select statement works (but not for tiff), just tested with png for the following commit

commit b9531b595e83bf6f0ecc2b7943103adf2f7a5e46
Author: Dimitar Misev <misev@…>
Date: Sat Dec 17 15:04:31 2011 +0100

will try also on SL later
Alan

comment:2 by Dimitar Misev, 12 years ago

Resolution: fixed
Status: newclosed

Alan,

this is probably the same error as in #103, I've come across it too.

0x0000003f57d9e55e in RnpClientComm::doTransferDecompression(r_GMarray*, r_Base_Type const*, r_Data_Format, unsigned long) () from /usr/lib64/libgdal.so.1

Removing /usr/lib64/libgdal.so.1 and reinstalling GDAL should fix it.

Note: See TracTickets for help on using tickets.