{"action":"created","issue":{"url":"https://api.github.com/repos/patriksimek/node-mssql/issues/181","labels_url":"https://api.github.com/repos/patriksimek/node-mssql/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/patriksimek/node-mssql/issues/181/comments","events_url":"https://api.github.com/repos/patriksimek/node-mssql/issues/181/events","html_url":"https://github.com/patriksimek/node-mssql/issues/181","id":91371547,"number":181,"title":"Segmentation Fault","user":{"login":"nivoset","id":5205713,"avatar_url":"https://avatars.githubusercontent.com/u/5205713?v=3","gravatar_id":"","url":"https://api.github.com/users/nivoset","html_url":"https://github.com/nivoset","followers_url":"https://api.github.com/users/nivoset/followers","following_url":"https://api.github.com/users/nivoset/following{/other_user}","gists_url":"https://api.github.com/users/nivoset/gists{/gist_id}","starred_url":"https://api.github.com/users/nivoset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nivoset/subscriptions","organizations_url":"https://api.github.com/users/nivoset/orgs","repos_url":"https://api.github.com/users/nivoset/repos","events_url":"https://api.github.com/users/nivoset/events{/privacy}","received_events_url":"https://api.github.com/users/nivoset/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/patriksimek/node-mssql/labels/segfault","name":"segfault","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-26T21:48:47Z","updated_at":"2015-08-02T19:14:18Z","closed_at":null,"body":"So i have had my node.js code running for a week+ with no problems, today i had to restart it (no changes done) and now it gives me a segmentation fault every time. \r\n\r\nIf i have the connect statement it errors, if not it runs fine. \r\n\r\nI've been looking around and i haven't found any reason, i even updated node and all associated modules just in case. snippet of code below.\r\n\r\nThere are 2 servers i can connect to, the main and the test. it happens on either\r\n\r\nJust stumped right now on what changed/happened.\r\n   \r\n    \r\n    //Web connections\r\n    var app = require('express')();\r\n    var http = require('http').Server(app);\r\n    var io = require('socket.io')(http);\r\n    \r\n    //MS SQL connection\r\n    var sql = require('mssql');\r\n    \r\n    var config = {\r\n       test: {\r\n          user: 'ro',\r\n          password: 'password',\r\n          server: 'aws_server',\r\n          database: 'main',\r\n          options: {\r\n             encrypt: true\r\n          }\r\n       },\r\n       full: {\r\n          user: 'ro',\r\n          password: 'password',\r\n          server: 'aws_server', \r\n          database: 'main',\r\n          options: {\r\n             encrypt: true\r\n          }\r\n       }\r\n    };\r\n    \r\n    var connection = new sql.Connection(config.full, function(err) {\r\n    \tif (err) {\r\n    \t\tconsole.log(\"Error connecting!\");\r\n    \t\tconsole.log(err);\r\n    \t} else {\r\n    \t\tqueryRequest = new sql.Request(connection);\r\n    \t\tupdateRecords();\r\n    \t\tgetVariableDefines();\r\n    \t}\r\n    });"},"comment":{"url":"https://api.github.com/repos/patriksimek/node-mssql/issues/comments/127056173","html_url":"https://github.com/patriksimek/node-mssql/issues/181#issuecomment-127056173","issue_url":"https://api.github.com/repos/patriksimek/node-mssql/issues/181","id":127056173,"user":{"login":"tmont","id":188562,"avatar_url":"https://avatars.githubusercontent.com/u/188562?v=3","gravatar_id":"","url":"https://api.github.com/users/tmont","html_url":"https://github.com/tmont","followers_url":"https://api.github.com/users/tmont/followers","following_url":"https://api.github.com/users/tmont/following{/other_user}","gists_url":"https://api.github.com/users/tmont/gists{/gist_id}","starred_url":"https://api.github.com/users/tmont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmont/subscriptions","organizations_url":"https://api.github.com/users/tmont/orgs","repos_url":"https://api.github.com/users/tmont/repos","events_url":"https://api.github.com/users/tmont/events{/privacy}","received_events_url":"https://api.github.com/users/tmont/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T19:14:18Z","updated_at":"2015-08-02T19:14:18Z","body":"I also got a segfault when attempting to connect using node v0.12.7. I downgraded to node v0.10.39 and then it worked, so it's probably something in node 0.12."}}