Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segfault after sending request in "Try it" #812

Closed
aviskase opened this issue Mar 22, 2020 · 6 comments
Closed

Segfault after sending request in "Try it" #812

aviskase opened this issue Mar 22, 2020 · 6 comments
Assignees

Comments

@aviskase
Copy link

Describe the bug
When I click "Send" for anything in our API in "Try it" studio crashes with segfault.

To Reproduce
Happens even with the smallest version of our API: api.zip. Host is internal deployment (we don't have external facing hosts)
I suspect SSL validation: even though we use HTTPS, for test environments we need to disable SSL validation in clients.

For Petstore example "Try it" works fine.

logs:

➜ ./stoplight-studio-linux-x86_64_f5650f59acd0a03c6efb7de930c1f9b8.AppImage 
(electron) 'getName function' is deprecated and will be removed. Please use 'name property' instead.
(electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false".  It will change to be "true" in Electron 9.  For more information please check https://github.com/electron/electron/issues/18397
00:28:19.385 › Checking for update
00:28:19.432 › Generated new staging user ID: 55d69007-36a2-51b7-9bb0-3d77f797199b
00:28:20.750 › Update for version 1.10.2 is not available (latest version: 1.10.2, downgrade is allowed).
Segmentation fault (core dumped)

`/var/log/syslog/

Mar 22 00:28:42 aviskase-xps15 kernel: [24293.586531] stoplight-studi[22637]: segfault at 8 ip 0000563bc7977b4d sp 00007ffdb0437ca0 error 4 in stoplight-studio[563bc7970000+53ce000]

Environment (remove any that are not applicable):

  • Studio version: 1.10.2
  • OS: Ubuntu 19.10
@philsturgeon
Copy link
Contributor

Thanks for this, I've elevated it to the appropriate peoples.

@vintprox
Copy link

vintprox commented May 2, 2020

Yeah, I am completely misguided now, when I just happened to find some decent documentation suite for REST APIs, which is Stoplight, and it basically crashes when I send simple request. I am looking forward for the update! 💯 🔆

@philsturgeon
Copy link
Contributor

@vintprox hey there, sorry for the delay. We've not heard anything more from anyone else about this issue and I've not been able to recreate it, so.... not sure what to do here. Could you try and recreate it in v1.12?

@philsturgeon
Copy link
Contributor

Agh ok no it's happening in Studio Desktop v1.12.0.

image

@weleoka
Copy link

weleoka commented Jul 4, 2020

Whenever a "Try it" request to an https server with an untrusted self-signed certificate is made it will crash on Stoplight v1.13.0 running as an Appimage on Debian 10 Sid stoplight-studio-linux-x86_64.AppImage.

It leaves a "Segmentation Fault" and the process was terminated SIGSEGV.

Tell me how I can get better logs out of this or if there is a supply of the source code somewhere.

Also, on a side note, the About section in the App says Copyright 2019.

@lottamus lottamus removed their assignment Jul 8, 2020
@billiegoose billiegoose self-assigned this Jul 17, 2020
@philsturgeon
Copy link
Contributor

Just to let you folks know, a PR has resolved the segfault, and we’re just figuring out how to handle the scenario properly. Self signed certs are certainly a thing which a lot of people use for dev environments, so we want to make sure we cater to that properly. Updates soon!

@philsturgeon philsturgeon transferred this issue from stoplightio/studio Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants