#522 closed defect (fixed)
MapGuide Crash on Linux
Reported by: | Rothgar | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 2.2 |
Component: | Server | Version: | 2.0.0 |
Severity: | critical | Keywords: | |
Cc: | chrisclaydon, brucedechant, trevorwekel | External ID: |
Description
root@mapsrv:/home/mapguide/server/bin# ./mgserver.sh /home/mapguide/server/bin /home/mapguide/server/bin Running the server interactively as an application instead of as a service.
(3018479296) Server starting... (3018479296) PROJ4 Coordinate System Library (3018479296) Server started. (2507762576) Authentication failed. Please enter a valid username and password. Exception occurred in method MgSecurityManager.Authenticate at line 199 in file SecurityManager.cpp
(2499369872) Authentication failed. Please enter a valid username and password. Exception occurred in method MgSecurityManager.Authenticate at line 199 in file SecurityManager.cpp
* glibc detected * ./mgserver: double free or corruption (!prev): 0x08878b10 * ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6[0xb4bc5d65] /lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb4bc9800] /usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb4d8ed81] /usr/lib/libstdc++.so.6(_ZNSbIwSt11char_traitsIwESaIwEE4_Rep10_M_destroyERKS1_+0x1d)[0xb4d86a8d] /home/mapguide/lib/libMgMapGuideCommon.so.7(_ZN17MgUserInformationD0Ev+0x188)[0xb6130de8] /home/mapguide/lib/libMgMapGuideCommon.so.7(_ZN17MgUserInformation7DisposeEv+0x15)[0xb60eb7a5] /home/mapguide/lib/libMgFoundation.so.7(_ZN17MgGuardDisposable7ReleaseEv+0x77)[0xb667eba7] /home/mapguide/lib/libMgMapGuideCommon.so.7(_ZN17MgUserInformation18SetCurrentUserInfoEPS_+0x6a)[0xb60f72ba] /home/mapguide/server/lib/libMgServerBase.so.7(_ZN18MgServiceOperationD2Ev+0x50)[0xb5f68d30] /home/mapguide/server/lib/libMgServerResourceService.so.7(_ZN19MgResourceOperationD2Ev+0x3c)[0xb53dd1cc] /home/mapguide/server/lib/libMgServerResourceService.so.7(_ZN15MgOpSetResourceD0Ev+0x2d)[0xb53dd3fd] /home/mapguide/server/lib/libMgServerResourceService.so.7(_ZN24MgResourceServiceHandler16ProcessOperationEv+0x7f)[0xb54bb1df] ./mgserver[0x808c336] ./mgserver[0x808de13] ./mgserver[0x808f8b4] /home/mapguide/lib/libACE.so.5.4.0(_ZN13ACE_Task_Base7svc_runEPv+0x56)[0xb7eeefa6] /home/mapguide/lib/libACE.so.5.4.0(_ZN18ACE_Thread_Adapter8invoke_iEv+0x57)[0xb7e70797] /home/mapguide/lib/libACE.so.5.4.0(_ZN18ACE_Thread_Adapter6invokeEv+0x66)[0xb7e70966] /home/mapguide/lib/libACE.so.5.4.0(ace_thread_adapter+0x10)[0xb7e24d70] /lib/tls/i686/cmov/libpthread.so.0[0xb473546b] /lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb4c2f73e] ======= Memory map: ======== 08048000-080eb000 r-xp 00000000 68:01 8044622 /home/mapguide/server/bin/mgserver 080eb000-080ec000 rw-p 000a3000 68:01 8044622 /home/mapguide/server/bin/mgserver 080ec000-08a17000 rw-p 080ec000 00:00 0 [heap] 8f300000-8f39d000 rw-p 8f300000 00:00 0 8f39d000-8f400000 ---p 8f39d000 00:00 0 8f46e000-8f4b6000 r-xp 00000000 68:01 7586823 /usr/local/fdo-3.3.0/lib/libOGRProvider-3.3.0.so 8f4b6000-8f4b9000 rw-p 00048000 68:01 7586823 /usr/local/fdo-3.3.0/lib/libOGRProvider-3.3.0.so 8f4b9000-8f528000 r-xp 00000000 68:01 7586817 /usr/local/fdo-3.3.0/lib/libGRFPOverrides-3.3.0.so 8f528000-8f52b000 rw-p 0006e000 68:01 7586817 /usr/local/fdo-3.3.0/lib/libGRFPOverrides-3.3.0.so 8f52b000-8f53b000 rw-p 8f52b000 00:00 0 8f53b000-8f5f7000 r-xp 00000000 68:01 7586820 /usr/local/fdo-3.3.0/lib/libGRFPProvider-3.3.0.so 8f5f7000-8f5fc000 rw-p 000bb000 68:01 7586820 /usr/local/fdo-3.3.0/lib/libGRFPProvider-3.3.0.so 8f5fc000-8f60c000 rw-p 8f5fc000 00:00 0 8f60c000-8f653000 r-xp 00000000 68:01 7489886 /usr/lib/libmysqlclient.so.15.0.0 8f653000-8f760000 rw-p 00046000 68:01 7489886 /usr/lib/libmysqlclient.so.15.0.0 8f760000-8f761000 rw-p 8f760000 00:00 0 8f761000-8fea7000 r-xp 00000000 68:01 7586832 /usr/local/fdo-3.3.0/lib/libFdoMySQL-3.3.0.so 8fea7000-8fed4000 rw-p 00746000 68:01 7586832 /usr/local/fdo-3.3.0/lib/libFdoMySQL-3.3.0.so 8fed4000-8ff13000 rw-p 8fed4000 00:00 0 8ff13000-8ffd9000 r-xp 00000000 68:01 7586814 /usr/local/fdo-3.3.0/lib/libWMSProvider-3.3.0.so 8ffd9000-8ffde000 rw-p 000c5000 68:01 7586814 /usr/local/fdo-3.3.0/lib/libWMSProvider-3.3.0.so 8ffde000-8ffee000 rw-p 8ffde000 00:00 0 8ffee000-902b2000 r-xp 00000000 68:01 7586795 /usr/local/fdo-3.3.0/lib/libFdoOws-3.3.0.so 902b2000-902cb000 rw-p 002c3000 68:01 7586795 /usr/local/fdo-3.3.0/lib/libFdoOws-3.3.0.so 902cb000-902df000 rw-p 902cb000 00:00 0 902df000-9044c000 r-xp 00000000 68:01 7586808 /usr/local/fdo-3.3.0/lib/libWFSProvider-3.3.0.so 9044c000-90458000 rw-p 0016d000 68:01 7586808 /usr/local/fdo-3.3.0/lib/libWFSProvider-3.3.0.so 90458000-90468000 rw-p 90458000 00:00 0 90468000-905e7000 r-xp 00000000 68:01 7586802 /usr/local/fdo-3.3.0/lib/libSHPProvider-3.3.0.so 905e7000-905f0000 rw-p 0017e000 68:01 7586802 /usr/local/fdo-3.3.0/lib/libSHPProvider-3.3.0.so 905f0000-906fb000 rw-p 905f0000 00:00 0 906fb000-90700000 ---p 906fb000 00:00 0 9071e000-9077b000 r-xp 00000000 68:01 7586811 /usr/local/fdo-3.3.0/lib/libWMSOverrides-3.3.0.so 9077b000-9077d000 rw-p 0005d000 68:01 7586811 /usr/local/fdo-3.3.0/lib/libWMSOverrides-3.3.0.so 9077d000-9078d000 rw-p 9077d000 00:00 0 9078d000-9078e000 ---p 9078d000 00:00 0 9078e000-90f8e000 rwxp 9078e000 00:00 0 90f8e000-90f8f000 ---p 90f8e000 00:00 0 90f8f000-9178f000 rwxp 90f8f000 00:00 0 9178f000-91790000 ---p 9178f000 00:00 0 91790000-91f90000 rwxp 91790000 00:00 0 91f90000-91f91000 ---p 91f90000 00:00 0 91f91000-92791000 rwxp 91f91000 00:00 0 92791000-92792000 ---p 92791000 00:00 0 92792000-92f92000 rwxp 92792000 00:00 0 92f92000-92f93000 ---p 92f92000 00:00 0 92f93000-93793000 rwxp 92f93000 00:00 0 93793000-93794000 ---p 93793000 00:00 0 93794000-93f94000 rwxp 93794000 00:00 0 93f94000-93f95000 ---p 93f94000 00:00 0 93f95000-94795000 rwxp 93f95000 00:00 0 94795000-94796000 ---p 94795000 00:00 0 94796000-94f96000 rwxp 94796000 00:00 0 94f96000-94f97000 ---p 94f96000 00:00 0 94f97000-95797000 rwxp 94f97000 00:00 0 95797000-95798000 ---p 95797000 00:00 0 95798000-95f98000 rwxp 95798000 00:00 0 95f98000-95f99000 ---p 95f98000 00:00 0 95f99000-96799000 rwxp 95f99000 00:00 0 96799000-9679a000 ---p 96799000 00:00 0 9679a000-96f9a000 rwxp 9679a000 00:00 0 96f9a000-96f9b000 ---p 96f9a000 00:00 0 96f9b000-9779b000 rwxp 96f9b000 00:00 0 9779b000-9779c000 ---p 9779b000 00:00 0 9779c000-97f9c000 rwxp 9779c000 00:00 0 97f9c000-97f9d000 ---p 97f9c000 00:00 0 97f9d000-9879d000 rwxp 97f9d000 00:00 0 9879d000-9879e000 ---p 9879d000 00:00 0 9879e000-98f9e000 rwxp 9879e000 00:00 0 98f9e000-98f9f000 ---p 98f9e000 00:00 0 98f9f000-9979f000 rwxp 98f9f000 00:00 0 9979f000-997a0000 ---p 9979f000 00:00 0 997a0000-99fa0000 rwxp 997a0000 00:00 0 99fa0000-99fa1000 ---p 99fa0000 00:00 0 99fa1000-9a7a1000 rwxp 99fa1000 00:00 0 9a7a1000-9a7a2000 ---p 9a7a1000 00:00 0 9a7a2000-9afa2000 rwxp 9a7a2000 00:00 0 9afa2000-9afa3000 ---p 9afa2000 00:00 0 9afa3000-9b7a3000 rwxp 9afa3000 00:00 0 9b7a3000-9b7a4000 ---p 9b7a3000 00:00 0 9b7a4000-9bfa4000 rwxp 9b7a4000 00:00 0 9bfa4000-9bfa5000 ---p 9bfa4000 00:00 0 9bfa5000-9c7a5000 rwxp 9bfa5000 00:00 0 9c7a5000-9c7a6000 ---p 9c7a5000 00:00 0 9c7a6000-9cfa6000 rwxp 9c7a6000 00:00 0 9cfa6000-9cfa7000 ---p 9cfa6000 00:00 0 9cfa7000-9d7a7000 rwxp 9cfa7000 00:00 0 9d7a7000-9d7a8000 ---p 9d7a7000 00:00 0 9d7a8000-9dfa8000 rwxp 9d7a8000 00:00 0 9dfa8000-9dfa9000 ---p 9dfa8000 00:00 0 9dfa9000-9e7a9000 rwxp 9dfa9000 00:00 0 9e7a9000-9e7aa000 ---p 9e7a9000 00:00 0 9e7aa000-9efaa000 rwxp 9e7aa000 00:00 0 9efaa000-9efab000 ---p 9efaa000 00:00 0 9efab000-9f7ab000 rwxp 9efab000 00:00 0 9f7ab000-9f7ac000 ---p 9f7ab000 00:00 0 9f7ac000-9ffac000 rwxp 9f7ac000 00:00 0 9ffac000-9ffad000 ---p 9ffac000 00:00 0 9ffad000-a07ad000 rwxp 9ffad000 00:00 0 a07ad000-a07ae000 ---p a07ad000 00:00 0 a07ae000-a0fae000 rwxp a07ae000 00:00 0 a0fae000-a0faf000 ---p a0fae000 00:00 0 a0faf000-a17af000 rwxp a0faf000 00:00 0 a17af000-a17b0000 ---p a17af000 00:00 0 a17b0000-a1fb0000 rwxp a17b0000 00:00 0 a1fb0000-a1fb1000 ---p a1fb0000 00:00 0 a1fb1000-a27b1000 rwxp a1fb1000 00:00 0 a27b1000-a27b2000 ---p a27b1000 00:00 0 a27b2000-a2fb2000 rwxp a27b2000 00:00 0 a2fb2000-a2fb3000 ---p a2fb2000 00:00 0 a2fb3000-a37b3000 rwxp a2fb3000 00:00 0 a37b3000-a37b4000 ---p a37b3000 00:00 0 a37b4000-a3fb4000 rwxp a37b4000 00:00 0 a3fb4000-a3fb5000 ---p a3fb4000 00:00 0 a3fb5000-a47b5000 rwxp a3fb5000 00:00 0 a47b5000-a47b6000 ---p a47b5000 00:00 0 a47b6000-a4fb6000 rwxp a47b6000 00:00 0 a4fb6000-a4fb7000 ---p a4fb6000 00:00 0 a4fb7000-a57b7000 rwxp a4fb7000 00:00 0 a57b7000-a57b8000 ---p a57b7000 00:00 0 a57b8000-a5fb8000 rwxp a57b8000 00:00 0 a5fb8000-a5fb9000 ---p a5fb8000 00:00 0 a5fb9000-a67b9000 rwxp a5fb9000 00:00 0 a67b9000-a67ba000 ---p a67b9000 00:00 0 a67ba000-a6fba000 rwxp a67ba000 00:00 0 a6fba000-a6fbb000 ---p a6fba000 00:00 0 a6fbb000-a77bb000 rwxp a6fbb000 00:00 0 a77bb000-a77c5000 rw-s 00000000 68:01 8192161 /home/mapguide/server/Repositories/Library/db.006 a77c5000-a781b000 rw-s 00000000 68:01 8192160 /home/mapguide/server/Repositories/Library/db.005 a781b000-a802b000 rw-s 00000000 68:01 8192159 /home/mapguide/server/Repositories/Library/db.004 a802b000-aa82d000 rw-s 00000000 68:01 8192158 /home/mapguide/server/Repositories/Library/db.003 aa82d000-aa93b000 rw-s 00000000 68:01 8192157 /home/mapguide/server/Repositories/Library/db.002 aa93b000-aa941000 rw-s 00000000 68:01 8192156 /home/mapguide/server/Repositories/Library/db.001 aa941000-aa94b000 rw-s 00000000 68:01 8192153 /home/mapguide/server/Repositories/Site/db.006 aa94b000-aa9a1000 rw-s 00000000 68:01 8192152 /home/mapguide/server/Repositories/Site/db.005 aa9a1000-ab1b1000 rw-s 00000000 68:01 8192151 /home/mapguide/server/Repositories/Site/db.004 ab1b1000-ad9b3000 rw-s 00000000 68:01 8192150 /home/mapguide/server/Repositories/Site/db.003 ad9b3000-adac1000 rw-s 00000000 68:01 8192149 /home/mapguide/server/Repositories/Site/db.002 adac1000-ae3aa000 rw-p adac1000 00:00 0 ae3b0000-ae3b5000 r-xp 00000000 68:01 8503448 /lib/tls/i686/cmov/libcrypt-2.6.1.so ae3b5000-ae3b7000 rw-p 00004000 68:01 8503448 /lib/tls/i686/cmov/libcrypt-2.6.1.so ae3b7000-ae3de000 rw-p ae3b7000 00:00 0 ae3e4000-ae544000 r-xp 00000000 68:01 7586805 /usr/local/fdo-3.3.0/lib/libSDFProvider-3.3.0.so ae544000-ae54a000 rw-p 0015f000 68:01 7586805 /usr/local/fdo-3.3.0/lib/libSDFProvider-3.3.0.so ae54a000-ae55a000 rw-p ae54a000 00:00 0 ae55a000-ae55b000 ---p ae55a000 00:00 0 ae55b000-aed5b000 rwxp ae55b000 00:00 0 aed5b000-aed5c000 ---p aed5b000 00:00 0 aed5c000-af55c000 rwxp aed5c000 00:00 0 af55c000-af55d000 ---p af55c000 00:00 0 af55d000-afd5d000 rwxp af55d000 00:00 0 afd5d000-afd5e000 ---p afd5d000 00:00 0 afd5e000-b055e000 rwxp afd5e000 00:00 0 b055e000-b055f000 ---p b055e000 00:00 0 b055f000-b0d5f000 rwxp b055f000 00:00 0 b0d5f000-b0d60000 ---p b0d5f000 00:00 0 b0d60000-b1560000 rwxp b0d60000 00:00 0 b1560000-b1561000 ---p b1560000 00:00 0 b1561000-b1d61000 rwxp b1561000 00:00 0 b1d61000-b1d62000 ---p b1d61000 00:00 0 b1d62000-b2562000 rwxp b1d62000 00:00 0 b2562000-b2563000 ---p b2562000 00:00 0 b2563000-b2d63000 rwxp b2563000 00:00 0 b2d63000-b2d64000 ---p b2d63000 00:00 0 b2d64000-b3564000 rwxp b2d64000 00:00 0 b3564000-b356d000 r-xp 00000000 68:01 8503457 /lib/tls/i686/cmov/libnss_files-2.6.1.so b356d000-b356f000 rw-p 00008000 68:01 8503457 /lib/tls/i686/cmov/libnss_files-2.6.1.so b356f000-b3575000 rw-s 00000000 68:01 8192148 /home/mapguide/server/Repositories/Site/db.001 b3575000-b3576000 ---p b3575000 00:00 0 b3576000-b3d76000 rwxp b3576000 00:00 0 b3d76000-b3d7a000 rw-p b3d76000 00:00 0 b3d7a000-b3db9000 r--p 00000000 68:01 7522273 /usr/lib/locale/en_AU.utf8/LC_CTYPE b3db9000-b3dba000 r--p 00000000 68:01 7522274 /usr/lib/locale/en_AU.utf8/LC_NUMERIC b3dba000-b3dbb000 r--p 00000000 68:01 7522275 /usr/lib/locale/en_AU.utf8/LC_TIME b3dbb000-b3e9b000 r--p 00000000 68:01 7522276 /usr/lib/locale/en_AU.utf8/LC_COLLATE b3e9b000-b3e9c000 r--p 00000000 68:01 7522277 /usr/lib/locale/en_AU.utf8/LC_MONETARY b3e9c000-b3e9d000 r--p 00000000 68:01 7522279 /usr/lib/locale/en_AU.utf8/LC_MESSAGES/SYS_LC_MESSAGES b3e9d000-b3e9e000 r--p 00000000 68:01 7522280 /usr/lib/locale/en_AU.utf8/LC_PAPER b3e9e000-b3ea5000 r--s 00000000 68:01 7489586 /usr/lib/gconv/gconv-modules.cache b3ea5000-b3ea9000 rw-p b3ea5000 00:00 0 b3ea9000-b3eb8000 r-xp 00000000 68:01 8503463 /lib/tls/i686/cmov/libresolv-2.6.1.so b3eb8000-b3eba000 rw-p 0000f000 68:01 8503463 /lib/tls/i686/cmov/libresolv-2.6.1.so b3eba000-b3ebc000 rw-p b3eba000 00:00 0 b3ebc000-b3ebd000 r-xp 00000000 68:01 8503530 /lib/libkeyutils-1.2.so b3ebd000-b3ebe000 rw-p 00001000 68:01 8503530 /lib/libkeyutils-1.2.so b3ebe000-b3ec5000 r-xp 00000000 68:01 7490097 /usr/lib/libkrb5support.so.0.1 b3ec5000-b3ec6000 rw-p 00006000 68:01 7490097 /usr/lib/libkrb5support.so.0.1 b3ec6000-b3ec7000 rw-p b3ec6000 00:00 0 b3ec7000-b3ec9000 r-xp 00000000 68:01 8506238 /lib/libcom_err.so.2.1 b3ec9000-b3eca000 rw-p 00001000 68:01 8506238 /lib/libcom_err.so.2.1 b3eca000-b3eee000 r-xp 00000000 68:01 7490094 /usr/lib/libk5crypto.so.3.1 b3eee000-b3eef000 rw-p 00024000 68:01 7490094 /usr/lib/libk5crypto.so.3.1 b3eef000-b3f75000 r-xp 00000000 68:01 7490096 /usr/lib/libkrb5.so.3.3 b3f75000-b3f77000 rw-p 00086000 68:01 7490096 /usr/lib/libkrb5.so.3.3 b3f77000-b40a2000 r-xp 00000000 68:01 7507809 /usr/lib/i686/cmov/libcrypto.so.0.9.8 b40a2000-b40b7000 rw-p 0012a000 68:01 7507809 /usr/lib/i686/cmov/libcrypto.so.0.9.8 b40b7000-b40ba000 rw-p b40b7000 00:00 0 b40ba000-b40f700./mgserver.sh: line 7: 2744 Aborted ./mgserver run /home/mapguide/server/bin
Change History (11)
comment:2 by , 17 years ago
Hi, can you run gdb on the executable and see if it can pinpoint the problem for you? Thanks, Tom
comment:3 by , 17 years ago
Hi Tom,
Sorry, I am not a linux expert so I have not used things like gdb before.
I took a look and have tried to run:
gdb --args /home/mapguide/server/bin/mgserver run
Based on the examples, I don't know if this is correct it takes me to a prompt that says (gdb)
What do I do from there? Use MapGuide until it crashes? Thanks.
comment:4 by , 17 years ago
Severity: | blocker → critical |
---|
I've done some tests myself and the crashes occur when previewing the map.
But I can't produce a result, because it happens at random. The tests I've done:
1) run normal mgserver.sh, got it to crash on map preview with that exact crash dump. 2) run mgserver.sh through gdb, previewed many times without crashes. 3) run normal mgserver.sh again, piping output to a text file. Still can't crash it. 4) run normal mgserver.sh again, can't crash it.
I did notice the IP of the mysql server was not correct and changed it to the correct one. But this isn't the source of the problem, as I ran the tests after the IP change.
follow-up: 6 comment:5 by , 17 years ago
Tried to run ./mgserver testfdo but it couldn't find libMgFdoUnitTesting.so
Did you build the unit tests?
comment:6 by , 17 years ago
Replying to jng:
Tried to run ./mgserver testfdo but it couldn't find libMgFdoUnitTesting.so
Did you build the unit tests?
I didn't specifically do any additional building of test units, I thought they were built as part of the shell scripts provided?
comment:8 by , 17 years ago
Cc: | added |
---|
comment:9 by , 17 years ago
This also happened to me in version 1.2.0, run as an application. Usually this happened when the server is stopped and restarted, as if stopping did not complete successfully. Sometimes I've had to kill the server, because it refused to stop, and in those times it refused to start again, crashing with the message reported here. After a minute it usually start again regularly.
comment:10 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has been fixed via trac ticket 1110.
comment:11 by , 15 years ago
Milestone: | → 2.2 |
---|