Any ideas what this is trying to tell me?
---------------------
Here''s my environment, under OSX 10.5.7:
---------------------
postgres (PostgreSQL) 8.3.7
pg (0.8.0)
Rails 2.3.2
ruby 1.8.7 (2009-04-08 patchlevel 160) [powerpc-darwin9.7.0]
---------------------
Here''s the stderr tail that comes out when running the test:
---------------------
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
"compresses_pkey" for table "compresses"
ERROR:  invalid input syntax for integer: "foo"
STATEMENT:  SELECT "topics".id FROM "topics" WHERE
("topics"."id" E''foo'')  LIMIT 1
ERROR:  relation "badtable" does not exist
STATEMENT:  select 1 from badtable
ERROR:  column companies.dhh does not exist at character 34
STATEMENT:  SELECT * FROM "companies" WHERE
("companies"."dhh" = ''t''
AND "companies"."id" = 2)  LIMIT 1
NOTICE:  CREATE TABLE will create implicit sequence
"prefix_topics_suffix_id_seq" for serial column
"prefix_topics_suffix.id"
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index
"prefix_topics_suffix_pkey" for table "prefix_topics_suffix"
LOG:  unexpected EOF on client connection
LOG:  unexpected EOF on client connection
---------------------
Here''s the test output:
---------------------
/opt/local/bin/ruby -I"lib:test:test/connections/native_postgresql"
"/
opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
rake_test_loader.rb" "test/cases/aaa_create_tables_test.rb"
"test/
cases/active_schema_test_postgresql.rb"
"test/cases/adapter_test.rb"
"test/cases/aggregations_test.rb"
"test/cases/ar_schema_test.rb" "test/
cases/associations/belongs_to_associations_test.rb" "test/cases/
associations/callbacks_test.rb" "test/cases/associations/
cascaded_eager_loading_test.rb" "test/cases/associations/
eager_load_includes_full_sti_class_test.rb" "test/cases/associations/
eager_load_nested_include_test.rb" "test/cases/associations/
eager_singularization_test.rb"
"test/cases/associations/eager_test.rb"
"test/cases/associations/extension_test.rb"
"test/cases/associations/
has_and_belongs_to_many_associations_test.rb"
"test/cases/associations/
has_many_associations_test.rb" "test/cases/associations/
has_many_through_associations_test.rb" "test/cases/associations/
has_one_associations_test.rb" "test/cases/associations/
has_one_through_associations_test.rb" "test/cases/associations/
inner_join_association_test.rb" "test/cases/associations/
join_model_test.rb" "test/cases/associations_test.rb"
"test/cases/
attribute_methods_test.rb"
"test/cases/autosave_association_test.rb"
"test/cases/base_test.rb" "test/cases/batches_test.rb"
"test/cases/
binary_test.rb" "test/cases/calculations_test.rb"
"test/cases/
callbacks_observers_test.rb" "test/cases/callbacks_test.rb"
"test/
cases/class_inheritable_attributes_test.rb" "test/cases/
column_alias_test.rb" "test/cases/column_definition_test.rb"
"test/
cases/connection_pool_test.rb" "test/cases/
database_statements_test.rb"
"test/cases/datatype_test_postgresql.rb"
"test/cases/date_time_test.rb" "test/cases/defaults_test.rb"
"test/
cases/deprecated_finder_test.rb" "test/cases/dirty_test.rb"
"test/
cases/finder_respond_to_test.rb" "test/cases/finder_test.rb"
"test/
cases/fixtures_test.rb" "test/cases/i18n_test.rb"
"test/cases/
inheritance_test.rb" "test/cases/invalid_date_test.rb"
"test/cases/
json_serialization_test.rb" "test/cases/lifecycle_test.rb"
"test/cases/
locking_test.rb" "test/cases/method_scoping_test.rb"
"test/cases/
migration_test.rb" "test/cases/mixin_test.rb" "test/cases/
modules_test.rb" "test/cases/multiple_db_test.rb"
"test/cases/
named_scope_test.rb" "test/cases/nested_attributes_test.rb"
"test/
cases/pk_test.rb" "test/cases/pooled_connections_test.rb"
"test/cases/
query_cache_test.rb" "test/cases/readonly_test.rb"
"test/cases/
reflection_test.rb" "test/cases/reload_models_test.rb"
"test/cases/
sanitize_test.rb"
"test/cases/schema_authorization_test_postgresql.rb"
"test/cases/schema_dumper_test.rb" "test/cases/
schema_test_postgresql.rb" "test/cases/serialization_test.rb"
"test/
cases/transactions_test.rb" "test/cases/unconnected_test.rb"
"test/
cases/validations_i18n_test.rb" "test/cases/validations_test.rb"
"test/
cases/xml_serialization_test.rb"
(in /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.2)
Using native PostgreSQL
Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/
rake_test_loader
Started
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................./
test/cases/../../lib/active_record/connection_adapters/abstract/
schema_definitions.rb:68: [BUG] Segmentation fault
ruby 1.8.7 (2009-04-08 patchlevel 160) [powerpc-darwin9.7.0]
rake aborted!
Command failed with status (): [/opt/local/bin/ruby -I"lib:test:test/
conne...]
(See full trace by running task with --trace)
> test/cases/../../lib/active_record/connection_adapters/abstract/ > schema_definitions.rb:68: [BUG] Segmentation fault > ruby 1.8.7 (2009-04-08 patchlevel 160) [powerpc-darwin9.7.0]Your postgres driver is probably crashing (the segmentation fault). This causes the connection to disappear (the unexpected EOF on client connection) As for why that''s happening? I have no idea sorry. -- Cheers Koz
Thanks for the response. As it turns out, the test completes fine if I run it as: rake test_postgresql it goes to completion and produces: 2088 tests, 6837 assertions, 0 failures, 0 errors go figure... On Jun 9, 5:52 pm, Michael Koziarski <mich...@koziarski.com> wrote:> > test/cases/../../lib/active_record/connection_adapters/abstract/ > > schema_definitions.rb:68: [BUG] Segmentation fault > > ruby 1.8.7 (2009-04-08 patchlevel 160) [powerpc-darwin9.7.0] > > Your postgres driver is probably crashing (the segmentation fault). > This causes the connection to disappear (the unexpected EOF on client > connection) > > As for why that''s happening? I have no idea sorry. > -- > Cheers > > Koz