skip to Main Content

Apache AGE debugging issue

1

When I attach the PostgreSQL backend process id to GDB the following messages are displayed.
No debugging symbols are found.
What should I do?

Are there any special flags or configuration I need to set up to enable dubugging for AGE.

3

Answers


  1. You can still debug the code with these two problems, You can consider them as warnings and ignore them.

    You need to install libc6 sources to solve these issues.

    So if you are using Debian/Ubuntu:

    try:
    $ sudo apt-get source libc6

    and this solves your issue.

    Login or Signup to reply.
  2. I guess while installing Postgres you forgot to enable debugging. In order to enable debugging symbols for PostgreSQL, you need to recompile PostgreSQL from the source with the appropriate debugging flags enabled. When compiling from the source, you can include the –enable-debug flag to enable debugging symbols.

    configure by setting flags

    ./configure --enable-debug --enable-cassert --prefix=$(pwd) CFLAGS="-ggdb -Og -fno-omit-frame-pointer"
    

    for more details refer to this

    Login or Signup to reply.
  3. I think you should try these steps and try redebuging :

    1.Firstly stop the running server.

    2.Compile it again with debug symbols enabled like:

    $ ./configure CFLAGS="-g"

    $ make

    3.GDB should be attached with PostgreSQL backend process id using this command:

    $ gdb -p

    is the process id of the PostgreSQL backend process running AGE.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search