question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google.Apis.Bigquery.v2 hard crash on dotnet core and linux docker

See original GitHub issue

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 :

			BigqueryService bqservice = Connect(context);

			if (bqservice == null)
				return null;

			var query = new QueryRequest()
			{
				Query = sql,
				DefaultDataset = new DatasetReference()
				{
					DatasetId = context.DatasetId,
					ProjectId = context.ProjectId
				},
				TimeoutMs = 600000,
				MaxResults = 100000,
				UseQueryCache = true
			};

			JobsResource.QueryRequest job = bqservice.Jobs.Query(query, context.ProjectId);

			try
			{

				QueryResponse result = job.Execute();//hard crash, no stack trace, the main process of the container dies, and it kills the container

We are building our solution off of microsoft/aspnetcore-build:2.0 and deploying using microsoft/aspnetcore:2.0 images.

The SQL is valid SQL and can be executed within the BigQuery query editor, and we are certain that the DatasetId and ProjectId are valid.

We 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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
AlexandreOuelletcommented, May 30, 2018

(Agreed that it’s much easier to use, but did not exist at the time this code was written)

And 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.

As 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).

0reactions
jskeetcommented, May 30, 2018

Aha - yes, I’ve seen that problem in a completely different scenario. Note that this isn’t part of the .NET library; it would be part of one of the base docker images.

I’ll close this issue now as I don’t think it’s related to code in this repo, but let me know if you think I should reopen it.

Thanks so much for reporting the result, and well done for finding it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

core3.0 docker container crashing with no status
I have a asp.net core 3.0 preview application that runs fine on my Windows box. I move it to linux (Ubuntu 18.04), running...
Read more >
How to use Docker to run ASP.NET Core apps on ...
How to use Docker to run ASP.NET Core apps on Google App Engine · Step 1: Run your ASP.NET Core app locally ·...
Read more >
Why isn't my ASP.NET Core app in Docker working?
In this post I describe a problem where my ASP.NET Core app in Docker wasn't responding to requests. This post debugs and diagnoses...
Read more >
Aborted (core dumped) when running .NET 6.0 app in ...
Upon investigation, the process crashes with Aborted (core dumped) when ran with dotnet app.dll . Reproduction Steps. It's very hard for me to ......
Read more >
Diagnostics - Jon Skeet's coding blog
The immediate crash was due to an exception being thrown in an async void method. Relevant threading aspects: I start the ASP.NET Core...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found