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

malloc: double free on Mac M1 #1697

Closed
DSLituiev opened this issue May 15, 2024 · 2 comments
Closed

malloc: double free on Mac M1 #1697

DSLituiev opened this issue May 15, 2024 · 2 comments

Comments

@DSLituiev
Copy link

Versions:

  • OS: Mac M1
  • Psycopg version: '2.9.9 (dt dec pq3 ext lo64)' (from master
  • Python version: 3.10.14

Describe the bug
Upon psycopg2.connect,

python(46885,0x203d8fac0) malloc: double free for ptr 0x1243fd200
python(46885,0x203d8fac0) malloc: *** set a breakpoint in malloc_error_break to debug
Abort trap: 6
@dvarrazzo
Copy link
Member

Did you upgrade the system recently and have a mix of new and old libraries?

Can we have more information? Such as:

  • are you using the binary or c extension? What does psycopg.pq.impl say?
  • are you connecting using ldap or other authentication systems
  • are you using an encrypted connection? What happens if you disable encryption?
  • can you connect using psql and using exactly the same connection string?
  • can you create a core dump and check where the crash happened?

@dvarrazzo
Copy link
Member

Not enough info. Probably caused by some buggy macOS library.

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

No branches or pull requests

2 participants