Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix segfault during st destroy #66

Merged
merged 1 commit into from Apr 17, 2020

Conversation

oschwald
Copy link
Contributor

This fixes #57

As mentioned in that issue, the underlying cause is #52. I am not sure that this is the right fix, but the issue seems to be the fact that the imp_dbh is left with an invalid do_tmp_sth after an earlier do call, which pg_st_FETCH_attrib tries to use. The design of do_tmp_sth seems prone to this sort of issue.

@turnstep turnstep merged commit 6cb3ab5 into bucardo:master Apr 17, 2020
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Jul 9, 2020
- EAPI7
- Unconditionally remove t/00_signature.t
- Ensure CFLAGS passed to make/compiler
- Resurrect compie-testing for Bundle::DBD::Pg
- Disable t/03*.t and t/04*.t due to
   https://rt.cpan.org/Ticket/Display.html?id=132965

Upstream:
- Prevent double-free memory errors
  https://rt.cpan.org/Ticket/Display.html?id=130681
- Fix crash when pg_error_field is called
  https://rt.cpan.org/Ticket/Display.html?id=130721
- Update list of Postgres reserved words in quote.c
- Fix tests for 32-bit machines
- Eagerly NULL-ify PQclear-ed things to remove race conditions
  https://rt.cpan.org/Ticket/Display.html?id=131522
- Allow localtime from Time::Piece, and other magical arrays, to be
  used directly as a bind value again.
- Fix tests for EnterpriseDB server
- Add small warning regarding ShowErrorStatement
- Indicate non-key index columns in statistics_info
- Return empty result set instead of undef from statistics_info
  when table NOTEXIST and not $unique_only
- Fix Segfault during st destroy
  bucardo/dbdpg#57
  bucardo/dbdpg#66
- Improve testing for table_info()
- Fix failing 'fulltest' target on BSD
- Return table info row last in statistics_info for compat with
  pre-8.3 servers
- Fix ASC_OR_DESC field in statistics_info
- Indicate NULL ordering in statistics_info
- Remove test that assumed '(12,34)' to be invalid for type 'circle'
  as Postgres now handles it better.
- Prevent DBI turning AutoCommit 'on' after a failed commit
- Fix memory leak in dbdimp.c by redoing the "last_result" internals
  https://rt.cpan.org/Ticket/Display.html?id=132812
- Fix regression in Perl length() for returned query results
- Make $sth->finish() do less, so that among other things,
  pg_error_field still works on the last action performed.

Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Kent Fredric <kentnl@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault in 3.9.1
2 participants