{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/1230","repository_url":"https://api.github.com/repos/google/google-api-dotnet-client","labels_url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/1230/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/1230/comments","events_url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/1230/events","html_url":"https://github.com/google/google-api-dotnet-client/issues/1230","id":327782519,"number":1230,"title":"Google.Apis.Bigquery.v2 hard crash on dotnet core and linux docker","user":{"login":"AlexandreOuellet","id":5200252,"avatar_url":"https://avatars2.githubusercontent.com/u/5200252?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandreOuellet","html_url":"https://github.com/AlexandreOuellet","followers_url":"https://api.github.com/users/AlexandreOuellet/followers","following_url":"https://api.github.com/users/AlexandreOuellet/following{/other_user}","gists_url":"https://api.github.com/users/AlexandreOuellet/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandreOuellet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandreOuellet/subscriptions","organizations_url":"https://api.github.com/users/AlexandreOuellet/orgs","repos_url":"https://api.github.com/users/AlexandreOuellet/repos","events_url":"https://api.github.com/users/AlexandreOuellet/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandreOuellet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-30T15:26:09Z","updated_at":"2018-05-30T16:20:15Z","closed_at":null,"author_association":"NONE","body":"I am not quite sure why yet, but it seems that we get a hard crash when executing this piece of code within a linux docker container :\r\n```\r\n\t\t\tBigqueryService bqservice = Connect(context);\r\n\r\n\t\t\tif (bqservice == null)\r\n\t\t\t\treturn null;\r\n\r\n\t\t\tvar query = new QueryRequest()\r\n\t\t\t{\r\n\t\t\t\tQuery = sql,\r\n\t\t\t\tDefaultDataset = new DatasetReference()\r\n\t\t\t\t{\r\n\t\t\t\t\tDatasetId = context.DatasetId,\r\n\t\t\t\t\tProjectId = context.ProjectId\r\n\t\t\t\t},\r\n\t\t\t\tTimeoutMs = 600000,\r\n\t\t\t\tMaxResults = 100000,\r\n\t\t\t\tUseQueryCache = true\r\n\t\t\t};\r\n\r\n\t\t\tJobsResource.QueryRequest job = bqservice.Jobs.Query(query, context.ProjectId);\r\n\r\n\t\t\ttry\r\n\t\t\t{\r\n\r\n\t\t\t\tQueryResponse result = job.Execute();//hard crash, no stack trace, the main process of the container dies, and it kills the container\r\n```\r\n\r\nWe are building our solution off of microsoft/aspnetcore-build:2.0 and deploying using microsoft/aspnetcore:2.0 images.\r\n\r\nThe SQL is valid SQL and can be executed within the BigQuery query editor, and we are certain that the DatasetId and ProjectId are valid.\r\n\r\nWe are using Version=\"1.29.1.967\".  We'll try updating to see if that fixes anything.  I'm tempted to simply use google cloud api, see if it fixes anything,, but I'm worried that I will just be delaying/hidding the potential problem and not actually fix it."},"comment":{"url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/comments/393224122","html_url":"https://github.com/google/google-api-dotnet-client/issues/1230#issuecomment-393224122","issue_url":"https://api.github.com/repos/google/google-api-dotnet-client/issues/1230","id":393224122,"user":{"login":"AlexandreOuellet","id":5200252,"avatar_url":"https://avatars2.githubusercontent.com/u/5200252?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandreOuellet","html_url":"https://github.com/AlexandreOuellet","followers_url":"https://api.github.com/users/AlexandreOuellet/followers","following_url":"https://api.github.com/users/AlexandreOuellet/following{/other_user}","gists_url":"https://api.github.com/users/AlexandreOuellet/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandreOuellet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandreOuellet/subscriptions","organizations_url":"https://api.github.com/users/AlexandreOuellet/orgs","repos_url":"https://api.github.com/users/AlexandreOuellet/repos","events_url":"https://api.github.com/users/AlexandreOuellet/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandreOuellet/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T16:20:15Z","updated_at":"2018-05-30T16:20:15Z","author_association":"NONE","body":"(Agreed that it's much easier to use, but did not exist at the time this code was written)\r\n\r\nAnd we've found the bug : Turns out it's a weird interaction/conflict with LibSSL and LibCrypto.  We have an in-house dll that is using different versions (not statically linked) as the one used in google api, and when we load it first, it somehow interfere with the one for bigquery (likely just the authentication part), and just shuts down.\r\n\r\nAs for how we came to this conclusion : pure wild guess.  Tested removing this lib, and it seems to work.  It could also explain our others random crashes that we were getting (this one was the only one that we could reproduce with certainty)."}}
{"actor":{"display_login":"AlexandreOuellet"}}