[mapguide-users] Buffer Overflow on MGOS 2.1

tceverling at yahoo.co.uk tceverling at yahoo.co.uk
Fri Oct 22 01:03:30 EDT 2010


I have resolved the problem and have gotten MGOS 2.1 to work on Ubuntu 9.04.

It was somehow caused by the build process somehow using both GCC 4.1.3 and GCC 
4.3.3 for certain different packages. Relinking "gcc" and "g++" to "gcc-4.1" and 
"g++-4.1" resolves my issue. Doing that also eliminates the need for quite a 
number of hacks previously seen in the mailing list for building MGOS 2.1 on 
Ubuntu 9.04. Probably also applicable for Ubuntu 8.04 and MGOS 2.0, but I have 
not tested.

Best regards.







----- Original Message ----
From: John Lee <tceverling at yahoo.co.uk>
To: mapguide-users at lists.osgeo.org
Sent: Mon, 4 October, 2010 13:57:18
Subject: [mapguide-users] Buffer Overflow on MGOS 2.1

Hello all,

I'm having trouble with my MGOS 2.1 server crashing due to a buffer overflow 
problem. 


Using VirtualBox 3.2.8, I installed Ubuntu 9.04 and then based off the existing 
guide on building MGOS 2.0 on Ubuntu 8.04 
(http://wiki.osgeo.org/wiki/Building_MapGuide_on_Ubuntu_8.04), I have 
successfully built MGOS 2.1 sourced from the SVN without any errors in the log 
files. After successfully building it, I started the server from the shell and 
then tested it with a SHP file. Previewing the data in the Data Connection works 

fine, but when I tried to preview the layer the server crashes with a buffer 
overflow error. The same happens even when I try to skip previewing the layer 
and add the layer to the map and previewed the map. I am currently at my wits 
end as I had zero experience with Linux or compiling large projects before this, 

this is my second month.

I am not sure of the etiquette for sending log data, should I paste it in the 
e-mail or attach it? As the shell backtrace is rather short, I've chosen to 
paste it here for expediency. Please forgive me if this was a bad choice.



[Start]

user at test:~$ sudo /usr/local/mapguideopensource/server/bin/mgserver.sh
/usr/local/mapguideopensource/server/bin ~
Running the server interactively as an application instead of as a service.

(3023657456) Server starting...
(3023657456) Mentor Coordinate System Library
(3023657456) Server started.
*** buffer overflow detected ***: ./mgserver terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb48aeef8]
/lib/tls/i686/cmov/libc.so.6[0xb48ad000]
/lib/tls/i686/cmov/libc.so.6[0xb48adef7]
/usr/local/mapguideopensource/lib/libACE.so.5.4.0(_ZN6ACE_OS7sprintfEPwPKwz+0x43)[0xb5e72023]


/usr/local/mapguideopensource/server/lib/libMgServerMappingService.so.7(_ZN23MgOpGenerateLegendImage7ExecuteEv+0x880)[0xb6d74800]


/usr/local/mapguideopensource/server/lib/libMgServerMappingService.so.7(_ZN23MgMappingServiceHandler16ProcessOperationEv+0x6b)[0xb6dae4db]


./mgserver[0x80b399a]
./mgserver[0x80b5876]
./mgserver[0x80b788f]
/usr/local/mapguideopensource/lib/libACE.so.5.4.0(_ZN13ACE_Task_Base7svc_runEPv+0x56)[0xb5f114b6]


/usr/local/mapguideopensource/lib/libACE.so.5.4.0(_ZN18ACE_Thread_Adapter8invoke_iEv+0x5d)[0xb5eb27ed]


/usr/local/mapguideopensource/lib/libACE.so.5.4.0(_ZN18ACE_Thread_Adapter6invokeEv+0x66)[0xb5eb2856]


/usr/local/mapguideopensource/lib/libACE.so.5.4.0(ace_thread_adapter+0x10)[0xb5e74bd0]


/lib/tls/i686/cmov/libpthread.so.0[0xb57884ff]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb48955ee]
======= Memory map: ========
08048000-08117000 r-xp 00000000 08:01 557058    
/usr/local/mapguideopensource/server/bin/mgserver
08117000-08118000 rw-p 000cf000 08:01 557058    
/usr/local/mapguideopensource/server/bin/mgserver
09668000-09bbe000 rw-p 09668000 00:00 0          [heap]
a8e34000-a8fb7000 r-xp 00000000 08:01 462445    
/usr/local/fdo-3.4.0/lib/libSHPProvider-3.4.0.so
a8fb7000-a8fc0000 rw-p 00183000 08:01 462445    
/usr/local/fdo-3.4.0/lib/libSHPProvider-3.4.0.so
a8fc0000-a8fd0000 rw-p a8fc0000 00:00 0
a8fd0000-a8fd1000 ---p a8fd0000 00:00 0
a8fd1000-a90d1000 rw-p a8fd1000 00:00 0
a90d1000-a90d2000 ---p a90d1000 00:00 0
a90d2000-a91d2000 rw-p a90d2000 00:00 0
a91d2000-a91d3000 ---p a91d2000 00:00 0
a91d3000-a92d3000 rw-p a91d3000 00:00 0
a92d3000-a92d4000 ---p a92d3000 00:00 0
a92d4000-a93d4000 rw-p a92d4000 00:00 0
a93d4000-a93d5000 ---p a93d4000 00:00 0
a93d5000-a94d5000 rw-p a93d5000 00:00 0
a94d5000-a94d6000 ---p a94d5000 00:00 0
a94d6000-a95d6000 rw-p a94d6000 00:00 0
a95d6000-a95d7000 ---p a95d6000 00:00 0
a95d7000-a96d7000 rw-p a95d7000 00:00 0
a96d7000-a96d8000 ---p a96d7000 00:00 0
a96d8000-a97d8000 rw-p a96d8000 00:00 0
a97d8000-a97d9000 ---p a97d8000 00:00 0
a97d9000-a98d9000 rw-p a97d9000 00:00 0
a98d9000-a98da000 ---p a98d9000 00:00 0
a98da000-a99da000 rw-p a98da000 00:00 0
a99da000-a99db000 ---p a99da000 00:00 0
a99db000-a9adb000 rw-p a99db000 00:00 0
a9adb000-a9adc000 ---p a9adb000 00:00 0
a9adc000-a9bdc000 rw-p a9adc000 00:00 0
a9bdc000-a9bdd000 ---p a9bdc000 00:00 0
a9bdd000-a9cdd000 rw-p a9bdd000 00:00 0
a9cdd000-a9cde000 ---p a9cdd000 00:00 0
a9cde000-a9dde000 rw-p a9cde000 00:00 0
a9dde000-a9ddf000 ---p a9dde000 00:00 0
a9ddf000-a9edf000 rw-p a9ddf000 00:00 0
a9edf000-a9ee0000 ---p a9edf000 00:00 0
a9ee0000-a9fe0000 rw-p a9ee0000 00:00 0
a9fe0000-a9fe1000 ---p a9fe0000 00:00 0
a9fe1000-aa0e1000 rw-p a9fe1000 00:00 0
aa0e1000-aa0e2000 ---p aa0e1000 00:00 0
aa0e2000-aa1e2000 rw-p aa0e2000 00:00 0
aa1e2000-aa1e3000 ---p aa1e2000 00:00 0
aa1e3000-aa2e3000 rw-p aa1e3000 00:00 0
aa2e3000-aa2e4000 ---p aa2e3000 00:00 0
aa2e4000-aa3e4000 rw-p aa2e4000 00:00 0
aa3e4000-aa3e5000 ---p aa3e4000 00:00 0
aa3e5000-aa4e5000 rw-p aa3e5000 00:00 0
aa4e5000-aa4e6000 ---p aa4e5000 00:00 0
aa4e6000-aa5e6000 rw-p aa4e6000 00:00 0
aa5e6000-aa5e7000 ---p aa5e6000 00:00 0
aa5e7000-aa6e7000 rw-p aa5e7000 00:00 0
aa6e7000-aa6e8000 ---p aa6e7000 00:00 0
aa6e8000-aa7e8000 rw-p aa6e8000 00:00 0
aa7e8000-aa7e9000 ---p aa7e8000 00:00 0
aa7e9000-aa8e9000 rw-p aa7e9000 00:00 0
aa8e9000-aa8ea000 ---p aa8e9000 00:00 0
aa8ea000-aa9ea000 rw-p aa8ea000 00:00 0
aa9ea000-aa9eb000 ---p aa9ea000 00:00 0
aa9eb000-aaaeb000 rw-p aa9eb000 00:00 0
aaaeb000-aaaec000 ---p aaaeb000 00:00 0
aaaec000-aabec000 rw-p aaaec000 00:00 0
aabec000-aabed000 ---p aabec000 00:00 0
aabed000-a/usr/local/mapguideopensource/server/bin/mgserver.sh: line 7: 20291 
Aborted                 ./mgserver run
~
user at test:~$

[End]



If more information is needed, I would be happy to provide what I can.

Will anybody be interested in my build script? I had to make a lot of 
adjustments before MGOS 2.1 will compile without errors.

Thank you very much for your time.




_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users



      


More information about the mapguide-users mailing list