Port Bug Report: large object insertion in table dumps core
| От | Unprivileged user |
|---|---|
| Тема | Port Bug Report: large object insertion in table dumps core |
| Дата | |
| Msg-id | 199901071547.KAA14240@hub.org обсуждение исходный текст |
| Список | pgsql-ports |
============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================
Your name : Alessandro Baldoni
Your email address : abaldoni@csr.unibo.it
Category : runtime: back-end
Severity : serious
Summary: large object insertion in table dumps core
System Configuration
--------------------
Operating System : Irix 6.3
PostgreSQL version : 6.4.2
Compiler used : native cc 7.1
Hardware:
---------
IRIX BIAS_o2 6.3 12161207 IP32
MIPS R10000, 128Mb RAM
Versions of other tools:
------------------------
--------------------------------------------------------------------------
Problem Description:
--------------------
Unable to add a large object to a table.
--------------------------------------------------------------------------
Test Case:
----------
create table foo (a oid);
insert into foo values (lo_import ('/tmp/foo.obj'));
--------------------------------------------------------------------------
Solution:
---------
CVD debugger reports error at line 1067 of inv_api.c
*((int32 *) attptr) = obj_desc->offset + nwrite - 1;
Here, obj_desc->offset is 0, nwrite is 1024, lhs is 0,
attptr is a hex location.
--------------------------------------------------------------------------
В списке pgsql-ports по дате отправления: