Opened 12 years ago

Closed 20 months ago

#1656 closed enhancement (wontfix)

Include debug symbols in Windows build

Reported by: realityexists Owned by: robe
Priority: medium Milestone: PostGIS Fund Me
Component: build Version: master
Keywords: Cc:


I'm currently troubleshooting a query that causes PostgreSQL to crash, running on Windows. postgis-2.0.dll is in the stack trace, but I have no debug symbols for it, so I can't get a proper stack trace. It would be useful to package .PDB files for all PostGIS DLLs in the Windows installer .EXE and .ZIP files. Ideally, the installer would put them into the PostgreSQL "symbols" directory, which is where .PDB files for PostgreSQL itself are installed.

Change History (8)

comment:1 by pramsey, 12 years ago

Probably not,

The windows builds are made with MinGW, nobody is building a pure MSVC PostGIS at this time. So if you build out the whole stack, on mingw you can debug in gdb, but I don't see any way you could debug is MSVC.

comment:2 by realityexists, 12 years ago

Oh, right - I didn't realise .pdb files don't even exist for PostGIS, I thought they just weren't included. Then the next question is: how can I get a backtrace from the downloaded Windows binaries (without building PostGIS on Windows myself)?

comment:3 by robe, 12 years ago

FWIW: I'm packaging a mingw64 standalone tarball that hopefully will just require and extract and go with it. It will have all the dependencies in place and already compiled for you (including gdb) so you can go straight to compiling postgis and debugging. Hoping to have all this ready (at least for 64-bit) in the next week or so and then later another for 32-bit with the mingw-64 chain.

Thanks to all the folks that contributed to our "build windows 64-bit postgis" pledge drive.

comment:4 by realityexists, 12 years ago

Thanks. I ended up reproducing it on Linux (#1658) and the cause is pretty simple in this case, but being able to get stack traces on Windows may be useful in other cases.

comment:5 by robe, 12 years ago

Milestone: PostGIS 2.0.0PostGIS Future

comment:6 by robe, 11 years ago

Owner: changed from strk to robe

I'm not sure if this is doable until we have a VC++ build.

comment:7 by robe, 7 years ago

Milestone: PostGIS FuturePostGIS Fund Me

Milestone renamed

comment:8 by robe, 20 months ago

Resolution: wontfix
Status: newclosed

gdb gives traces for windows builds fine, and I have no plans of ever using VC++.

Note: See TracTickets for help on using tickets.