-
Notifications
You must be signed in to change notification settings - Fork 58
Segfault adding a label to a function #155
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
Comments
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Dec 28, 2018
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Jan 21, 2019
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Jan 21, 2019
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Jan 22, 2019
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Jan 23, 2019
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Jan 25, 2019
dvarrazzo
added a commit
to psycopg/psycopg2
that referenced
this issue
Feb 16, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to run the checker on psycopg again 🎉 Trying with psycopg/psycopg2@23438ce and gcc-python-plugin master at 41f52bd. Tested on Ubuntu 18.04 with gcc 5.5.0 and 6.5.0 (packages gcc-5 and gcc-6).
just a
CC=gcc-with-cpychecker make
fails on a file too complex, so I'm trying to run a normalmake
and using the generated commands to test the source files one-by-one. In particular here I'm playing with the filepsycopg/utils.c
so in order to get a command line you can use:and run instead:
(Note that the
-DPSYCOPG_VERSION
option contain spaces so it needs quoting).Testing the file
psycopg/utils.c
, a warning on the functionpsycopg_escape_string()
being too complex is generated (is it?). Trying munging, applying the seemingly harmless patch:results in a segfault with the following output:
Same problem with gcc-5. gcc-7 doesn't deal with refcount check so not playing with it.
The text was updated successfully, but these errors were encountered: