Skip to content

persistent-test randomly segfaults with -fpostgresql #314

@albertov

Description

@albertov
alberto@precise64:~/src/pcivil14/persistent/persistent-test$ git log --pretty=oneline -n1
d7779b0719faa7786983416e9e842a4979d70c6b Allow embedded NULLs in SQLite text and bytestrings #310
alberto@precise64:~/src/pcivil14/persistent/persistent-test$ gdb dist/build/test/test
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /home/alberto/src/pcivil14/persistent/persistent-test/dist/build/test/test...done.
(gdb) r
Starting program: /home/alberto/src/pcivil14/persistent/persistent-test/dist/build/test/test 
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
ALTER TABLE "User" DROP COLUMN "profile";
ALTER TABLE "User" ADD CONSTRAINT "UniqueUser" UNIQUE("ident");
Migrating: ALTER TABLE "User" DROP COLUMN "profile"
Migrating: ALTER TABLE "User" ADD CONSTRAINT "UniqueUser" UNIQUE("ident")
NOTICE:  ALTER TABLE / ADD UNIQUE will create implicit index "UniqueUser" for table "User"
ALTER TABLE "User" ADD COLUMN "profile" VARCHAR NOT NULL;
ALTER TABLE "User" DROP CONSTRAINT "UniqueUser";
Migrating: ALTER TABLE "User" ADD COLUMN "profile" VARCHAR NOT NULL
Migrating: ALTER TABLE "User" DROP CONSTRAINT "UniqueUser"

persistent
  - fieldLens
  - FilterOr []
  - ||. []
  - FilterAnd []
  - order of opts is irrelevant
  - passes the general tests
  - persistIdField
  - !=.
  - Double Maybe
  - and/or
  - deleteWhere
  - deleteBy
  - delete
  - toPathPiece . fromPathPiece
  - replace
  - getBy
  - updateGet
  - upsert without updates
  - upsert with updates
  - maybe update
  - updateWhere
  - selectList
  - selectSource
  - selectFirst
  - selectKeys
  - insertMany_ with no arguments
  - insertBy
  - insertKey
  - repsert
  - retrieves a belongsToJust association
  - retrieves a belongsTo association
  - derivePersistField
  - derivePersistFieldJSON
  - idIn

  toJSON
    - serializes

  - rawSql/2+2
  - rawSql/?-?
  - rawSql/NULL
  - rawSql/entity
  - rawSql/order-proof
  - rawSql/OUTER JOIN
  - commit/rollback
  - mpsNoPrefix
  - IsSqlKey instance

  strictness
    - bang
    - tilde
    - blank

Finished in 0.4486 seconds
47 examples, 0 failures

rename specs
  - handles lower casing
  - extra blocks

data type specs
  - handles all types FAILED [1]

html
  - works

embedded entities
  - simple entities
  - query for equality of embeded entity
  - Set
  - Set empty
  - exception
  - ListEmbed
  - ListEmbed empty
  - List empty
  - NonEmpty List wrapper
  - Map
  - Map empty
  - Embeds a Map
  - Embeds a Map empty

embedded entities
  - preserves ordering
  - PersistMap PersistValue serializaion

persistent
  - large numbers

uniqueness constraints
  - are respected for non-nullable Ints
  - are respected for nullable Ints
  - work for Checkmark

Maximum length attribute
  - (unspecified behavior)

sum types
  - works

migration only
  - works

persistent
  - fieldLens
  - FilterOr []
  - ||. []
  - FilterAnd []
  - order of opts is irrelevant
  - passes the general tests
  - persistIdField
  - !=.
  - Double Maybe
  - and/or
  - deleteWhere
  - deleteBy
  - delete
  - toPathPiece . fromPathPiece
  - replace
  - getBy
  - updateGet
  - upsert without updates
  - upsert with updates
  - maybe update
  - updateWhere
  - selectList
  - selectSource
  - selectFirst
  - selectKeys
  - insertMany_ with no arguments
  - insertBy
  - insertKey
  - repsert
  - retrieves a belongsToJust association
  - retrieves a belongsTo association
  - derivePersistField
  - derivePersistFieldJSON
  - idIn

  toJSON
    - serializes

  - rawSql/2+2
  - rawSql/?-?
  - rawSql/NULL
  - rawSql/entity
  - rawSql/order-proof
  - rawSql/OUTER JOIN
  - commit/rollback
  - mpsNoPrefix
  - IsSqlKey instance

  strictness
    - bang
    - tilde
    - blank

empty entity
  - inserts

composite
  primary keys
    - Insert
    - Id field
    - Filter by Id with 'not equal'
    - Filter by Id with 'in'
    - Filter by Id with 'not in'
    - Filter by Id with 'not in' with no data
    - Extract Parent Foreign Key from Child value
    - Tree relationships
    - Validate Key contents
    - Delete
    - Update
    - Insert Many to Many

Migration
  - is idempotent
  - really is idempotent

1) data type specs handles all types

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7bc029e in PQftable () from /usr/lib/libpq.so.5
(gdb) bt
#0  0x00007ffff7bc029e in PQftable () from /usr/lib/libpq.so.5
#1  0x0000000000c89817 in ?? ()
#2  0x0000000000000000 in ?? ()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions