Opened 7 years ago

Closed 5 years ago

#5784 closed (fixed)

Busybox - Invalid argument since r31533 Broadcom K2.6

Reported by: doktornotor Owned by: BrainSlayer
Keywords: Cc: RuiPereira, kernel-panic69

Description

Dead simple things like

echo foo > /tmp/bar

fail with

-sh: 1: Invalid argument

Breaks startup scripts and tons of other things. Also reported here: http://www.dd-wrt.com/phpBB2/viewtopic.php?p=1070010#1070010

Still broken on E4200 with dd-wrt.v24-31722_NEWD-2_K2.6_mega-nv60k.bin

Attachments (3)

Screenshot from 2019-08-17 03-00-32.png (100.6 KB ) - added by kernel-panic69 5 years ago.
Screenshot from 2019-08-17 03-03-07.png (100.1 KB ) - added by kernel-panic69 5 years ago.
Screenshot from 2019-08-17 03-05-47.png (96.4 KB ) - added by kernel-panic69 5 years ago.

Download all attachments as: .zip

Change History (23)

comment:1 by doktornotor, 7 years ago

Anyone alive here? Kinda high priority breakage if you ask me.

comment:2 by doktornotor, 7 years ago

This project sucks big time. You could as well close the bug tracker, completely useless. Switching to LEDE.

comment:3 by doktornotor, 7 years ago

Resolution: wontfix
Status: newclosed

comment:4 by RuiPereira, 7 years ago

Cc: RuiPereira added
Resolution: wontfix
Status: closedreopened

I confirm this is still the case for a E2000 as of r33679 (k2.6), which is a major problem since that a lot of things do not work correctly (eg. wifi scheduling or anything needing to write into files).

It works however using K3X firmwares, but my router just crawls under the extra load (transfer speeds are 10x slower), so that's not an option.

I tried to search for the bug in the commits, but the changeset [31277:31533] is quite daunting...

Last edited 7 years ago by RuiPereira (previous) (diff)

comment:5 by RuiPereira, 7 years ago

As a side note, a similar bug was reported upstream, but it seems to be a problem with the busybox config or compilation in dd-wrt.

Last edited 7 years ago by RuiPereira (previous) (diff)

comment:6 by Brian Q, 7 years ago

Still an issue as of R33679 (E4200/dd-wrt.v24-33679_NEWD-2_K2.6_big-nv60k).

This is kind of critical since more recent builds are required for the krack vulnerability fix.

Only workaround I've found is to change the following: echo foo > /tmp/bar TO echo foo | tee /tmp/bar echo foo >> /tmp/bar TO echo foo | tee -a /tmp/bar

comment:7 by doktornotor, 6 years ago

And still an issue with r36808, in fact, it got MUCH worse, see https://svn.dd-wrt.com/ticket/6373

Bad joke, really.

comment:8 by kernel-panic69, 6 years ago

Tested up to r37406 (r37405, K2.6 builds seem to be one off in version number), still an issue in K2.6 builds.

Also to note, the webUI command shell also has issues, which could be related somehow: https://svn.dd-wrt.com/ticket/4121

Last edited 6 years ago by kernel-panic69 (previous) (diff)

comment:9 by kernel-panic69, 6 years ago

Cc: kernel-panic69 added

comment:10 by kernel-panic69, 6 years ago

Tested all the way up to r37582 and still broken.

comment:11 by doktornotor, 5 years ago

2 years later, still the same shit. Impressive.

comment:12 by darxis, 5 years ago

It has been 2 years that the following things are broken because of this bug:

  • OpenVPN not working
  • running scripts from USB not working
  • running commands from WebUI Command form not working
  • startup scripts not working
  • telnet working but disconnects when executing stuff like 'echo xxx > /tmp/tmp.tmp'

Will it be fixed in the nearest future?

Edit: still broken as 37305

Last edited 5 years ago by darxis (previous) (diff)

in reply to:  12 comment:13 by doktornotor, 5 years ago

Replying to darxis:

Will it be fixed in the nearest future?

Sure thing, planned right after human landing on Mars.

comment:14 by kernel-panic69, 5 years ago

Owner: set to BrainSlayer
Status: reopenednew
Summary: Busybox - Invalid argument since r31533Busybox - Invalid argument since r31533 Broadcom K2.6

comment:15 by kernel-panic69, 5 years ago

#4121 closed due to it being a matter of command input. #6373 is still an active ticket. I haven't tested K2.6 builds in a while to see if this has been fixed.

by kernel-panic69, 5 years ago

by kernel-panic69, 5 years ago

by kernel-panic69, 5 years ago

comment:16 by kernel-panic69, 5 years ago

Still a problem on k2.6 builds @ r40634 mega on E4200v1

comment:17 by kernel-panic69, 5 years ago

Resolution: provide more info and reopen
Status: newclosed

comment:18 by kernel-panic69, 5 years ago

Resolution: provide more info and reopen
Status: closedreopened

comment:19 by kernel-panic69, 5 years ago

Finally, some progress:

https://svn.dd-wrt.com/ticket/6373#comment:23

https://svn.dd-wrt.com/changeset/40707

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1173893#1173893

Should be able to close this ticket soon enough, if the commit fixes these issues.

Last edited 5 years ago by kernel-panic69 (previous) (diff)

comment:20 by kernel-panic69, 5 years ago

Resolution: fixed
Status: reopenedclosed

Tested in alpha builds 40708 and 40711, looks like it's good to go! https://svn.dd-wrt.com/ticket/6373#comment:37

Note: See TracTickets for help on using tickets.