Opened 13 years ago

Closed 13 years ago

#111 closed defect (fixed)

Segmentation fault / memory error in rasdl

Reported by: joachim.ungar@… Owned by:
Priority: major Milestone:
Component: rasdl Version:
Keywords: segmentation fault, rasdl Cc: stephan.meissl@…, joachim.ungar@…
Complexity: Medium

Description

rasdl works fine but produces a segmentation fault / shows errors:

bash-4.1$ rasdl
Using error text file: /usr/share/rasdaman//errtxts
rasdl: rasdaman schema and database manipulation tool, rasdaman v8.3 on base DBMS pgsql -- generated on 31.01.2012 13:19:37.
Usage: rasdl [options]
Options:
       -h, --help 
              print this help
[...]
   delete set type:	rasdl --database RASBASE --delsettype GreySet
   print all types:	rasdl --database RASBASE --print
   insert types:	rasdl --database RASBASE --read basictypes.dl --insert
   generate C++ header from type file:	rasdl --read basictypes.dl --hh basictypes.hh
Segmentation fault
bash-4.1$ 
bash-4.1$ rasdl -p
Using error text file: /usr/share/rasdaman//errtxts
rasdl: rasdaman schema and database manipulation tool, rasdaman v8.3 on base DBMS pgsql -- generated on 31.01.2012 13:19:37.

// rasdaman database 'RASBASE' type definitions
[...]

rasdl done.
*** glibc detected *** rasdl: free(): invalid pointer: 0x00007f981f375ed8 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x750c6)[0x7f981f04e0c6]
rasdl[0x488f8e]
rasdl(_ZN6RMInitD1Ev+0x3c)[0x48b2cc]
/lib64/libc.so.6(__cxa_finalize+0x9d)[0x7f981f00f12d]
/usr/lib64/libgdal.so.1(+0x311c86)[0x7f9821abcc86]
======= Memory map: ========
00400000-004e0000 r-xp 00000000 fd:00 45328                              /usr/bin/rasdl
006df000-006ea000 rw-p 000df000 fd:00 45328                              /usr/bin/rasdl
006ea000-006ec000 rw-p 00000000 00:00 0 
019b4000-019f7000 rw-p 00000000 00:00 0                                  [heap]
7f9816e82000-7f9816e8e000 r-xp 00000000 fd:00 13689                      /lib64/libnss_files-2.12.so
7f9816e8e000-7f981708e000 ---p 0000c000 fd:00 13689                      /lib64/libnss_files-2.12.so
7f981708e000-7f981708f000 r--p 0000c000 fd:00 13689                      /lib64/libnss_files-2.12.so
7f981708f000-7f9817090000 rw-p 0000d000 fd:00 13689                      /lib64/libnss_files-2.12.so
7f9817090000-7f9817092000 r-xp 00000000 fd:00 18051                      /usr/lib64/libXau.so.6.0.0
7f9817092000-7f9817292000 ---p 00002000 fd:00 18051                      /usr/lib64/libXau.so.6.0.0
7f9817292000-7f9817293000 rw-p 00002000 fd:00 18051                      /usr/lib64/libXau.so.6.0.0
7f9817293000-7f98172ae000 r-xp 00000000 fd:00 18095                      /usr/lib64/libxcb.so.1.1.0
7f98172ae000-7f98174ad000 ---p 0001b000 fd:00 18095                      /usr/lib64/libxcb.so.1.1.0
7f98174ad000-7f98174ae000 rw-p 0001a000 fd:00 18095                      /usr/lib64/libxcb.so.1.1.0
7f98174ae000-7f98174b2000 r-xp 00000000 fd:00 28499                      /lib64/libuuid.so.1.3.0
7f98174b2000-7f98176b1000 ---p 00004000 fd:00 28499                      /lib64/libuuid.so.1.3.0
7f98176b1000-7f98176b2000 rw-p 00003000 fd:00 28499                      /lib64/libuuid.so.1.3.0
7f98176b2000-7f98176cf000 r-xp 00000000 fd:00 4148                       /lib64/libselinux.so.1
7f98176cf000-7f98178ce000 ---p 0001d000 fd:00 4148                       /lib64/libselinux.so.1
7f98178ce000-7f98178cf000 r--p 0001c000 fd:00 4148                       /lib64/libselinux.so.1
7f98178cf000-7f98178d0000 rw-p 0001d000 fd:00 4148                       /lib64/libselinux.so.1
7f98178d0000-7f98178d1000 rw-p 00000000 00:00 0 
7f98178d1000-7f98178f7000 r-xp 00000000 fd:00 6409                       /usr/lib64/libssh2.so.1.0.1
7f98178f7000-7f9817af6000 ---p 00026000 fd:00 6409                       /usr/lib64/libssh2.so.1.0.1
7f9817af6000-7f9817af7000 rw-p 00025000 fd:00 6409                       /usr/lib64/libssh2.so.1.0.1
7f9817af7000-7f9817b3f000 r-xp 00000000 fd:00 44543                      /lib64/libldap-2.4.so.2.5.6
7f9817b3f000-7f9817d3f000 ---p 00048000 fd:00 44543                      /lib64/libldap-2.4.so.2.5.6
7f9817d3f000-7f9817d40000 r--p 00048000 fd:00 44543                      /lib64/libldap-2.4.so.2.5.6
7f9817d40000-7f9817d42000 rw-p 00049000 fd:00 44543                      /lib64/libldap-2.4.so.2.5.6
7f9817d42000-7f9817d74000 r-xp 00000000 fd:00 4948                       /lib64/libidn.so.11.6.1
7f9817d74000-7f9817f73000 ---p 00032000 fd:00 4948                       /lib64/libidn.so.11.6.1
7f9817f73000-7f9817f74000 rw-p 00031000 fd:00 4948                       /lib64/libidn.so.11.6.1
7f9817f74000-7f9818000000 r-xp 00000000 fd:00 4834                       /usr/lib64/libsqlite3.so.0.8.6
7f9818000000-7f98181ff000 ---p 0008c000 fd:00 4834                       /usr/lib64/libsqlite3.so.0.8.6
7f98181ff000-7f9818202000 rw-p 0008b000 fd:00 4834                       /usr/lib64/libsqlite3.so.0.8.6
7f9818202000-7f9818203000 rw-p 00000000 00:00 0 
7f9818203000-7f981833c000 r-xp 00000000 fd:00 27973                      /usr/lib64/libX11.so.6.3.0
7f981833c000-7f981853c000 ---p 00139000 fd:00 27973                      /usr/lib64/libX11.so.6.3.0
7f981853c000-7f9818542000 rw-p 00139000 fd:00 27973                      /usr/lib64/libX11.so.6.3.0
7f9818542000-7f9818559000 r-xp 00000000 fd:00 17327                      /usr/lib64/libICE.so.6.3.0
7f9818559000-7f9818759000 ---p 00017000 fd:00 17327                      /usr/lib64/libICE.so.6.3.0
7f9818759000-7f981875a000 rw-p 00017000 fd:00 17327                      /usr/lib64/libICE.so.6.3.0
7f981875a000-7f981875e000 rw-p 00000000 00:00 0 
7f981875e000-7f9818765000 r-xp 00000000 fd:00 17329                      /usr/lib64/libSM.so.6.0.0
7f9818765000-7f9818965000 ---p 00007000 fd:00 17329                      /usr/lib64/libSM.so.6.0.0
7f9818965000-7f9818966000 rw-p 00007000 fd:00 17329                      /usr/lib64/libSM.so.6.0.0
7f9818966000-7f98189a7000 r-xp 00000000 fd:00 12242                      /usr/lib64/libproj.so.0.6.6
7f98189a7000-7f9818ba6000 ---p 00041000 fd:00 12242                      /usr/lib64/libproj.so.0.6.6
7f9818ba6000-7f9818ba9000 rw-p 00040000 fd:00 12242                      /usr/lib64/libproj.so.0.6.6
7f9818ba9000-7f9818bb2000 r-xp 00000000 fd:00 19285                      /usr/lib64/libltdl.so.7.2.1
7f9818bb2000-7f9818db1000 ---p 00009000 fd:00 19285                      /usr/lib64/libltdl.so.7.2.1
7f9818db1000-7f9818db2000 rw-p 00008000 fd:00 19285                      /usr/lib64/libltdl.so.7.2.1
7f9818db2000-7f9818f32000 r-xp 00000000 fd:00 17229                      /usr/lib64/libgeos-3.3.1.so
7f9818f32000-7f9819131000 ---p 00180000 fd:00 17229                      /usr/lib64/libgeos-3.3.1.so
7f9819131000-7f9819142000 rw-p 0017f000 fd:00 17229                      /usr/lib64/libgeos-3.3.1.so
7f9819142000-7f981915b000 r-xp 00000000 fd:00 5503                       /usr/lib64/libsasl2.so.2.0.23
7f981915b000-7f981935a000 ---p 00019000 fd:00 5503                       /usr/lib64/libsasl2.so.2.0.23
7f981935a000-7f981935b000 r--p 00018000 fd:00 5503                       /usr/lib64/libsasl2.so.2.0.23
7f981935b000-7f981935c000 rw-p 00019000 fd:00 5503                       /usr/lib64/libsasl2.so.2.0.23
7f981935c000-7f9819394000 r-xp 00000000 fd:00 17243                      /lib64/libnspr4.so
7f9819394000-7f9819594000 ---p 00038000 fd:00 17243                      /lib64/libnspr4.soAborted

I haven't found anything suspicious in the log files though. The errors also don't seem to affect rasdaman's functionality.

I used version 8.3 from packages.eox.at and had the same problem with 8.2. Back then I switched to the compiled version in Konstantin's repository [1] which didn't have that error so I assume it has something to do with the build script on leda.eox.at.

Cheers, Joachim

[1] http://urchin.spbcas.ru/elip/

Change History (1)

comment:1 by Dimitar Misev, 13 years ago

Resolution: fixed
Status: newclosed

We have fixed this by properly compiling rasdaman against GDAL, and isolating GDAL to be used only by rasgeo.

Note: See TracTickets for help on using tickets.