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

SIGSEGV after passing all tests #7048

Closed
bwiklund opened this issue Apr 17, 2020 · 54 comments
Closed

SIGSEGV after passing all tests #7048

bwiklund opened this issue Apr 17, 2020 · 54 comments
Assignees
Labels
prevent-stale mark an issue so it is ignored by stale[bot] topic: SIG errors Program error signals, ie SIGILL, SIGSEGV, SIGBUS, SIGABRT type: bug

Comments

@bwiklund
Copy link

bwiklund commented Apr 17, 2020

I can't comment on the original ticket because it's locked, but this bug #6458 still exists on 4.4.0 as of this evening

image

@jennifer-shehane
Copy link
Member

@bwiklund Is your output also printing Error: This socket has been ended by the other party? If not, it may be another issue. Many things could cause a SIGSEGV error.

Could you run Cypress in debug mode mode and print the entire set of logs here?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Apr 20, 2020
@jamesdonoh
Copy link

Hi @jennifer-shehane my colleague reported #7073 which was closed in favour of this - can't speak for @bwiklund but with DEBUG=cypress:* the final part of my log is:

2020-04-20T16:29:09.804Z cypress:server:run attempting to close the browser
2020-04-20T16:29:09.804Z cypress:server:browsers killing browser process
2020-04-20T16:29:09.804Z cypress:server:electron-app all BrowserWindows closed, not exiting
2020-04-20T16:29:09.804Z cypress:server:browsers:electron closed event fired
2020-04-20T16:29:09.804Z cypress:server:windows removing all electron extensions []
2020-04-20T16:29:09.804Z cypress:server:preprocessor removeFile /Users/donohj03/repos/simorgh/cypress/integration/specialFeatures/cookieBanner/testsForAMPOnly.js
2020-04-20T16:29:09.804Z cypress:server:preprocessor base emitter plugin close event
2020-04-20T16:29:09.804Z cypress:server:preprocessor base emitter native close event
2020-04-20T16:29:09.804Z cypress:browserify close: /Users/donohj03/repos/simorgh/cypress/integration/specialFeatures/cookieBanner/testsForAMPOnly.js
2020-04-20T16:29:09.804Z cypress:browserify close: /Users/donohj03/repos/simorgh/cypress/integration/specialFeatures/cookieBanner/testsForAMPOnly.js
2020-04-20T16:29:09.804Z cypress:server:browsers browser process killed
2020-04-20T16:29:09.806Z cypress:server:run spec results { stats: { suites: 6, tests: 24, passes: 24, pending: 0, skipped: 0, failures: 0, wallClockStartedAt: 2020-04-20T16:28:55.805Z, wallClockEndedAt: 2020-04-20T16:29:09.766Z, wallClockDuration: 13961 }, reporter: 'spec', reporterStats: { suites: 6, tests: 24, passes: 24, pending: 0, failures: 0, start: 2020-04-20T16:28:55.816Z, end: 2020-04-20T16:29:09.799Z, duration: 13983 }, hooks: [ { hookId: 'h1', hookName: 'before each', title: [Array], body: 'function () {\n' + '                    visitPage(pageType, path);\n' + '                }' }, { hookId: 'h2', hookName: 'before each', title: [Array], body: 'function () {\n' + '                    visitPage(pageType, path);\n' + '                }' }, { hookId: 'h3', hookName: 'before each', title: [Array], body: 'function () {\n' + '                    visitPage(pageType, path);\n' + '                }' }, { hookId: 'h4', hookName: 'before each', title: [Array], body: 'function () {\n' + '
visitPage(pageType, path);\n' + '                }' }, { hookId: 'h5', hookName: 'before each', title: [Array], body: 'function () {\n' + '                    visitPage(pageType, path);\n' + '                }' }, { hookId: 'h6', hookName: 'before each', title: [Array], body: 'function () {\n' + '                    visitPage(pageType, path);\n' + '                }' } ], tests: [ { testId: 'r3', title: [Array], state: 'passed', body: 'function () {\n' + "                    getPrivacyBanner(service, variant).should('be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                    getPrivacyBannerAccept(service, variant).click();\n' + "                    getCookieBanner(service, variant).should('be.visible');\n" + "                    getPrivacyBanner(service, variant).should('not.be.visible');\n" + '                    getCookieBannerAccept(service, variant).click();\n' + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + "                    getPrivacyBanner(service, variant).should('not.be.visible');\n" + '                }', stack: null, error: null, timings: [Object], failedFromHookId: null, wallClockStartedAt: 2020-04-20T16:28:55.816Z, wallClockDuration: 629, videoTimestamp: null }, { testId: 'r4', title: [Array], state: 'passed', body: 'function () {\n' + '                    getPrivacyBannerAccept(service, variant).click();\n' + '                    visitPage(pageType, path);\n' + "                    getPrivacyBanner(service, variant).should('be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                }', stack: null, error: null, timings: [Object], failedFromHookId: null, wallClockStartedAt: 2020-04-20T16:28:56.452Z, wallClockDuration: 395, videoTimestamp: null }, { testId: 'r5', title: [Array], state: 'passed', body: 'function () {\n' + '                    getPrivacyBannerAccept(service, variant).click();\n' + '                    getCookieBannerAccept(service, variant).click();\n' + '                    visitPage(pageType, path);\n' + "                    getPrivacyBanner(service, variant).should('not.be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                }', stack: null, error: null, timings: [Object], failedFromHookId: null, wallClockStartedAt: 2020-04-20T16:28:56.853Z, wallClockDuration: 507, videoTimestamp: null }, { testId: 'r6', title: [Array], state: 'passed', body: 'function () {\n' + "                    getPrivacyBanner(service, variant).should('be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                    getPrivacyBannerAccept(service, variant).click();\n' + '                    getCookieBannerReject(service, variant).click();\n' + '                    visitPage(pageType, path);\n' + "                    getPrivacyBanner(service, variant).should('not.be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                }', stack: null, error: null, timings: [Object], failedFromHookId: null, wallClockStartedAt: 2020-04-20T16:28:57.366Z, wallClockDuration: 1490, videoTimestamp: null }, { testId: 'r8', title: [Array], state: 'passed', body: 'function () {\n' + "                    getPrivacyBanner(service, variant).should('be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                    getPrivacyBannerAccept(service, variant).click();\n' + "                    getCookieBanner(service, variant).should('be.visible');\n" + "                    getPrivacyBanner(service, variant).should('not.be.visible');\n" + '                    getCookieBannerAccept(service, variant).click();\n' + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + "                    getPrivacyBanner(service, variant).should('not.be.visible');\n" + '                }', stack: null, error: null, timings: [Object], failedFromHookId: null, wallClockStartedAt: 2020-04-20T16:28:58.864Z, wallClockDuration: 357, videoTimestamp: null }, { testId: 'r9', title: [Array], state: 'passed', body: 'function () {\n' + '                    getPrivacyBannerAccept(service, variant).click();\n' + '                    visitPage(pageType, path);\n' + "                    getPrivacyBanner(service, variant).should('be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                }', stack: null, error: null, timings: [Object], failedFromHookId: null, wallClockStartedAt: 2020-04-20T16:28:59.227Z, wallClockDuration: 302, videoTimestamp: null }, { testId: 'r10', title: [Array], state: 'passed', body: 'function () {\n' + '                    getPrivacyBannerAccept(service, variant).click();\n' + '                    getCookieBannerAccept(service, variant).click();\n' + '                    visitPage(pageType, path);\n' + "                    getPrivacyBanner(service, variant).should('not.be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                }', stack: null, error: null, timings: [Object], failedFromHookId: null, wallClockStartedAt: 2020-04-20T16:28:59.536Z, wallClockDuration: 368, videoTimestamp: null }, { testId: 'r11', title: [Array], state: 'passed', body: 'function () {\n' + "                    getPrivacyBanner(service, variant).should('be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                    getPrivacyBannerAccept(service, variant).click();\n' + '                    getCookieBannerReject(service, variant).click();\n' + '                    visitPage(pageType, path);\n' + "                    getPrivacyBanner(service, variant).should('not.be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                }', stack: null, error: null, timings: [Object], failedFromHookId: null, wallClockStartedAt: 2020-04-20T16:28:59.910Z, wallClockDuration: 574, videoTimestamp: null }, { testId: 'r13', title: [Array], state: 'passed', body: 'function () {\n' + "                    getPrivacyBanner(service, variant).should('be.visible');\n" + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + '                    getPrivacyBannerAccept(service, variant).click();\n' + "                    getCookieBanner(service, variant).should('be.visible');\n" + "                    getPrivacyBanner(service, variant).should('not.be.visible');\n" + '                    getCookieBannerAccept(service, variant).click();\n' + "                    getCookieBanner(service, variant).should('not.be.visible');\n" + "                    getPrivacyBanner(service, variant).should('not.be.visible');\n" + '                }', stack: null, error: null, timings: [Object], failedFromHookId: null, wallClockStartedAt: 2020-04-20T16:29:00.490Z, wallClockDuration: 948, videoTimestamp: null }, { testId: 'r14', titl────────────────────────────────────────────────────────────────────────────────────────────────────

  Running:  specialFeatures/cookieBanner/testsForCanonicalOnly.js                         (14 of 14)
  cypress:cli child event fired { event: 'exit', code: null, signal: 'SIGSEGV' } +2m
The Test Runner unexpectedly exited via a exit event with signal SIGSEGV

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Platform: darwin (18.7.0)
Cypress Version: 4.4.0

I can share the whole file if you let me know the best way to do this. Thanks!

@jennifer-shehane
Copy link
Member

@jamesdonoh Yeah, your SIGSEGV doesn't look to be logged after all the tests are run, but in between one spec before starting a new spec. The log of course gives no helpful information :(

@jamesdonoh
Copy link

@jennifer-shehane is there anything else we can do to help diagnose the cause of this please? The issue we reported above was closed as a dupe of this one, and since migrating to 4.4.0 70-80% of our test runs now crash in this way.

@chris-hinds
Copy link

@jennifer-shehane is there anything else we can do to help diagnose the cause of this please? The issue we reported above was closed as a dupe of this one, and since migrating to 4.4.0 70-80% of our test runs now crash in this way.

Still seeing these crashed on 4/5 of our test runs. We upgraded to cypress 4.4.0 to move away from a security vulnerability in an older version and are reluctant to rollback re-introducing that security vuln.

Any updates would be appreciated.

@marinakuranda
Copy link

Just adding another report that the SIGSEGV is happening, with no useful log at all.

@apascal
Copy link

apascal commented Apr 27, 2020

Hi,

We have the same issue here, reproduced with a minimal single test:

describe('My First Test', () => {
  it('Visits the home', () => {
    cy.visit('/');
  });
});

cypress.json file is completely empty:

{}

Ran either in (gitlab-)ci with cypress/included docker image, or directly from the project root with this command on Mac OS Catalina:

CYPRESS_BASE_URL=http://localhost:3000 npx run cypress

Executed cypress version was 4.4.1, but we've encountered this issue since at least 4.1.0.

The error with DEBUG log activated is similar to what was previously indicated:

cypress:cli child event fired { event: 'exit', code: null, signal: 'SIGSEGV' } +13s
The Test Runner unexpectedly exited via a exit event with signal SIGSEGV

Also note that we sometimes got the SIGBUS error instead:

cypress:cli child event fired { event: 'exit', code: null, signal: 'SIGBUS' } +13s
The Test Runner unexpectedly exited via a exit event with signal SIGBUS

I then ran the following command:

DEBUG=* CYPRESS_BASE_URL=https://www.google.com npx cypress run

10 times out of 10, the result was a success by targeting the google.com home page rather than our own app.

Our web app renders much more slowly than the google.com home page, with quite a lot of javascript executed on the client side (8-10 seconds before first interactivity).

Hope this helps narrow down the problem.

Of course we are working on making our app faster (but don't have control over all scripts, and need to be able to run cypress while the app is in development mode, which is slower).

Is there a workaround to increase the limit (time / memory), for resource heavy web apps?
It used to work 100% well with more tests in cypress 3, so maybe performance or tolerance was impacted with version 4?

@abzainuddin
Copy link

Same problem seems to happen for me, in 4.5.0:

 ================================================================================
  (Run Finished)
The Test Runner unexpectedly exited via a exit event with signal SIGSEGV
Please search Cypress documentation for possible solutions:
https://on.cypress.io
Check if there is a GitHub issue describing this crash:
https://github.com/cypress-io/cypress/issues
Consider opening a new issue.
----------
Platform: linux (Debian - 10.3)
Cypress Version: 4.5.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@edsadr
Copy link

edsadr commented May 7, 2020

yeah.... same problem in our CI:

The Test Runner unexpectedly exited via a exit event with signal SIGSEGV

Please search Cypress documentation for possible solutions:
https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

Platform: linux (Ubuntu Linux - 18.04)    
Cypress Version: 4.5.0

@mwren-mshanken
Copy link

mwren-mshanken commented May 12, 2020

Platform: linux (Debian - 8.10)

--
612 | Cypress Version: 4.5.0
613 | at /codebuild/output/src145582674/src/node_modules/cypress/lib/errors.js:326:15
614 | at tryCatcher (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/util.js:16:23)
615 | at Promise._settlePromiseFromHandler (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:547:31)
616 | at Promise._settlePromise (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:604:18)
617 | at Promise._settlePromise0 (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:649:10)
618 | at Promise._settlePromises (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:729:18)
619 | at Promise._fulfill (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:673:18)
620 | at Promise._resolveCallback (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:466:57)
621 | at Promise._settlePromiseFromHandler (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:559:17)
622 | at Promise._settlePromise (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:604:18)
623 | at Promise._settlePromise0 (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:649:10)
624 | at Promise._settlePromises (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:729:18)
625 | at Promise._fulfill (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:673:18)
626 | at Promise._resolveCallback (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:466:57)
627 | at Promise._settlePromiseFromHandler (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:559:17)
628 | at Promise._settlePromise (/codebuild/output/src145582674/src/node_modules/cypress/node_modules/bluebird/js/release/promise.js:604:18) known: true }
629 | ·[?25h

@jboler
Copy link

jboler commented May 18, 2020

Same here using v4.5.0. Our specs pass locally but on Travis-CI fail after 2 minutes of the initial specs passing with:

The Test Runner unexpectedly exited via a exit event with signal SIGSEGV

After restarting the Travis build about 3 times it will complete successfully.

Cypress 4.3 passes every time no problem.

We are using cypress with TypeScript and no plugins. We are using fixtures only with quite a heavy API.

cypress.json:

{
  "supportFile": "cypress/support/index.ts",
  "videoUploadOnPasses": false,
  "baseUrl": "http://localhost:3030/_",
  "env": {
    "apiUrl": "http://localhost:3000/api/v2/"
  }
}

On Travis we're using a VM with 7.5Gb memory, no docker.

Travis config:

dist: xenial
language: node_js
node_js: 10

addons:
  chrome: stable

cache:
  yarn: true
  directories:
    - node_modules

env:
  - NODE_OPTIONS="--max_old_space_size=6144" # ensure enough memory for the tests

before_install:
  - curl -o- -L https://yarnpkg.com/install.sh | bash
  - export PATH=$HOME/.yarn/bin:$PATH

before_script:
  - yarn start --silent &

script:
  - set -e # Exit immediately if a subsequent command fails
  - yarn install --non-interactive --production=false --pure-lockfile
  - cypress install && yarn cypress run --config video=false
  - kill $(jobs -p) || true

@jboler
Copy link

jboler commented May 21, 2020

With Cypress 4.6 the tests all complete but the Cypress process locks up logging the final output:

image

@jboler
Copy link

jboler commented Jun 15, 2020

Still failing with v4.8

@jboler
Copy link

jboler commented Sep 9, 2020

So we did these 3 things and our Travis Cypress runs no longer hang. Not sure which one fixed it but I suspect it's the file watching because it's a very large codebase.

  • Upgraded to Cypress 5.1
  • Removed @cypress/webpack-preprocessor from package.json
  • Disabled file events watchers for both cypress and our React app dev server with this:

.travis.yml - Added --config watchForFileChanges=false

  - cypress install && yarn cypress run --config watchForFileChanges=false

craco.config.js - added this:

  ...(process.env.CI && {
    devServer: {
      watchOptions: {
        ignored: '/**',
      },
    },
  }),

@markodelgadillo
Copy link

Hi all... looks like I'm joining the party with this crash:

The Test Runner unexpectedly exited via a exit event with signal SIGSEGV

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Platform: darwin (19.6.0)
Cypress Version: 5.1.0

I saved my changes which triggered the test to run again as I still had the test browser open from the previous test. This happened to me twice in a span of 5 minutes :(

@lexsmil
Copy link

lexsmil commented Oct 17, 2020

Cypress: 5.4.0
Browser: Chrome 86
OS: CentOS 7.8.2003

    ✔  All specs passed!                        00:04       20       20        -        -        -  

Error: The Test Runner unexpectedly exited via a exit event with signal SIGSEGV

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Platform: linux (CentOS - 7.8.2003)
Cypress Version: 5.4.0
    at /data/cypress/node_modules/cypress/lib/errors.js:346:15
    at tryCatcher (/data/cypress/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/data/cypress/node_modules/bluebird/js/release/promise.js:547:31)
    at Promise._settlePromise (/data/cypress/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/data/cypress/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/data/cypress/node_modules/bluebird/js/release/promise.js:729:18)
    at Promise._fulfill (/data/cypress/node_modules/bluebird/js/release/promise.js:673:18)
    at Promise._resolveCallback (/data/cypress/node_modules/bluebird/js/release/promise.js:466:57)
    at Promise._settlePromiseFromHandler (/data/cypress/node_modules/bluebird/js/release/promise.js:559:17)
    at Promise._settlePromise (/data/cypress/node_modules/bluebird/js/release/promise.js:604:18)
    at Promise._settlePromise0 (/data/cypress/node_modules/bluebird/js/release/promise.js:649:10)
    at Promise._settlePromises (/data/cypress/node_modules/bluebird/js/release/promise.js:729:18)
    at Promise._fulfill (/data/cypress/node_modules/bluebird/js/release/promise.js:673:18)
    at Promise._resolveCallback (/data/cypress/node_modules/bluebird/js/release/promise.js:466:57)
    at Promise._settlePromiseFromHandler (/data/cypress/node_modules/bluebird/js/release/promise.js:559:17)
    at Promise._settlePromise (/data/cypress/node_modules/bluebird/js/release/promise.js:604:18) {
  known: true
}

Tests are run via API and work perfectly on Cypress 5.3.0

UPDATE
After updating to 5.5.0, the error didn't disappear. But there are no errors on Windows 10 with the same tests and configurations.

@yunj
Copy link

yunj commented Oct 22, 2020

Hi @jennifer-shehane I have encountered the same issue after upgrading from 5.3.0 to the latest 5.4.0 even with all tests passing. I use the docker image cypress/browsers:node12.14.1-chrome85-ff81.

2020-10-22T19:41:52.478Z cypress:server:cypress about to exit with code 0
2020-10-22T19:41:52.478Z cypress:rewriter:threads intercepted process.exit called, closing worker threads
2020-10-22T19:41:52.485Z cypress:rewriter:threads worker exited { exitCode: 0, worker: { isBusy: false, id: 4, freeWorkers: 4 } }
2020-10-22T19:41:52.498Z cypress:rewriter:threads worker exited { exitCode: 0, worker: { isBusy: false, id: 2, freeWorkers: 3 } }
2020-10-22T19:41:52.498Z cypress:rewriter:threads worker exited { exitCode: 0, worker: { isBusy: false, id: 3, freeWorkers: 2 } }
2020-10-22T19:41:52.518Z cypress:rewriter:threads worker exited { exitCode: 0, worker: { isBusy: false, id: 1, freeWorkers: 1 } }
2020-10-22T19:41:52.555Z cypress:https-proxy received error on client browserSocket { err: Error: write EPIPE at afterWriteDispatched (internal/stream_base_commons.js:154:25) at writeGeneric (internal/stream_base_commons.js:145:3) at Socket._writeGeneric (net.js:784:11) at Socket._write (net.js:796:8) at doWrite (_stream_writable.js:403:12) at writeOrBuffer (_stream_writable.js:387:5) at Socket.Writable.write (_stream_writable.js:318:11) at Socket.ondata (_stream_readable.js:695:22) at Socket.emit (events.js:310:20) at addChunk (_stream_readable.js:286:12) at readableAddChunk (_stream_readable.js:268:9) at Socket.Readable.push (_stream_readable.js:209:10) at TCP.onStreamRead (internal/stream_base_commons.js:186:23) { errno: 'EPIPE', code: 'EPIPE', syscall: 'write' }, url: 'example.com:443' }
2020-10-22T19:41:52.619Z cypress:rewriter:threads all workers terminated, exiting for real
2020-10-22T19:41:52.753Z cypress:cli child event fired { event: 'exit', code: null, signal: 'SIGSEGV' }
2020-10-22T19:41:52.760Z cypress:cli Stopping Xvfb
2020-10-22T19:41:52.767Z cypress:cli child event fired { event: 'close', code: null, signal: 'SIGSEGV' }
The Test Runner unexpectedly exited via a exit event with signal SIGSEGV

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Platform: linux (Debian - 10.2)

Cypress Version: 5.4.0

@AntonioGargaro
Copy link

Commenting here as my post was closed as a duplicate, the same issue is occuring in our CI and local environments to error unexpectedly after all tests have passed successfully. We are using Cypress 5.4.0 running in headless mode for E2E testing.

This is screenshot of local run failing with debug,
Screenshot 2020-10-30 at 13 24 05

@cupidline
Copy link

image

Also crashes even though all spec is passed in the bitbucket pipeline. I have no problem with a crash, but this crash makes my test run failed even though all passed.

At my local also crash like this.

gutoslv added a commit to gutoslv/reimagined-octo-guide that referenced this issue Nov 8, 2020
@mysticdevx
Copy link

mysticdevx commented Nov 15, 2020

SOLUTION: Cypress version 5.6.0 in MacOS, when running through terminal, after all the tests complete, cypress crashes and I am getting the same error: The Test Runner unexpectedly exited via a exit event with signal SIGSEGV

I found the reason. the entry "experimentalSourceRewriting": true in the Cypress.json file causes the problem. when removed everything works like a charm. No error on terminal. Hope it works for you all

@abdullahsohailyaqoob
Copy link

@rakesh-basavaraju , if you revert back cypress version to 7.6.0, hopefully that issue will resolve
Just a work around

rodrigok added a commit to RocketChat/Rocket.Chat that referenced this issue Feb 22, 2022
tassoevan pushed a commit to RocketChat/Rocket.Chat that referenced this issue Feb 22, 2022
@github4es
Copy link

Same issue for me:
"The Test Runner unexpectedly exited via a exit event with signal SIGSEGV"
Azure Pipeline Running @bash Task
Platform: linux-x64 (Ubuntu - 20.04)
Cypress Version: 9.5.1

@mattvb91
Copy link

Same issue started happening today when test suite starts on first test on github actions:

Platform: linux-x64 (Debian - 10.9)
Cypress Version: 9.5.3

@nhantrantr
Copy link

Same issue for me today:
Platform: linux-x64 (Ubuntu - 18.04)
Cypress Version: 9.5.3

@cypress-bot cypress-bot bot added stage: backlog and removed stage: needs information Not enough info to reproduce the issue labels Apr 28, 2022
@mattvb91
Copy link

So I decided to try and do a major upgrade on the docker image that runs cypress and went to:

FROM cypress/browsers:node17.8.0-chrome99-ff97-slim

still the exact same issue:

Platform: linux-x64 (Debian - 10.11)
Cypress Version: 9.6.1

@raysunqi
Copy link

still having the same issue on cypress 10.2.0 and cypress/browsers:node14.19.0-chrome100-ff99-edge image, we have 8gb ram on the ci runners, not sure what caused the issue.

@LaurentGoderre
Copy link

For us on Circle CI the issue os intermittent but in Docker running on Mac we seemed to be able to reproduce every time

@cooleiwhistles
Copy link

I am running into this same issue ->

> npx cypress open -C cypress.config.js

The Test Runner unexpectedly exited via a exit event with signal SIGSEGV

Please search Cypress documentation for possible solutions:

https://on.cypress.io

Check if there is a GitHub issue describing this crash:

https://github.com/cypress-io/cypress/issues

Consider opening a new issue.

----------

Platform: linux-x64 (Ubuntu - 20.04)
Cypress Version: 10.11.0

are there any known workarounds?

@mattvb91
Copy link

mattvb91 commented Jan 7, 2023

@cooleiwhistles only "cypress": "9.7.0" is stable, i'd recommend trying that

@nagash77 nagash77 added the prevent-stale mark an issue so it is ignored by stale[bot] label Apr 3, 2023
@ardasendur
Copy link

ardasendur commented May 8, 2023

we encountered same issue with cypress version 12.11.0. are there any known workarounds?

@mattvb91
Copy link

mattvb91 commented May 8, 2023

Ive managed to get it stable on '12.3.0'. Make sure you lock your package.jsons to exact versions and in docker images install the exact version too.

Only upgrade in small steps and validate each version works instead of having auto incrementing versions.

@ardasendur
Copy link

ardasendur commented May 8, 2023

Ive managed to get it stable on '12.3.0'. Make sure you lock your package.jsons to exact versions and in docker images install the exact version too.

Only upgrade in small steps and validate each version works instead of having auto incrementing versions.

We changed the version but error still exists. The error became "child event fired { event: 'close', code: null, signal: 'SIGTRAP' } "

@mschile
Copy link
Contributor

mschile commented May 8, 2023

@ardasendur, @mattvb91, or anyone else, would you be able to recreate the SIGSEGV fault in a reproduction repository by forking cypress-test-tiny or by other means? We would love to determine the cause of the failure instead of being forced to be on a previous version of Cypress.

@ardasendur
Copy link

@ardasendur, @mattvb91, or anyone else, would you be able to recreate the SIGSEGV fault in a reproduction repository by forking cypress-test-tiny or by other means? We would love to determine the cause of the failure instead of being forced to be on a previous version of Cypress.

we will try after a while I will inform you.

@AtofStryker
Copy link
Contributor

@ardasendur any luck with being able to provide a reproduction repository?

@AtofStryker AtofStryker assigned mschile and unassigned AtofStryker Jun 6, 2023
@mschile
Copy link
Contributor

mschile commented Jun 23, 2023

Right now there doesn't seem to be enough information to reproduce the SIGSEGV fault on our end. We'll have to close this issue until we can reproduce it. This does not mean the issue is not happening - it just means that we do not have a path to move forward.

Please comment with a reproducible example concerning the original issue and we can reopen.

@mschile mschile closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prevent-stale mark an issue so it is ignored by stale[bot] topic: SIG errors Program error signals, ie SIGILL, SIGSEGV, SIGBUS, SIGABRT type: bug
Projects
None yet
Development

No branches or pull requests