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

Segmentation fault in longjmp #341

Closed
renatahodovan opened this issue Jul 8, 2015 · 3 comments
Closed

Segmentation fault in longjmp #341

renatahodovan opened this issue Jul 8, 2015 · 3 comments
Labels
bug Undesired behaviour

Comments

@renatahodovan
Copy link
Contributor

Jerry version:
Checked revision: 146ac15
Build: debug.linux
OS:
Ubuntu 15.04, x86_64
Test case:

Hex: BF 0A 0A

Backtrace:
^
ERROR: Ln 1, Col 1: Invalid source encoding

Program received signal SIGSEGV, Segmentation fault.
0x0000000000497a84 in longjmp () at jerryscript/jerry-libc/target/linux/jerry-asm.S:69
69    _LONGJMP
(gdb) bt
#0  0x0000000000497a84 in longjmp () at jerryscript/jerry-libc/target/linux/jerry-asm.S:69
Backtrace stopped: Cannot access memory at address 0x0
@ruben-ayrapetyan
Copy link
Contributor

The failure is caused by invocation of syntax_raise_error before setjmp was performed in parser_parse_program.

ruben-ayrapetyan added a commit that referenced this issue Jul 14, 2015
…uld raise an early error.

Related issues: #341

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
@ruben-ayrapetyan
Copy link
Contributor

Pull request with fix: #390

@ruben-ayrapetyan
Copy link
Contributor

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behaviour
Projects
None yet
Development

No branches or pull requests

4 participants