LightningCreations / LightningCreations/lc-coreutils

chmod: **buffer overflow detected** when installing rust docs

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When chmod is executed during rust `./x install`, crashes with a buffer overflow.

```rust
PID: 681320 (chmod)
UID: 1000 ()
GID: 1000 ()
Signal: 6 (ABRT)
Timestamp: Sat 2025-05-24 12:44:13 EDT (5min ago)
Command Line: chmod -R u+rwX,go+rX,go-w /home//.wl/toolchain/share/doc/docs/html
Executable: /usr/local/bin/chmod
Control Group: /user.slice/user-1000.slice/user@1000.service/app.slice/app-code\x2dinsiders@5c87b55e8d3745ca818cfa423cebbf1a.service
Unit: user@1000.service
User Unit: app-code\x2dinsiders@5c87b55e8d3745ca818cfa423cebbf1a.service
Slice: user-1000.slice
Owner UID: 1000 ()
Boot ID: 3684023dd2224f85a882cfc4d52e0318
Machine ID: cee6e5244a2f4927975d4c0a3628fc02
Hostname:
Storage: none
Message: Process 681320 (chmod) of user 1000 terminated abnormally without generating a coredum
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash during rust `./x install` and inspect the `chmod -R u+rwX,go+rX,go-w` invocation against the documented executable path. Trace the chmod implementation responsible for this command; done means installing the Rust docs completes without the reported buffer overflow or abort.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, rust
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.