bugGNU Octave - Bugs: bug #49987, database package: error when...

 
 

bug #49987: database package: error when trying to connect to a database

Submitter:  Karen Kuhn <kuhn>
Submitted:  Thu 05 Jan 2017 03:48:36 PM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 Jan 2017 05:28:36 PM UTC, comment #5: 

Closing as fixed

John Donoghue <lostbard>
Group Member
Sun 08 Jan 2017 05:14:16 PM UTC, comment #4: 

Pushed a fix. Can be closed.

Reason was a configure test failing erroneously in Octave 3.8.2, leading to usage of an as yet unused macro version for error handling, which had a bug.

Olaf Till <i7tiol>
Group Member
Sat 07 Jan 2017 10:09:28 AM UTC, comment #3: 

The segfaults with different Octave versions were unrelated and are now fixed (bug #49992, was triggered by having Debians Octave installed concurrently). The current bug seems not to occur in Octave version 4.0.0 and later.

Olaf Till <i7tiol>
Group Member
Thu 05 Jan 2017 09:41:45 PM UTC, comment #2: 

Submitted a new bug #49992 for the segfault part.

Olaf Till <i7tiol>
Group Member
Thu 05 Jan 2017 04:40:27 PM UTC, comment #1: 

Reproduced with Debians Octave 3.8.2, with currently no clue from gdb why octave_value.string_value() shouldn't have worked. With Octave 4.0.0 and current 4.3.0+ (2017-01-03, 53bb781d70c0) I get segfaults at dlopen time with a weird, possibly corrupted backtrace. I suspect a poorly reproducible bug in initialization of globals, possibly indirectly causing the original issue of this report. I'm at work on it.

Olaf Till <i7tiol>
Group Member
Thu 05 Jan 2017 03:48:36 PM UTC, original submission:  

I tried to connect to a test database via


conn = pq_connect(setdbopts("host", "localhost","port", "5432","dbname",
"testdb", "user", "superx", "password", ""))


and get the error:


error: octave_pq_get_postgres_oid: could not convert given type tostring
error: could not read types
error: __pq_connect__ failed
error: called from:
error:   /usr/share/octave/packages/database-2.4.2/pq_connect.m atline 112,
column 8


For an empty database I get the same error.

I'm working on a Debian 8.6 machine with postgresql 9.4.9. I installed the packages struct 1.0.14 and database 2.4.2 without any problem report as root user via:

pkg install -forge -global -verbose struct
pkg install -forge -global -verbose database

Karen Kuhn <kuhn>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-24 lostbard Item GroupNone Unexpected Error or Warning
        StatusNone Fixed
        Open/ClosedOpen Closed
    2017-01-05 kuhn Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code