Closed ms705 closed 8 years ago
Having dug into this, it looks like we're facing a deeper issue here -- simply moving to protobuf3 for the job submission script did not help. Decoding a text format or JSON format protobuf sent via HTTP fails with a segfault inside protobuf for me no matter what I do. I'm working on a smaller test case for this, so that we can insolate the responsible piece of code (which could be the pion web server, or protobuf, or the job submission script).
@ms705 I wrote a job submission code in go, same as the Python code. While submitting the job I get a 500 error code(internal server error). I will fix that issue tomorrow and test it. Then we can confirm if the problem is with the job script.
@shivramsrivastava I've actually managed to pin this down -- a fix is in the works.
The problem was related to an old protobuf2 header being used by one of the libraries we link (pb2json
). Since we don't need that library any more now that protobuf3 has native JSON support, it can be removed.
As reported by @shivramsrivastava in #50:
We are getting this following error after we refreshed our branch with the latest changes we are getting a SIGSEGV.
Line where the error occurs.
Content of 'job_descriptor_param'.
This error relates to the protobuf3 transition: the job submission script still generates Python code using protobuf2, and the text format therefore becomes incompatible.
There are two solutions: