From trac_mapguide at osgeo.org Wed Apr 1 03:46:41 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Wed, 01 Apr 2026 10:46:41 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2888: MapGuide Open Source 4.0 segmentation fault in PostgreSQL FDO provider when resolving invalid class or geometry property Message-ID: <042.052189296d975f8a3c23762dae68404b@osgeo.org> #2888: MapGuide Open Source 4.0 segmentation fault in PostgreSQL FDO provider when resolving invalid class or geometry property -----------------------+-------------------- Reporter: pd70 | Owner: (none) Type: defect | Status: new Priority: high | Milestone: Component: Server | Version: Severity: blocker | Keywords: External ID: | -----------------------+-------------------- MapGuide Open Source 4.0 crashes (segmentation fault) when rendering a layer whose Feature Source references: - a non-existing class OR - an invalid/missing geometry property Instead of returning a handled error, the server process (mgserver) crashes due to a fault inside the PostgreSQL FDO provider. This appears to be a critical stability issue. --- ## Environment - MapGuide Open Source: 4.0 - OS: Ubuntu (Linux kernel 5.15.x) - FDO Provider: PostgreSQL (libPostgreSQLProvider-4.2.0.so) - Database: PostgreSQL - Web Tier: Apache (standard MapGuide installation) --- ## Steps to Reproduce 1. Configure a valid Feature Source (PostgreSQL). 2. Create a working LayerDefinition referencing a valid class and geometry property (e.g. `geom`). 3. In MapGuide Maestro open the LayerDefinition in XML mode and introduce one of the following errors: - Reference a non-existing class - OR replace the geometry property with a non-existing one (e.g. `geom_tmp`) 4. Save the LayerDefinition. 5. Add the layer to a MapDefinition. 6. Open the map via viewer (Fusion / React Layout). --- ## Observed Behavior - MapGuide logs the following error: Error: Failed to stylize layer: perimetro_area_sassi An exception occurred in FDO component. Error occurred in Feature Source (Library://matera/Data/geodb.FeatureSource): Unable to find class 'shp_perimetro_area_sassi_tmp' - Immediately after this: - mgserver crashes (segmentation fault) - service becomes unavailable - requires manual restart This indicates that invalid schema references are not safely handled by the PostgreSQL FDO provider. --- ## Expected Behavior - MapGuide should return a handled error when class or geometry property is invalid - The error should be logged without affecting server stability - The mgserver process must NOT crash under any circumstance Invalid schema references should be safely handled by the FDO provider. --- ## Kernel Evidence From `dmesg`: mgserver[...] segfault at ... ip ... in libPostgreSQLProvider-4.2.0.so This confirms that the crash occurs at native level inside the PostgreSQL FDO provider, not in managed MapGuide code. -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Fri Apr 3 12:02:15 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Fri, 03 Apr 2026 19:02:15 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2888: MapGuide Open Source 4.0 segmentation fault in PostgreSQL FDO provider when resolving invalid class or geometry property In-Reply-To: <042.052189296d975f8a3c23762dae68404b@osgeo.org> References: <042.052189296d975f8a3c23762dae68404b@osgeo.org> Message-ID: <057.8b67c0936692e59ef007b86c5c4c4fdf@osgeo.org> #2888: MapGuide Open Source 4.0 segmentation fault in PostgreSQL FDO provider when resolving invalid class or geometry property ---------------------+------------------- Reporter: pd70 | Owner: jng Type: defect | Status: new Priority: high | Milestone: Component: Server | Version: Severity: blocker | Resolution: Keywords: | External ID: ---------------------+------------------- Changes (by jng): * owner: (none) => jng -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Fri Apr 3 12:02:32 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Fri, 03 Apr 2026 19:02:32 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2888: MapGuide Open Source 4.0 segmentation fault in PostgreSQL FDO provider when resolving invalid class or geometry property In-Reply-To: <042.052189296d975f8a3c23762dae68404b@osgeo.org> References: <042.052189296d975f8a3c23762dae68404b@osgeo.org> Message-ID: <057.3200dcf187a750c3efb3b13996ff896d@osgeo.org> #2888: MapGuide Open Source 4.0 segmentation fault in PostgreSQL FDO provider when resolving invalid class or geometry property ---------------------+--------------------- Reporter: pd70 | Owner: jng Type: defect | Status: new Priority: high | Milestone: 4.0.1 Component: Server | Version: 4.0.0 Severity: blocker | Resolution: Keywords: | External ID: ---------------------+--------------------- Changes (by jng): * milestone: => 4.0.1 * version: => 4.0.0 -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Fri Apr 3 12:04:45 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Fri, 03 Apr 2026 19:04:45 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2889: Investigate MgNullPropertyValueExceptions on some selection operations Message-ID: <041.a1fc07ee4b6946a1317d66c018fabbce@osgeo.org> #2889: Investigate MgNullPropertyValueExceptions on some selection operations -----------------------+---------------------- Reporter: jng | Owner: jng Type: defect | Status: assigned Priority: low | Milestone: 4.0.1 Component: Server | Version: 4.0.0 Severity: trivial | Keywords: External ID: | -----------------------+---------------------- I've been observing some change of behaviour when selecting features. On an older MGOS server, selecting the building in this screenshot works. On a MGOS 4.0 install, selecting that same building now throws a MgNullPropertyValueException. Something must have regressed for this to happen. -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals From trac_mapguide at osgeo.org Fri Apr 3 12:05:13 2026 From: trac_mapguide at osgeo.org (MapGuide Open Source) Date: Fri, 03 Apr 2026 19:05:13 -0000 Subject: [Mapguide-trac] [mapguide-trac] #2889: Investigate MgNullPropertyValueExceptions on some selection operations In-Reply-To: <041.a1fc07ee4b6946a1317d66c018fabbce@osgeo.org> References: <041.a1fc07ee4b6946a1317d66c018fabbce@osgeo.org> Message-ID: <056.611118e04cae5b25b118e21e8179195e@osgeo.org> #2889: Investigate MgNullPropertyValueExceptions on some selection operations ---------------------+------------------------ Reporter: jng | Owner: jng Type: defect | Status: assigned Priority: low | Milestone: 4.0.1 Component: Server | Version: 4.0.0 Severity: trivial | Resolution: Keywords: | External ID: ---------------------+------------------------ Changes (by jng): * Attachment "Screenshot_20260404_055945.jpg" added. Screenshot of problem feature -- Ticket URL: MapGuide Open Source MapGuide Open Source Internals