What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

amtm Segmentation Fault in AMTM

It's just a generic 8GB USB stick.

I'm happy to just scrap it and use a new USB stick and start again from scratch.
Highly recommend replacing it with a cheap SSD drive... they're better suited for work like this.
 
@Gary_Dexter check out option r in amtm, despite all the errors, the reset features should still work.
 
@Gary_Dexter check out option r in amtm, despite all the errors, the reset features should still work.
I did the "r" option the last time and it held out (as in, stopped the segmentation fault error).

The LIB error in my follow-up post was new, however has since gone away following a reboot.

I've not had time to setup the new USB yet, so still using the "old" one - and it "seems" to be OK...
 
I've not had time to setup the new USB yet, so still using the "old" one - and it "seems" to be OK...
$29 Overkill cheap Samsung SSD -- https://www.amazon.com/dp/B08QBN5J9B/?tag=snbforums-20

$10 SSD lit enclosure + USB cable -- https://www.amazon.com/gp/product/B07NF6JQQ4/?tag=snbforums-20

Well worth the money, stability and performance compared to a thumbdrive that will eventually wear out and bork up your entware! @Tech9 would even recommend getting a cheaper SSD... either way, never going back. ;)
 
$29 Overkill cheap Samsung SSD -- https://www.amazon.com/dp/B08QBN5J9B/?tag=snbforums-20

$10 SSD lit enclosure + USB cable -- https://www.amazon.com/gp/product/B07NF6JQQ4/?tag=snbforums-20

Well worth the money, stability and performance compared to a thumbdrive that will eventually wear out and bork up your entware! @Tech9 would even recommend getting a cheaper SSD... either way, never going back. ;)
I'll consider it.. might be moving to Unifi soon so weighing up costs on keeping an old AC ASUS running in the interim.. :)
 
Sooner or later users realize the use of USB stick is only temporary and the system is as reliable as the USB stick.
I think it is an important design goal that the system--meaning the router itself--continue to function even if the USB system fails. Everything USB dependent should be nice-to-haves, or useful, but not essential.
 
This router was never designed to run scripts off USB drive to begin with. This option was added later on top of Asuswrt.
 
$29 Overkill cheap Samsung SSD -- https://www.amazon.com/dp/B08QBN5J9B/?tag=snbforums-20

$10 SSD lit enclosure + USB cable -- https://www.amazon.com/gp/product/B07NF6JQQ4/?tag=snbforums-20

Well worth the money, stability and performance compared to a thumbdrive that will eventually wear out and bork up your entware! @Tech9 would even recommend getting a cheaper SSD... either way, never going back. ;)
I have replaced samsung SD cards, but never samsung SSDHD. I currently have a portable external Samsung SSD. I have had it running now for a few years. Never had corruption, or replacement. SSD + AMTM = Endless possibilities. If you want quality, get an SSD. If you want to keep replacing and don't care about starting out fresh, continue to buy flash drives.
 
Reposting after posting in the incorrect thread/forum...

I'm seeing an occasional "Bus Error" showing up while the amtm screen is printing, and trying to start pixelserv-tls yields a segmentation fault. As one might expect, pixelserv-tls is not running according to the Diversion menu. Occasionally when I'm trying to grep through dnsmasq logs I also see "Bus Error" printed to the terminal. A repeatable test case is to open amtm, select "ep", select "1", and then "Segmentation fault" is output to the terminal and after a second or so the screen clears and I'm back to the amtm home menu.

I'm using a GT-AX11000 on firmware 3004.388.4_rog (which I upgraded to with some trepidation in the hope that it'd help), and amtm version 3.8.

I backed up my USB drive and jffs directory using the scripts and help that y'all provided here (thanks!). I reformatted the drive, unpacked the tarballs, and it's basically back to where it was previously - Diversion and Skynet are configured the same, but the segfaults are also still happening running pixelserv-tls.

I'm wondering if perhaps rather than the disk being corrupt, could it be the case that there's an incompatible library or something causing it? I'm guessing the common denominator here is the content of the files, rather than the sectors on disk?
 
I backed up my USB drive and jffs directory using the scripts and help that y'all provided here (thanks!). I reformatted the drive, unpacked the tarballs, and it's basically back to where it was previously - Diversion and Skynet are configured the same, but the segfaults are also still happening running pixelserv-tls.
You backed up a corrupt drive, formatted it and extracted the backup? What could go wrong? Now you know. Make a backup from a good copy first.
 
Ah, I was naïvely hoping that maybe tar would skip over corrupt files when making the backup.

So given that I have a crap backup, what would y'all recommend as a remedy here? I'm not quite sure how destructive various options are (eg the amtm reset options), and the idea of reconfiguring the entire router from scratch is not appealing.
 
Start from scratch. Priceless to know where/what condition your router/network is in. Almost guaranteed to need to do so anyway in the very near future if you try to take shortcuts now.
 
So given that I have a crap backup, what would y'all recommend as a remedy here?
Well, you could try restoring the bad backup and then run r from AMTM to allow AMTM to reset any entware stuff that might be corrupted and hope for the best. But, you would always be left with the notion "Is everything really ok". Starting with a frest entware install really is the way to go here.
 
@Gary_Dexter check out option r in amtm, despite all the errors, the reset features should still work.

How exactly can you run the r command? I have this nasty segmentation fault going on atm (amtm LOL) and I would like to try some reset before starting from scratch.
But from PuTTY amtm is only scrolling texts (segmentation fault and illegal instruction) endlessly.

Can I do something from Merlin GUI?
 
How exactly can you run the r command? I have this nasty segmentation fault going on atm (amtm LOL) and I would like to try some reset before starting from scratch.
But from PuTTY amtm is only scrolling texts (segmentation fault and illegal instruction) endlessly.

Can I do something from Merlin GUI?
Try running this command:
Code:
rm /jffs/addons/amtm/a_fw/amtm.mod
If that doesn't fix it try this:
Code:
rm -fr /jffs/addons/amtm
 
Try running this command:
Code:
rm /jffs/addons/amtm/a_fw/amtm.mod
If that doesn't fix it try this:
Code:
rm -fr /jffs/addons/amtm

After running the first one and amtm after that:

Code:
xxxxxxxxxxxxxxx@RT-AC68U-9AB8:/tmp/home/root# amtm
Illegal instruction
Illegal instruction
_____________________________________________

 Initializing amtm for first run

 Getting from fwupdate.asuswrt-merlin.net
 ! Module amtm.mod is not an amtm file
 ! using fallback server diversion.ch
 ! Module amtm.mod is not an amtm file

 All download attempts failed,
 exiting amtm now.

 Check that both domains properly resolve
 on this router:
 - fwupdate.asuswrt-merlin.net
 - diversion.ch

And after the second one and running amtm:

Code:
xxxxxxxxxx@RT-AC68U-9AB8:/tmp/home/root# amtm
Illegal instruction
_____________________________________________

 Select a theme that works best in your
 SSH client. All colors in use are shown.

 1. standard       standard        standard
    standard       standard        standard
_____________________________________________

 2. green          green           green
    green          green           green
_____________________________________________

 3. blue           blue            blue
    blue           blue            blue
_____________________________________________

 4. blue_on_white  blue_on_white   blue_on_wh
    blue_on_white  blue_on_white   blue_on_wh
_____________________________________________

 5. solarized      solarized       solarized
    solarized      solarized       solarized
_____________________________________________

 6. high_contrast  high_contrast   high_contr
    high_contrast  high_contrast   high_contr
_____________________________________________

 7. reduced        reduced         reduced
    reduced        reduced         reduced
_____________________________________________

 8. reduced_w      reduced_w       reduced_w
    reduced_w      reduced_w       reduced_w
_____________________________________________

 9. reduced_cw     reduced_cw      reduced_cw
    reduced_cw     reduced_cw      reduced_cw
_____________________________________________

10. reduced_b      reduced_b       reduced_b
    reduced_b      reduced_b       reduced_b
_____________________________________________

11. reduced_cb     reduced_cb      reduced_cb
    reduced_cb     reduced_cb      reduced_cb
_____________________________________________

12. basic          basic
_____________________________________________
Illegal instruction

13. Let Diversion set theme ()
_____________________________________________

 The basic and reduced themes use no or fewer
 colors, service states may not be visible.

 Select amtm theme: [1-13] 4
Segmentation fault
Segmentation fault
_____________________________________________

 Initializing amtm for first run
 - Created /jffs/addons/amtm directory

 Getting from fwupdate.asuswrt-merlin.net
 ! Module amtm.mod is not an amtm file
 ! using fallback server diversion.ch
 ! Module amtm.mod is not an amtm file

 All download attempts failed,
 exiting amtm now.

 Check that both domains properly resolve
 on this router:
 - fwupdate.asuswrt-merlin.net
 - diversion.ch

xxxxxxxxxxx@RT-AC68U-9AB8:/tmp/home/root# amtm
Segmentation fault
Segmentation fault
_____________________________________________

 Initializing amtm for first run

 Getting from fwupdate.asuswrt-merlin.net
 ! Module amtm.mod is not an amtm file
 ! using fallback server diversion.ch
 ! Module amtm.mod is not an amtm file

 All download attempts failed,
 exiting amtm now.

 Check that both domains properly resolve
 on this router:
 - fwupdate.asuswrt-merlin.net
 - diversion.ch
 
After running the first one and amtm after that:

Code:
xxxxxxxxxxxxxxx@RT-AC68U-9AB8:/tmp/home/root# amtm
Illegal instruction
Illegal instruction
_____________________________________________

 Initializing amtm for first run

 Getting from fwupdate.asuswrt-merlin.net
 ! Module amtm.mod is not an amtm file
 ! using fallback server diversion.ch
 ! Module amtm.mod is not an amtm file

 All download attempts failed,
 exiting amtm now.

 Check that both domains properly resolve
 on this router:
 - fwupdate.asuswrt-merlin.net
 - diversion.ch

And after the second one and running amtm:

Code:
xxxxxxxxxx@RT-AC68U-9AB8:/tmp/home/root# amtm
Illegal instruction
_____________________________________________

 Select a theme that works best in your
 SSH client. All colors in use are shown.

 1. standard       standard        standard
    standard       standard        standard
_____________________________________________

 2. green          green           green
    green          green           green
_____________________________________________

 3. blue           blue            blue
    blue           blue            blue
_____________________________________________

 4. blue_on_white  blue_on_white   blue_on_wh
    blue_on_white  blue_on_white   blue_on_wh
_____________________________________________

 5. solarized      solarized       solarized
    solarized      solarized       solarized
_____________________________________________

 6. high_contrast  high_contrast   high_contr
    high_contrast  high_contrast   high_contr
_____________________________________________

 7. reduced        reduced         reduced
    reduced        reduced         reduced
_____________________________________________

 8. reduced_w      reduced_w       reduced_w
    reduced_w      reduced_w       reduced_w
_____________________________________________

 9. reduced_cw     reduced_cw      reduced_cw
    reduced_cw     reduced_cw      reduced_cw
_____________________________________________

10. reduced_b      reduced_b       reduced_b
    reduced_b      reduced_b       reduced_b
_____________________________________________

11. reduced_cb     reduced_cb      reduced_cb
    reduced_cb     reduced_cb      reduced_cb
_____________________________________________

12. basic          basic
_____________________________________________
Illegal instruction

13. Let Diversion set theme ()
_____________________________________________

 The basic and reduced themes use no or fewer
 colors, service states may not be visible.

 Select amtm theme: [1-13] 4
Segmentation fault
Segmentation fault
_____________________________________________

 Initializing amtm for first run
 - Created /jffs/addons/amtm directory

 Getting from fwupdate.asuswrt-merlin.net
 ! Module amtm.mod is not an amtm file
 ! using fallback server diversion.ch
 ! Module amtm.mod is not an amtm file

 All download attempts failed,
 exiting amtm now.

 Check that both domains properly resolve
 on this router:
 - fwupdate.asuswrt-merlin.net
 - diversion.ch

xxxxxxxxxxx@RT-AC68U-9AB8:/tmp/home/root# amtm
Segmentation fault
Segmentation fault
_____________________________________________

 Initializing amtm for first run

 Getting from fwupdate.asuswrt-merlin.net
 ! Module amtm.mod is not an amtm file
 ! using fallback server diversion.ch
 ! Module amtm.mod is not an amtm file

 All download attempts failed,
 exiting amtm now.

 Check that both domains properly resolve
 on this router:
 - fwupdate.asuswrt-merlin.net
 - diversion.ch
Can you eject and unplug any USB drives that are plugged into the router, reboot and run amtm again please.
 
Can you eject and unplug any USB drives that are plugged into the router, reboot and run amtm again please.

Thanks for the tips!

I have two USB flash drives attached. I went to Merlin GUI and unmounted the one containing Entware, so it is unmounted now. But cannot reboot the router just right now because I need the internet connection at the moment. But I will reboot later today and try again.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top