ufront / ufront-orm

The Object Relational Mapper, allows easy, type-safe access to your database. Builds on Haxe's SPOD but adds macro powered relationships, validation and client side usage
MIT License
13 stars 4 forks source link

testAll.sh segmentation fault #13

Open theRemix opened 9 years ago

theRemix commented 9 years ago

this is running Haxe 3.2.0

./testAll.sh 
Start Haxe server
Compile #1
Test neko mysql

assertations: 158
successes: 158
errors: 0
failures: 0
warnings: 0
execution time: 0.718

results: ALL TESTS OK (success: true)
testcases.TestManyToMany
  testAddingMultipleTimes: OK ..
  testBasics: OK ........................................
  testTableName: OK ......
  testUnsavedRelations: OK ................
testcases.TestObjects
  testManager: OK .
  testSave: OK ...
  testToString: OK ..
testcases.TestRelationships
  testBelongsToHasMany: OK ...
  testBelongsToHasOne: OK ...
  testPreventUnsavedRelationships: OK .
testcases.TestSerialization
  testSerializeUnsavedObject: OK ..
testcases.TestValidation
  testMetadataValidationWithMessage: OK ....
  testMetadataValidationWithNullValue: OK ....
  testMultipleMetadataValidation1: OK ....
  testMultipleMetadataValidation2: OK ....
  testMultipleMetadataValidation3: OK ....
  testNullValuesAreInvalid: OK .........
  testPreventSaving: OK .
  testSingleMetadataValidation: OK ....
  testValidateFieldFunction: OK .......
  testValidateModelFunction: OK ..
testcases.issues.Issue001
  testMultipleManyToMany: OK ....................................
Test neko sqlite
./testAll.sh: line 24:  1664 Segmentation fault      (core dumped) neko build/neko_test.n sqlite

i have a docker image that has haxe, neko, mysql, and sqlite, although, maybe there's something wrong with my libsqlite3.so.0 dependency for neko.
docker pull gomagames/ufront-orm
https://registry.hub.docker.com/u/gomagames/ufront-orm/

theRemix commented 9 years ago

tested on a fresh install of

Haxe 3.1.3

same result

root@9dd1ffcaea12:/app# ./testAll.sh
...
Test neko sqlite
./testAll.sh: line 24:  1296 Segmentation fault      (core dumped) neko build/neko_test.n sqlite

here's a Haxe-3.1.3 docker image: docker pull gomagames/ufront-orm:haxe-3.1.3 https://registry.hub.docker.com/u/gomagames/ufront-orm/

jasononeil commented 9 years ago

I'm not experienced with Docker yet (it's on my todo-list) but I was unable to get the image working:

jason@jason-tk:~/tmp/ufdocker$ sudo docker run gomagames/ufront-orm
2015-02-07 03:09:47,361 CRIT Supervisor running as root (no user in config file)
2015-02-07 03:09:47,363 WARN Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing
Unlinking stale socket /var/run/supervisor.sock
2015-02-07 03:09:47,715 INFO RPC interface 'supervisor' initialized
2015-02-07 03:09:47,716 WARN cElementTree not installed, using slower XML parser for XML-RPC
2015-02-07 03:09:47,716 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2015-02-07 03:09:47,716 INFO supervisord started with pid 1
2015-02-07 03:09:48,719 INFO spawned: 'sshd' with pid 13
2015-02-07 03:09:48,721 INFO spawned: 'mysqld' with pid 14
2015-02-07 03:09:48,723 INFO spawned: 'postgres' with pid 15
2015-02-07 03:09:48,779 INFO exited: mysqld (exit status 0; not expected)
2015-02-07 03:09:49,939 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-02-07 03:09:49,940 INFO spawned: 'mysqld' with pid 23
2015-02-07 03:09:49,941 INFO success: postgres entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-02-07 03:09:49,986 INFO exited: mysqld (exit status 0; not expected)
2015-02-07 03:09:51,988 INFO spawned: 'mysqld' with pid 25
2015-02-07 03:09:52,053 INFO exited: mysqld (exit status 0; not expected)
2015-02-07 03:09:55,058 INFO spawned: 'mysqld' with pid 27
2015-02-07 03:09:55,105 INFO exited: mysqld (exit status 0; not expected)
2015-02-07 03:09:56,107 INFO gave up: mysqld entered FATAL state, too many start retries too quickly

and then it just hangs.

Have you been able to resolve the issue?

(And the next question - does any Haxe sqlite connection work? Or is it only when used with ufront-orm?)

theRemix commented 9 years ago

Quick Guide on gomagames/ufront-orm:haxe-3.1.3

Create the container

if you already have a container with the same name (docker will error), then you can use that, or name this container something else, or delete it to create this new one with the same name.
docker rm -f ufront-orm-test-313

use the -v flag mount your ufront-orm/ source directory to /app

docker run -it -d -p 2277:22 -v /home/core/share/Projects/ufront-orm/:/app --name ufront-orm-test-313 -w /app gomagames/ufront-orm:haxe-3.1.3

run haxelib

just in case there are updates

docker exec -it ufront-orm-test-313  haxelib install /app/test.hxml

Loading info about the required libraries
Haxelib is going to install these libraries:
  tink_core - 1.0.0-rc.7
  tink_macro - 0.5.0
  compiletime - 2.5.1
  utest - 1.3.2
Continue? [y/n/a] ? a
You already have tink_core version 1.0.0-rc.7 installed
You already have tink_macro version 0.5.0 installed
You already have compiletime version 2.5.1 installed
You already have utest version 1.3.2 installed
start mysql server, (i don't know why this isn't auto started)
docker exec -it ufront-orm-test-313 service mysql start

run the tests

docker exec -it ufront-orm-test-313 ./testAll.sh

mine errors because of sqlite, using

SQLite version 3.7.13 2012-06-11 02:05:22

note: mysql is already setup with database ufrontormtest username : root password : root