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 with latest changes on large files #11

Closed
charles-randall opened this issue Mar 22, 2021 · 1 comment
Closed

Segfault with latest changes on large files #11

charles-randall opened this issue Mar 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@charles-randall
Copy link
Contributor

charles-randall commented Mar 22, 2021

Input file attached...

$ /tmp/msort.new uuid.10k.txt > /dev/null
Segmentation fault (core dumped)

Backtrace,

$ gdb /tmp/msort.new core
...
Reading symbols from /tmp/msort.new...
[New LWP 2773816]
Core was generated by `/tmp/msort.new uuid.10k.txt'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000056143a4bedf6 in merge (f1=<error reading variable: Cannot access memory at address 0x7ffe1f355de8>, 
    f2=<error reading variable: Cannot access memory at address 0x7ffe1f355de0>, 
    f3=<error reading variable: Cannot access memory at address 0x7ffe1f355dd8>) at msort.c:751
751	void merge(FILE *f1, FILE *f2, FILE *f3) {
...
(gdb) bt
#0  0x000056143a4bedf6 in merge (f1=<error reading variable: Cannot access memory at address 0x7ffe1f355de8>, 
    f2=<error reading variable: Cannot access memory at address 0x7ffe1f355de0>, 
    f3=<error reading variable: Cannot access memory at address 0x7ffe1f355dd8>) at msort.c:751
#1  0x000056143a4bf789 in handleMerges (numFiles=3, x=114 'r') at msort.c:957
#2  0x000056143a4bffef in main (argc=2, argv=0x7ffe20356568) at msort.c:1182

uuid.10k.txt

@charles-randall
Copy link
Contributor Author

Probably the same problem as issue #7

@mayank-02 mayank-02 added the bug Something isn't working label Mar 23, 2021
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

2 participants