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

00089.c segfault at address 0x10 while tool run #355

Open
IngeniariusSoftware opened this issue Sep 10, 2022 · 1 comment
Open

00089.c segfault at address 0x10 while tool run #355

IngeniariusSoftware opened this issue Sep 10, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@IngeniariusSoftware
Copy link
Member

remove the test from the line if it fixed in the testcuite:
00087, 00088, 00089, 00124, 00159, 00189, 00209, 00210, 00216: TODO segfault at address 0x10 while tool run

tests:
https://github.com/c-testsuite/c-testsuite/blob/master/tests/single-exec/00089.c

int
zero()
{
	return 0;
}

struct S
{
	int (*zerofunc)();
} s = { &zero };

struct S *
anon()
{
	return &s;
}

typedef struct S * (*fty)();

fty
go()
{
	return &anon;
}

int
main()
{
	return go()()->zerofunc();
}
@IngeniariusSoftware IngeniariusSoftware added the bug Something isn't working label Sep 10, 2022
@0pdd
Copy link
Member

0pdd commented Apr 11, 2024

@IngeniariusSoftware the puzzle #457 is still not solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants