[Bug 247797] Re: abort on psyco_conn_set_client_encoding
Scott Kitterman
ubuntu at kitterman.com
Fri Apr 24 14:31:57 UTC 2015
Appears to be fixed in all supported releases.
** Changed in: psycopg2 (Ubuntu)
Status: Triaged => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to psycopg2 in Ubuntu.
https://bugs.launchpad.net/bugs/247797
Title:
abort on psyco_conn_set_client_encoding
Status in psycopg2 package in Ubuntu:
Fix Released
Bug description:
I'm getting consistent aborts when I try to
set_client_encoding('UTF8'):
amagee at bob-bathroom:~/trunk$ lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04
python-psycopg2 version: 2.0.6-3
Here's what happens when I run from gdb to get a traceback:
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(gdb) run
Starting program: /usr/bin/python
[Thread debugging using libthread_db enabled]
Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
[New Thread 0xb7d648c0 (LWP 14189)]
>>> import psycopg2
>>> conn = psycopg2.connect("dbname=mydatabase.......")
>>> conn.set_client_encoding("UTF8")
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb7d648c0 (LWP 14189)]
0xb7f0e410 in __kernel_vsyscall ()
(gdb) bt
#0 0xb7f0e410 in __kernel_vsyscall ()
#1 0xb7d90085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7d91a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7dd3835 in ?? () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7dd4495 in free () from /lib/tls/i686/cmov/libc.so.6
#5 0xb7b9ac9c in psyco_conn_set_client_encoding (self=0xb7bdf790, args=0xb7d4e6cc) at psycopg/connection_type.c:213
#6 0x080c9993 in PyEval_EvalFrameEx (f=0x824b3b4, throwflag=0) at ../Python/ceval.c:3573
#7 0x080cb0d7 in PyEval_EvalCodeEx (co=0xb7cec3c8, globals=0xb7d3dacc, locals=0xb7d3dacc, args=0x0, argcount=0, kws=0x0,
kwcount=0, defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:2836
#8 0x080cb227 in PyEval_EvalCode (co=0xb7cec3c8, globals=0xb7d3dacc, locals=0xb7d3dacc) at ../Python/ceval.c:494
#9 0x080eadb0 in PyRun_InteractiveOneFlags (fp=0xb7eb0440, filename=0x8123f04 "<stdin>", flags=0xbfef89f8)
at ../Python/pythonrun.c:1273
#10 0x080eafd6 in PyRun_InteractiveLoopFlags (fp=0xb7eb0440, filename=0x8123f04 "<stdin>", flags=0xbfef89f8)
at ../Python/pythonrun.c:723
#11 0x080eb0f2 in PyRun_AnyFileExFlags (fp=0xb7eb0440, filename=0x8123f04 "<stdin>", closeit=0, flags=0xbfef89f8)
at ../Python/pythonrun.c:692
#12 0x08059335 in Py_Main (argc=0, argv=0xbfef8ac4) at ../Modules/main.c:523
#13 0x080587f2 in main (argc=Cannot access memory at address 0x376d
) at ../Modules/python.c:23
(gdb)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/psycopg2/+bug/247797/+subscriptions
More information about the foundations-bugs
mailing list