mas: segmentation fault: mas list

Hi there, all mas commands run fine with the exception of mas list, which is seg faulting.

Any way to help debugging without compiling from source? 😊

❯❯❯ mas version
1.3.1

❯❯❯ mas account
-stripped-

❯❯❯ mas list
[1]    5424 segmentation fault  mas list

Resetting or signin/signout does not fix it.

Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 4
  • Comments: 20 (4 by maintainers)

Most upvoted comments

For the folks that have this, do you have a macOS installer downloaded? I think that was my problem. When I attempted to run mas list, this is what I got:

$ mas list                                                                                                                                                                      (254ms)
1063661581 Renamer 5 (5.1.0)
931657367 Calcbot (1.0.6)
1081413713 GIF Brewery 3 (3.6)
880001334 Reeder (3.0.5)
451907568 Paprika Recipe Manager (2.2.0)
407963104 Pixelmator (3.7)
497799835 Xcode (9.0)
585829637 Todoist (7.0.3)
557168941 Tweetbot (2.5.3)
1263070803 Lungo (1.3.0)
924726344 Deliveries (3.0.5)
1017470484 Next Meeting (1.9.2)
889428659 xScope (4.3)
425424353 The Unarchiver (3.11.3)
1179623856 Pastebot (2.1.4)
fish: 'mas list' terminated by signal SIGSEGV (Address boundary error)

When I compiled from source and ran it, I got this (notice what’s below Pastebot):

./build/mas list                                                                                                                                                                 (10s 79ms)
1063661581 Renamer 5 (5.1.0)
931657367 Calcbot (1.0.6)
1081413713 GIF Brewery 3 (3.6)
880001334 Reeder (3.0.5)
451907568 Paprika Recipe Manager (2.2.0)
407963104 Pixelmator (3.7)
497799835 Xcode (9.0)
585829637 Todoist (7.0.3)
557168941 Tweetbot (2.5.3)
1263070803 Lungo (1.3.0)
924726344 Deliveries (3.0.5)
1017470484 Next Meeting (1.9.2)
889428659 xScope (4.3)
425424353 The Unarchiver (3.11.3)
1179623856 Pastebot (2.1.4)
0 Install macOS High Sierra (13.0.64)
419330170 Moom (3.2.9)
420212497 Byword (2.8.1)
873245660 Spillo (2.0)
890031187 Marked 2 (2.5.10)
409201541 Pages (6.3)
413965349 Soulver (2.6.4)
803453959 Slack (2.8.1)
1055511498 Day One (2.5.1)
942305623 Thessa (1.4)
411643860 DaisyDisk (4.4)
405399194 Kindle (1.20.3)
992076693 MindNode (2.5.5)
409203825 Numbers (4.3)
443987910 1Password (6.8.2)
409183694 Keynote (7.3)
1091189122 Bear (1.3.1)
1107421413 1Blocker (1.4)

So my guess is that the macOS installers (or possibly other apps?) don’t have a product.itemIdentifier and we get a segmentation fault.

I could use “mas list” again on High Sierra 10.13.1 after explicitely uninstalling mas via “brew uninstall mas” followed by a “brew install mas” and deleting the “Install macOS High Sierra” App from Applications. Prior to that, I also got a segmentation violation. I hope that this can help you as well bridging the gap until someone takes care of an update of this (beloved and still very useful) project…

Bam! I had this very same issueSegmentation fault: 11 and after I uninstalled my macOS Sierra installer the segmentation fault error was resolved. Hat tip to @wesbaker for the easy fix.

$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.12.6
BuildVersion:	16G1036

$ mas version
1.3.1

Sure enough, when I delete the installer, mas list works like before.