|Subject:||Bus error on unique key conflict|
I have a freshly-created SQLite database with a single table, created thusly: CREATE TABLE nums (num INTEGER UNIQUE); I also have a simple Perl program: use DBI; $dbh = DBI->connect('dbi:SQLite:mydb', '', ''); $dbh->do('INSERT INTO nums (num) VALUES (1)'); The first time I run the program, it adds the row normally. The second time I run the program, it gets killed by a bus error. ("Bus error" is printed to the console, and the exit status is 138; POSIX::WTERMSIG(138) is indeed 10, SIGBUS.) This is version 1.14 of DBD-SQLite, using Perl 5.8.8 on Mac OS X 10.5.2.