Changes between Version 7 and Version 8 of DevWikiGettingABackTrace


Ignore:
Timestamp:
Dec 10, 2021, 6:23:53 AM (2 years ago)
Author:
gdt
Comment:

Explain how to run a regression test with gdb.

Legend:

Unmodified
Added
Removed
Modified
  • DevWikiGettingABackTrace

    v7 v8  
    153153}}}
    154154
     155= Using with regression tests =
     156
     157Sometimes there is a crash during regression tests.
     158
     159When running "make test", a number of things happen, including creating some test files and creating the "postgis_reg" database and loading the working tree postgis into it.  Then, tests are run.  It would be difficult to replicate all of this in a script to run gdb.
     160
     161Instead, the recommended approach is to first run "make test", to cause all the setup to happen.   Then, identify the first failing test, as debugging anything after the first failure is far less likely to be useful.   Connect as "psql -d postgis_reg", and get the pid and attach gdb as above.
     162
     163Then, e.g.
     164
     165{{{
     166\i regress/core/geography.sql
     167}}}
     168}}}
     169
    155170= Conclusion =
    156171