EnterpriseDB / mysql_fdw

PostgreSQL foreign data wrapper for MySQL
Other
521 stars 160 forks source link

connection.c:1: internal compiler error: Segmentation fault #209

Closed MarcusCalidus closed 2 years ago

MarcusCalidus commented 3 years ago

I am getting a segmentation fault after make USE_PGXS=1. What am I missing?

Log output here: ccQKd36p.out.txt

Fedora release 32 (Thirty Two) Postgres 13.0

gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -I/usr/include/mysql -D _MYSQL_LIBNAME=\"libmysqlclient.so\" -I. -I./ -I/usr/pgsql-13/include/server -I/usr/pgsql-13/include/internal  -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include  -c -o connection.o connection.c
*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_UNIT               | annobin: Generate final annotations
PLUGIN_START_UNIT                | annobin: Generate global annotations
PLUGIN_ALL_PASSES_START          | annobin: Generate per-function annotations
PLUGIN_ALL_PASSES_END            | annobin: Register per-function end symbol
connection.c:1: internal compiler error: Segmentation fault
    1 | /*-------------------------------------------------------------------------
      |
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccQKd36p.out file, please attach this to your bugreport.
make: *** [<builtin>: connection.o] Error 1
MarcusCalidus commented 3 years ago

I don't know how to disable the active plugins. Any advice?

MarcusCalidus commented 3 years ago

The error lies in the following part of the compiler command -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 I manually left it out and build every .o file by hand. Finally make install runs without any problem. The fdw seems to work fine.

surajkharage19 commented 2 years ago

HI @MarcusCalidus,

As you stated above, issue is resolved at your end. We are closing the case for now. If the issue persists, you can reopen the case anytime.