ish-app / ish-app/ish

No core file generated for division by zero

Open
#1,020 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
20.5k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

```
# make
g++ -g -MMD -MP -c -o main.o main.cpp
main.cpp: In function 'int f()':
main.cpp:5:12: warning: division by zero [-Wdiv-by-zero]
5 | int n = 1 / 0;
| ~~^~~
g++ main.o -o main
#
# ulimit -c
unlimited
#
# ./main
hello
#
# cat main.cpp
#include
using namespace std;

int f() {
int n = 1 / 0;
}

int main() {
cout << "hello\n";
f();
}
#
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the provided main.cpp reproducer and run make, then execute ./main with ulimit -c set to unlimited. Investigate why the division-by-zero case does not produce a core file; done means the reproducer generates the expected core file under the shown conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.