Bug 187873 - SEGV when accessing $sth->{TYPE}->[$i] for a VIEW
Summary: SEGV when accessing $sth->{TYPE}->[$i] for a VIEW
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-DBD-SQLite
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jose Pedro Oliveira
QA Contact: Fedora Extras Quality Assurance
URL: http://rt.cpan.org/Public/Bug/Display...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-04 07:50 UTC by Nigel Metheringham
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: perl-DBD-SQLite-1.12-1
Clone Of:
Environment:
Last Closed: 2006-04-12 15:14:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Workround patch for SEGV in type (1002 bytes, patch)
2006-04-04 07:50 UTC, Nigel Metheringham
no flags Details | Diff

Description Nigel Metheringham 2006-04-04 07:50:49 UTC
Description of problem:

Enumeration of type information on a VIEW causes a SEGV.
This would be avoidable, except that DBIx::Class hits this on startup if you
have a database including a VIEW.

See http://rt.cpan.org/Public/Bug/Display.html?id=12347

Version-Release number of selected component (if applicable):
perl-DBD-SQLite-1.11

How reproducible:
Every time

Steps to Reproduce:
See upstream bug report

Comment 1 Nigel Metheringham 2006-04-04 07:50:49 UTC
Created attachment 127276 [details]
Workround patch for SEGV in type

Comment 2 Jose Pedro Oliveira 2006-04-05 17:09:33 UTC
Imported and build for devel.

SRPM and build logs available here:
http://buildsys.fedoraproject.org/logs/fedora-development-extras/7258-perl-DBD-SQLite-1.11-4.fc6/

Comment 3 Jose Pedro Oliveira 2006-04-12 15:14:19 UTC
Patch still needed with DBD::SQLite 1.12.

Without the patch in comment #1 the following script still crashes
when accesing the TYPE information.
----------
#!/usr/bin/perl -w
use strict;
use DBI;

my $dbh = DBI->connect("dbi:SQLite:dbname=foo", "", "");
my $sth = $dbh->prepare("SELECT * FROM f");
$sth->execute();
$sth->fetch();
my $types = $sth->{TYPE};
my $names = $sth->{NAME};
print "# Names: @$names\n";
print "# Types: @$types\n";

$sth->finish;
$dbh->disconnect;
----------


perl-DBD-SQLite-1.12-1 built for FC-5 and devel.




Note You need to log in before you can comment on or make changes to this bug.