bugGNU Octave - Bugs: bug #54031, [octave forge] (database) Unit...


bug #54031: [octave forge] (database) Unit test in pq_connect.m segfaults for local database

Submitted by:  Rafael Laboissiere <rlaboiss>
Submitted on:  Fri 01 Jun 2018 01:42:56 PM UTC  
Category:  Octave Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  other Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 29 Jun 2018 02:55:43 PM UTC, comment #4:

Fixed by this changeset:


, which removes determination of the superuser OID and reads base types without it.

Olaf Till <i7tiol>
Project Member
Thu 28 Jun 2018 02:51:36 PM UTC, comment #3:

The segfault has been turned into an error by this changeset:


, but the problem in making it work is that for reliably reading the base types, the OID of "server user" is needed. This OID is read by the package by trusting that this user is named "postgres", while with the current configuration it is the name of the user who runs the test. Maybe it's necessary to deduce the correct name from servers system tables somehow. OTOH, maybe the OID is always 10. Does someone of you know if I can rely on it being 10?

Olaf Till <i7tiol>
Project Member
Wed 27 Jun 2018 08:21:32 PM UTC, comment #2:

Confirmed with postgresql 9.6.7. Still have to examine.

Olaf Till <i7tiol>
Project Member
Fri 01 Jun 2018 08:49:59 PM UTC, comment #1:

Same on cygwin 64

Octave 4.4, database 2.4.3, and PostGreSQL 10.4

database-2.4.3/pq_connect.m .................................fatal: caught signal Segmentation fault -- stopping myself...

and I am the admin

marco atzeri <matzeri>
Fri 01 Jun 2018 01:42:56 PM UTC, original submission:

I am trying to run the unit test in pq_connect.m against a PostGreSQL database created locally, i.e. without root access. It is segfaulting and I cannot figure out what is wrong. Below is the transcript of my session in bash. I am also attaching to this bug report the result of strace for the last octave-cli command below. I am using Octave 4.4, database 2.4.3, and PostGreSQL 10.

Please, tell me if I should do something else in order to test pq_connect without root access. Also, feel free to close this report if this is a non-bug.

Rafael Laboissiere <rlaboiss>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by i7tiol (Posted a comment)
  • -email is unavailable- added by matzeri (Posted a comment)
  • -email is unavailable- added by rlaboiss (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-29 i7tiol StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2018-06-27 i7tiol StatusNone => Confirmed
    2018-06-01 rlaboiss Attached File- => Added database-test-pq_connect-strace.txt, #44270

    Back to the top

    Powered by Savane 3.4