Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 7 of 7

Thread: problems with arduino-1.8.5 + teensyduino-1.41 and serial on linux and FastLED

  1. #1

    problems with arduino-1.8.5 + teensyduino-1.41 and serial on linux and FastLED

    I had this problem with an older version of the arduino lib, and teensyduino. I just upgraded both and it's still there.
    platform: linux debian kernel 4.15, teensy 3.1

    My code is here:
    https://github.com/marcmerlin/FastLE...rixGFXDemo.ino

    First, serial output, for lack of a better word, is "wonky".
    I get some serial output in teensymonitor /dev/ttyACM0 at 115200. Sometimes early output gets dropped, and subsequent output stops half way through the program although the program keeps running.

    But the most annoying problem is that when I change my code and hit compile/upload in the arduino IDE, often I get a 30+ second pause while the arduino IDE hangs before it starts compiling.
    Strangely it's hung on 'uploading to board', but as soon as it unhangs, it switches to 'compiling' and then it uploads to the board.
    It seems that before it will compile, it wants to talk to the teensy, that hangs, and eventually it times out and proceeds, but I have to wait too long before it goes ahead.

    This _only_ happens if I have the serial terminal running. If I don't, compile/upload works instantly.
    And it gets better, I tried to run strace to see what it would hang on, but as soon as I run strace on the hung IDE, it unhangs and proceeds.
    If I strace the IDE before starting the compile, then it hangs as normal, but if I stop strace, it unhangs too.

    So, I ran an strace during : sudo strace -tt -f -p 914 2>&1

    I checked what's going on during the hang, and I see a lot of

    [pid 964] 18:26:06.398343 readlink("/sys/class/tty/tty55", "../../devices/virtual/tty/tty55", 4096) = 31
    [pid 964] 18:26:06.398381 lstat("/sys/class/tty/tty17", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.398427 readlink("/sys/class/tty/tty17", "../../devices/virtual/tty/tty17", 4096) = 31
    [pid 964] 18:26:06.398463 lstat("/sys/class/tty/tty9", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.398509 readlink("/sys/class/tty/tty9", "../../devices/virtual/tty/tty9"..., 4096) = 30
    [pid 964] 18:26:06.398547 lstat("/sys/class/tty/tty45", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.398591 readlink("/sys/class/tty/tty45", "../../devices/virtual/tty/tty45", 4096) = 31
    [pid 964] 18:26:06.398626 lstat("/sys/class/tty/tty", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.398670 readlink("/sys/class/tty/tty", "../../devices/virtual/tty/tty"..., 4096) = 29
    [pid 964] 18:26:06.398707 lstat("/sys/class/tty/tty35", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.398752 readlink("/sys/class/tty/tty35", "../../devices/virtual/tty/tty35", 4096) = 31
    [pid 964] 18:26:06.398788 lstat("/sys/class/tty/tty63", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.398833 readlink("/sys/class/tty/tty63", "../../devices/virtual/tty/tty63", 4096) = 31
    [pid 964] 18:26:06.398870 lstat("/sys/class/tty/tty25", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.398970 readlink("/sys/class/tty/tty25", "../../devices/virtual/tty/tty25", 4096) = 31
    [pid 964] 18:26:06.399061 lstat("/sys/class/tty/ttyACM0", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.399122 readlink("/sys/class/tty/ttyACM0", "../../devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/tty/ttyACM0", 4096) = 66
    [pid 964] 18:26:06.399197 lstat("/sys/class/tty/ttyACM0", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.399250 readlink("/sys/class/tty/ttyACM0", "../../devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/tty/ttyACM0", 4096) = 66
    [pid 964] 18:26:06.399304 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/interface", O_RDONLY) = -1 ENOENT (No such file or directory)
    [pid 964] 18:26:06.399393 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../busnum", O_RDONLY <unfinished ...>
    pid 964] 18:26:06.399435 <... openat resumed> ) = 101
    [pid 964] 18:26:06.399465 fstat(101, <unfinished ...>
    [pid 964] 18:26:06.399482 <... fstat resumed> {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:06.399519 read(101, <unfinished ...>
    [pid 26800] 18:26:06.399533 ioctl(69, FIONREAD <unfinished ...>
    [pid 964] 18:26:06.399543 <... read resumed> "1\n", 4096) = 2
    [pid 26800] 18:26:06.399555 <... ioctl resumed> , [0]) = 0
    [pid 964] 18:26:06.399570 close(101 <unfinished ...>
    [pid 26800] 18:26:06.399584 ioctl(69, TIOCOUTQ <unfinished ...>
    [pid 964] 18:26:06.399593 <... close resumed> ) = 0
    [pid 26800] 18:26:06.399600 <... ioctl resumed> , [6400]) = 0
    [pid 964] 18:26:06.399615 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../devnum", O_RDONLY <unfinished ...>
    [pid 26800] 18:26:06.399632 ioctl(69, TIOCMGET, [TIOCM_DTR|TIOCM_RTS|TIOCM_CTS]) = 0
    [pid 964] 18:26:06.399659 <... openat resumed> ) = 101
    [pid 26800] 18:26:06.399672 ioctl(69, TIOCGICOUNT <unfinished ...>
    [pid 964] 18:26:06.399685 fstat(101, <unfinished ...>
    [pid 26800] 18:26:06.399694 <... ioctl resumed> , 0x7f09a0003360) = 0
    [pid 964] 18:26:06.399703 <... fstat resumed> {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:06.399752 read(101, "78\n", 4096) = 3
    [pid 964] 18:26:06.399784 close(101) = 0
    [pid 964] 18:26:06.399817 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../idVendor", O_RDONLY) = 101
    [pid 964] 18:26:06.399868 fstat(101, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:06.399912 read(101, "16c0\n", 4096) = 5
    [pid 964] 18:26:06.399994 close(101) = 0
    [pid 964] 18:26:06.400025 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../idProduct", O_RDONLY) = 101
    [pid 964] 18:26:06.400070 fstat(101, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:06.400132 read(101, "0483\n", 4096) = 5
    [pid 964] 18:26:06.400226 close(101) = 0
    [pid 964] 18:26:06.400274 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../product", O_RDONLY) = 101
    [pid 964] 18:26:06.400340 fstat(101, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:06.400384 read(101, "USB Serial\n", 4096) = 11
    [pid 964] 18:26:06.400415 close(101) = 0
    [pid 964] 18:26:06.400452 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../manufacturer", O_RDONLY) = 101
    [pid 964] 18:26:06.400516 fstat(101, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:06.400557 read(101, "Teensyduino\n", 4096) = 12
    [pid 964] 18:26:06.400587 close(101) = 0
    [pid 964] 18:26:06.400614 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../product", O_RDONLY) = 101
    [pid 964] 18:26:06.400651 fstat(101, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:06.400687 read(101, "USB Serial\n", 4096) = 11
    [pid 964] 18:26:06.400713 close(101) = 0
    [pid 964] 18:26:06.400739 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../serial", O_RDONLY) = 101
    [pid 964] 18:26:06.400776 fstat(101, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:06.400819 read(101, <unfinished ...>
    [pid 964] 18:26:06.400839 <... read resumed> "434760\n", 4096) = 7
    [pid 964] 18:26:06.400853 close(101) = 0
    [pid 26800] 18:26:06.400875 ioctl(69, FIONREAD <unfinished ...>
    [pid 964] 18:26:06.400885 lstat("/sys/class/tty/tty53", <unfinished ...>


    So, it talks to ttyACM0, it does read stuff, including Teensyduino, but it's not happy, I'm not sure why, so it continues scanning a lot of other tty's:
    [pid 964] 18:26:06.401058 lstat("/sys/class/tty/tty7", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.401097 readlink("/sys/class/tty/tty7", "../../devices/virtual/tty/tty7"..., 4096) = 30
    [pid 964] 18:26:06.401129 lstat("/sys/class/tty/tty43", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:06.401203 readlink("/sys/class/tty/tty43", "../../devices/virtual/tty/tty43", 4096) = 31
    [pid 964] 18:26:06.401233 lstat("/sys/class/tty/ttyS3", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    (...)



    Eventually it gives up and the compile starts:
    [pid 964] 18:26:39.408054 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../devnum", O_RDONLY) = 100
    [pid 964] 18:26:39.408091 fstat(100, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:39.408124 read(100, "78\n", 4096) = 3
    [pid 964] 18:26:39.408160 close(100) = 0
    [pid 964] 18:26:39.408200 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../idVendor", O_RDONLY) = 100
    [pid 964] 18:26:39.408231 fstat(100, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:39.408297 read(100, "16c0\n", 4096) = 5
    [pid 964] 18:26:39.408337 close(100) = 0
    [pid 964] 18:26:39.408375 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../idProduct", O_RDONLY) = 100
    [pid 964] 18:26:39.408405 fstat(100, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:39.408470 read(100, "0483\n", 4096) = 5
    [pid 964] 18:26:39.408509 close(100) = 0
    [pid 964] 18:26:39.408548 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../product", O_RDONLY) = 100
    [pid 964] 18:26:39.408580 fstat(100, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:39.408613 read(100, "USB Serial\n", 4096) = 11
    [pid 964] 18:26:39.408637 close(100) = 0
    [pid 964] 18:26:39.408659 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../manufacturer", O_RDONLY) = 100
    [pid 964] 18:26:39.408707 fstat(100, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:39.408755 read(100, "Teensyduino\n", 4096) = 12
    [pid 964] 18:26:39.408779 close(100) = 0
    [pid 964] 18:26:39.408818 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../product", O_RDONLY) = 100
    [pid 964] 18:26:39.408849 fstat(100, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:39.408882 read(100, "USB Serial\n", 4096) = 11
    [pid 964] 18:26:39.408905 close(100) = 0
    [pid 964] 18:26:39.408927 openat(AT_FDCWD, "/sys/class/tty/ttyACM0/device/../serial", O_RDONLY) = 100
    [pid 964] 18:26:39.408964 fstat(100, {st_mode=S_IFREG|0444, st_size=4096, ...}) = 0
    [pid 964] 18:26:39.409013 read(100, "434760\n", 4096) = 7
    [pid 964] 18:26:39.409054 close(100) = 0
    [pid 964] 18:26:39.409107 lstat("/sys/class/tty/tty53", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.409160 readlink("/sys/class/tty/tty53", "../../devices/virtual/tty/tty53"..., 4096) = 31
    [pid 964] 18:26:39.409188 lstat("/sys/class/tty/tty15", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.409241 readlink("/sys/class/tty/tty15", "../../devices/virtual/tty/tty15", 4096) = 31
    [pid 964] 18:26:39.409269 lstat("/sys/class/tty/tty7", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.409321 readlink("/sys/class/tty/tty7", "../../devices/virtual/tty/tty7"..., 4096) = 30
    [pid 964] 18:26:39.409349 lstat("/sys/class/tty/tty43", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.409385 readlink("/sys/class/tty/tty43", "../../devices/virtual/tty/tty43", 4096) = 31
    [pid 964] 18:26:39.409445 lstat("/sys/class/tty/ttyS3", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.409530 readlink("/sys/class/tty/ttyS3", "../../devices/platform/serial8250/tty/ttyS3"..., 4096) = 43
    [pid 964] 18:26:39.409576 openat(AT_FDCWD, "/dev/ttyS3", O_RDWR|O_NOCTTY|O_NONBLOCK) = 100
    [pid 964] 18:26:39.409628 ioctl(100, TIOCGSERIAL, 0x7f0a5dd4bf80) = 0
    [pid 964] 18:26:39.409649 close(100) = 0
    [pid 964] 18:26:39.409674 lstat("/sys/class/tty/tty33", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.409711 readlink("/sys/class/tty/tty33", "../../devices/virtual/tty/tty33"..., 4096) = 31
    [pid 964] 18:26:39.409738 lstat("/sys/class/tty/tty61", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.409775 readlink("/sys/class/tty/tty61", "../../devices/virtual/tty/tty61", 4096) = 31
    [pid 964] 18:26:39.409802 lstat("/sys/class/tty/tty23", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.409840 readlink("/sys/class/tty/tty23", "../../devices/virtual/tty/tty23", 4096) = 31
    [pid 964] 18:26:39.409883 lstat("/sys/class/tty/tty51", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.409920 readlink("/sys/class/tty/tty51", "../../devices/virtual/tty/tty51", 4096) = 31
    [pid 964] 18:26:39.409981 lstat("/sys/class/tty/tty13", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.410033 readlink("/sys/class/tty/tty13", "../../devices/virtual/tty/tty13", 4096) = 31
    [pid 964] 18:26:39.410094 lstat("/sys/class/tty/tty5", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.410130 readlink("/sys/class/tty/tty5", "../../devices/virtual/tty/tty5"..., 4096) = 30
    [pid 964] 18:26:39.410157 lstat("/sys/class/tty/tty41", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.410226 readlink("/sys/class/tty/tty41", "../../devices/virtual/tty/tty41", 4096) = 31
    [pid 964] 18:26:39.410254 lstat("/sys/class/tty/ttyS1", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.410291 readlink("/sys/class/tty/ttyS1", "../../devices/platform/serial8250/tty/ttyS1", 4096) = 43
    [pid 964] 18:26:39.410321 openat(AT_FDCWD, "/dev/ttyS1", O_RDWR|O_NOCTTY|O_NONBLOCK) = 100
    [pid 964] 18:26:39.410354 ioctl(100, TIOCGSERIAL, 0x7f0a5dd4bf80) = 0
    [pid 964] 18:26:39.410374 close(100) = 0
    [pid 964] 18:26:39.410398 lstat("/sys/class/tty/tty31", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.410512 readlink("/sys/class/tty/tty31", "../../devices/virtual/tty/tty31"..., 4096) = 31
    [pid 964] 18:26:39.410577 lstat("/sys/class/tty/tty21", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.410649 readlink("/sys/class/tty/tty21", "../../devices/virtual/tty/tty21", 4096) = 31
    [pid 964] 18:26:39.410696 lstat("/sys/class/tty/tty11", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.410750 readlink("/sys/class/tty/tty11", "../../devices/virtual/tty/tty11", 4096) = 31
    [pid 964] 18:26:39.410797 lstat("/sys/class/tty/tty3", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 964] 18:26:39.410836 readlink("/sys/class/tty/tty3", "../../devices/virtual/tty/tty3"..., 4096) = 30
    [pid 964] 18:26:39.410865 getdents(69, /* 0 entries */, 32768) = 0
    [pid 964] 18:26:39.410889 close(69) = 0
    [pid 28755] 18:26:39.649452 <... close resumed> ) = 0
    [pid 28755] 18:26:39.649639 stat("/home/merlin/Arduino/libraries/FastLED_NeoMatrix/examples/MatrixGFXDemo",
    ^^^^ compile starts here, 33 seconds later

    Any ideas?
    Last edited by marcmerlin; 03-25-2018 at 02:44 AM.

  2. #2
    Just for testing, I used another board I had lying around, a teensy 3.2 and I have the same problem. I'm guessing FastLED puts the board in a state that serial queries to it hang or upset the IDE in a way?

  3. #3
    So, I did more testing, this problem seems to happen even if stop the FastLED.show() calls.
    The only fixes are either
    1) close the serial terminal before I click 'compile/upload'
    2) strace the arduino process, and that reliably unhangs it
    I don't have this problem with other chips using ttyUSB0 instead of ttyACM0 in case that's related.

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,674
    Which Linux distro are you using? I've never seen anything like this happen with Ubuntu.

    Any chance you could try with the latest beta? If you select from the new "Teensy" part of the Ports menu, completely different all-native code is used for serial communication. No more Java stuff. Maybe that will make a difference?

    https://forum.pjrc.com/threads/50254...no-1-42-Beta-3

    If the problem still happens with 1.42-beta3, I'd really like to try reproducing it here with Ubuntu 14.04. I'll need a (hopefully minimal) program to upload onto a board here. If I can reproduce it here, I can use a USB protocol analyzer with another computer to watch what's really happening.

    But the first step is whether it happens on the latest beta (otherwise it's a moot point, since 1.42 will release sometime "soon") and if so, how to reproduce it here.

  5. #5
    Quote Originally Posted by PaulStoffregen View Post
    Which Linux distro are you using? I've never seen anything like this happen with Ubuntu.
    Thanks for the reply. I have debian/testing. Will try your beta (I was using the latest release version) and report back.
    Marc

  6. #6
    So, I just tried 1.42 beta and it's actually worse, the arduino IDE won't even start.
    My kernel is 4.15.6, which is likely newer than yours and it seems that your code loops around
    Going back to arduino 1.8.5 without your patch is fine, and using teensyduino 1.41 has the problem on recompile, but not at startup.
    Here is strace output showing the loop where it's stuck

    Code:
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 127
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 127
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 127
    [pid 27755] stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=89, ...}) = 0
    [pid 27755] openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 127
    [pid 27755] syscall_307(0x7f, 0x7f2271f20d90, 0x2, 0x4000, 0, 0x7f2271f25ddc, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5) = 0x2
    [pid 27755] syscall_307(0x7f, 0x7f2271f20d90, 0x2, 0x4000, 0, 0x7f2271f25ddc, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5) = 0x2
    [pid 27779] openat(AT_FDCWD, "/sys/class/tty", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 128
    [pid 27779] lstat("/sys/class/tty/.", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/./device", 0x7f22201332e0, 4096) = -1 ENOENT (No such file or directory)
    [pid 27779] lstat("/sys/class/tty/..", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/../device", 0x7f22201332e0, 4096) = -1 ENOENT (No such file or directory)
    [pid 27779] lstat("/sys/class/tty/tty58", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty58", "../../devices/virtual/tty/tty58", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/ptmx", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ptmx", "../../devices/virtual/tty/ptmx"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty48", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty48", "../../devices/virtual/tty/tty48", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty1", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty1", "../../devices/virtual/tty/tty1"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty38", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty38", "../../devices/virtual/tty/tty38", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty28", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty28", "../../devices/virtual/tty/tty28", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty56", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty56", "../../devices/virtual/tty/tty56", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty18", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty18", "../../devices/virtual/tty/tty18", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty46", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty46", "../../devices/virtual/tty/tty46", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/console", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/console", "../../devices/virtual/tty/console"..., 4096) = 33
    [pid 27779] lstat("/sys/class/tty/tty36", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty36", "../../devices/virtual/tty/tty36"..., 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty26", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty26", "../../devices/virtual/tty/tty26", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty54", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty54", "../../devices/virtual/tty/tty54", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty16", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty16", "../../devices/virtual/tty/tty16", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty8", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty8", "../../devices/virtual/tty/tty8"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty44", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty44", "../../devices/virtual/tty/tty44", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty34", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty34", "../../devices/virtual/tty/tty34", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty62", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty62", "../../devices/virtual/tty/tty62", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty24", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty24", "../../devices/virtual/tty/tty24", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty52", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty52", "../../devices/virtual/tty/tty52", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty14", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty14", "../../devices/virtual/tty/tty14", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty6", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty6", "../../devices/virtual/tty/tty6"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty42", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty42", "../../devices/virtual/tty/tty42", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/ttyS2", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ttyS2", "../../devices/platform/serial8250/tty/ttyS2", 4096) = 43
    [pid 27779] openat(AT_FDCWD, "/dev/ttyS2", O_RDWR|O_NOCTTY|O_NONBLOCK) = 129
    [pid 27779] lstat("/sys/class/tty/tty32", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty32", "../../devices/virtual/tty/tty32"..., 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty60", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty60", "../../devices/virtual/tty/tty60", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty22", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty22", "../../devices/virtual/tty/tty22", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty50", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty50", "../../devices/virtual/tty/tty50", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty12", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty12", "../../devices/virtual/tty/tty12", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty4", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty4", "../../devices/virtual/tty/tty4"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty40", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty40", "../../devices/virtual/tty/tty40", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/ttyS0", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ttyS0", "../../devices/platform/serial8250/tty/ttyS0", 4096) = 43
    [pid 27779] openat(AT_FDCWD, "/dev/ttyS0", O_RDWR|O_NOCTTY|O_NONBLOCK) = 129
    [pid 27779] lstat("/sys/class/tty/ttyS0", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ttyS0", "../../devices/platform/serial8250/tty/ttyS0", 4096) = 43
    [pid 27779] lstat("/sys/class/tty/tty30", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty30", "../../devices/virtual/tty/tty30"..., 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty59", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty59", "../../devices/virtual/tty/tty59", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty20", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty20", "../../devices/virtual/tty/tty20", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty49", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty49", "../../devices/virtual/tty/tty49", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty10", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty10", "../../devices/virtual/tty/tty10", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty2", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty2", "../../devices/virtual/tty/tty2"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty39", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty39", "../../devices/virtual/tty/tty39", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty29", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty29", "../../devices/virtual/tty/tty29", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty57", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty57", "../../devices/virtual/tty/tty57", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty19", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty19", "../../devices/virtual/tty/tty19", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty47", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty47", "../../devices/virtual/tty/tty47", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty0", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty0", "../../devices/virtual/tty/tty0"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty37", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty37", "../../devices/virtual/tty/tty37", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty27", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty27", "../../devices/virtual/tty/tty27", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty55", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty55", "../../devices/virtual/tty/tty55", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty17", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty17", "../../devices/virtual/tty/tty17", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty9", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty9", "../../devices/virtual/tty/tty9"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty45", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty45", "../../devices/virtual/tty/tty45", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty", "../../devices/virtual/tty/tty"..., 4096) = 29
    [pid 27779] lstat("/sys/class/tty/tty35", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty35", "../../devices/virtual/tty/tty35", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty63", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty63", "../../devices/virtual/tty/tty63", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty25", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty25", "../../devices/virtual/tty/tty25", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty53", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty53", "../../devices/virtual/tty/tty53", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty15", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty15", "../../devices/virtual/tty/tty15", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty7", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty7", "../../devices/virtual/tty/tty7"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty43", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty43", "../../devices/virtual/tty/tty43", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/ttyS3", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ttyS3", "../../devices/platform/serial8250/tty/ttyS3", 4096) = 43
    [pid 27779] openat(AT_FDCWD, "/dev/ttyS3", O_RDWR|O_NOCTTY|O_NONBLOCK) = 129
    [pid 27779] lstat("/sys/class/tty/tty33", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty33", "../../devices/virtual/tty/tty33"..., 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty61", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty61", "../../devices/virtual/tty/tty61", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty23", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty23", "../../devices/virtual/tty/tty23", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty51", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty51", "../../devices/virtual/tty/tty51", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty13", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty13", "../../devices/virtual/tty/tty13", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty5", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty5", "../../devices/virtual/tty/tty5"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty41", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty41", "../../devices/virtual/tty/tty41", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/ttyS1", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ttyS1", "../../devices/platform/serial8250/tty/ttyS1", 4096) = 43
    [pid 27779] openat(AT_FDCWD, "/dev/ttyS1", O_RDWR|O_NOCTTY|O_NONBLOCK) = 129
    [pid 27779] lstat("/sys/class/tty/tty31", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty31", "../../devices/virtual/tty/tty31"..., 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty21", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty21", "../../devices/virtual/tty/tty21", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty11", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty11", "../../devices/virtual/tty/tty11", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty3", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty3", "../../devices/virtual/tty/tty3"..., 4096) = 30
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 128
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 128
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 128
    [pid 27755] stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=89, ...}) = 0
    [pid 27755] openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 128
    [pid 27755] syscall_307(0x80, 0x7f2271f20d90, 0x2, 0x4000, 0, 0x7f2271f25ddc, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5) = 0x2
    [pid 27755] syscall_307(0x80, 0x7f2271f20d90, 0x2, 0x4000, 0, 0x7f2271f25ddc, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5) = 0x2
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 129
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 129
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 129
    [pid 27755] stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=89, ...}) = 0
    [pid 27755] openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 129
    [pid 27755] syscall_307(0x81, 0x7f2271f20d90, 0x2, 0x4000, 0, 0x7f2271f25ddc, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5) = 0x2
    [pid 27755] syscall_307(0x81, 0x7f2271f20d90, 0x2, 0x4000, 0, 0x7f2271f25ddc, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5) = 0x2
    [pid 27779] openat(AT_FDCWD, "/sys/class/tty", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 130
    [pid 27779] lstat("/sys/class/tty/.", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/./device", 0x7f22201332e0, 4096) = -1 ENOENT (No such file or directory)
    [pid 27779] lstat("/sys/class/tty/..", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/../device", 0x7f22201332e0, 4096) = -1 ENOENT (No such file or directory)
    [pid 27779] lstat("/sys/class/tty/tty58", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty58", "../../devices/virtual/tty/tty58", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/ptmx", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ptmx", "../../devices/virtual/tty/ptmx"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty48", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty48", "../../devices/virtual/tty/tty48", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty1", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty1", "../../devices/virtual/tty/tty1"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty38", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty38", "../../devices/virtual/tty/tty38", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty28", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty28", "../../devices/virtual/tty/tty28", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty56", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty56", "../../devices/virtual/tty/tty56", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty18", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty18", "../../devices/virtual/tty/tty18", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty46", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty46", "../../devices/virtual/tty/tty46", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/console", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/console", "../../devices/virtual/tty/console"..., 4096) = 33
    [pid 27779] lstat("/sys/class/tty/tty36", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty36", "../../devices/virtual/tty/tty36"..., 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty26", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty26", "../../devices/virtual/tty/tty26", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty54", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty54", "../../devices/virtual/tty/tty54", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty16", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty16", "../../devices/virtual/tty/tty16", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty8", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty8", "../../devices/virtual/tty/tty8"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty44", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty44", "../../devices/virtual/tty/tty44", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty34", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty34", "../../devices/virtual/tty/tty34", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty62", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty62", "../../devices/virtual/tty/tty62", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty24", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty24", "../../devices/virtual/tty/tty24", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty52", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty52", "../../devices/virtual/tty/tty52", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty14", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty14", "../../devices/virtual/tty/tty14", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty6", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty6", "../../devices/virtual/tty/tty6"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty42", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty42", "../../devices/virtual/tty/tty42", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/ttyS2", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ttyS2", "../../devices/platform/serial8250/tty/ttyS2", 4096) = 43
    [pid 27779] openat(AT_FDCWD, "/dev/ttyS2", O_RDWR|O_NOCTTY|O_NONBLOCK) = 131
    [pid 27779] lstat("/sys/class/tty/tty32", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty32", "../../devices/virtual/tty/tty32"..., 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty60", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty60", "../../devices/virtual/tty/tty60", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty22", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty22", "../../devices/virtual/tty/tty22", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty50", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty50", "../../devices/virtual/tty/tty50", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty12", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty12", "../../devices/virtual/tty/tty12", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty4", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty4", "../../devices/virtual/tty/tty4"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty40", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty40", "../../devices/virtual/tty/tty40", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/ttyS0", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ttyS0", "../../devices/platform/serial8250/tty/ttyS0", 4096) = 43
    [pid 27779] openat(AT_FDCWD, "/dev/ttyS0", O_RDWR|O_NOCTTY|O_NONBLOCK) = 131
    [pid 27779] lstat("/sys/class/tty/ttyS0", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ttyS0", "../../devices/platform/serial8250/tty/ttyS0", 4096) = 43
    [pid 27779] lstat("/sys/class/tty/tty30", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty30", "../../devices/virtual/tty/tty30"..., 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty59", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty59", "../../devices/virtual/tty/tty59", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty20", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty20", "../../devices/virtual/tty/tty20", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty49", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty49", "../../devices/virtual/tty/tty49", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty10", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty10", "../../devices/virtual/tty/tty10", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty2", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty2", "../../devices/virtual/tty/tty2"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty39", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty39", "../../devices/virtual/tty/tty39", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty29", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty29", "../../devices/virtual/tty/tty29", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty57", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty57", "../../devices/virtual/tty/tty57", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty19", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty19", "../../devices/virtual/tty/tty19", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty47", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty47", "../../devices/virtual/tty/tty47", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty0", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty0", "../../devices/virtual/tty/tty0"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty37", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty37", "../../devices/virtual/tty/tty37", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty27", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty27", "../../devices/virtual/tty/tty27", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty55", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty55", "../../devices/virtual/tty/tty55", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty17", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty17", "../../devices/virtual/tty/tty17", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty9", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty9", "../../devices/virtual/tty/tty9"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty45", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty45", "../../devices/virtual/tty/tty45", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty", "../../devices/virtual/tty/tty"..., 4096) = 29
    [pid 27779] lstat("/sys/class/tty/tty35", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty35", "../../devices/virtual/tty/tty35", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty63", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty63", "../../devices/virtual/tty/tty63", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty25", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty25", "../../devices/virtual/tty/tty25", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty53", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty53", "../../devices/virtual/tty/tty53", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty15", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty15", "../../devices/virtual/tty/tty15", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty7", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty7", "../../devices/virtual/tty/tty7"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty43", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty43", "../../devices/virtual/tty/tty43", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/ttyS3", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ttyS3", "../../devices/platform/serial8250/tty/ttyS3", 4096) = 43
    [pid 27779] openat(AT_FDCWD, "/dev/ttyS3", O_RDWR|O_NOCTTY|O_NONBLOCK) = 131
    [pid 27779] lstat("/sys/class/tty/tty33", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty33", "../../devices/virtual/tty/tty33"..., 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty61", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty61", "../../devices/virtual/tty/tty61", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty23", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty23", "../../devices/virtual/tty/tty23", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty51", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty51", "../../devices/virtual/tty/tty51", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty13", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty13", "../../devices/virtual/tty/tty13", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty5", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty5", "../../devices/virtual/tty/tty5"..., 4096) = 30
    [pid 27779] lstat("/sys/class/tty/tty41", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty41", "../../devices/virtual/tty/tty41", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/ttyS1", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/ttyS1", "../../devices/platform/serial8250/tty/ttyS1", 4096) = 43
    [pid 27779] openat(AT_FDCWD, "/dev/ttyS1", O_RDWR|O_NOCTTY|O_NONBLOCK) = 131
    [pid 27779] lstat("/sys/class/tty/tty31", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty31", "../../devices/virtual/tty/tty31"..., 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty21", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty21", "../../devices/virtual/tty/tty21", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty11", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty11", "../../devices/virtual/tty/tty11", 4096) = 31
    [pid 27779] lstat("/sys/class/tty/tty3", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0
    [pid 27779] readlink("/sys/class/tty/tty3", "../../devices/virtual/tty/tty3"..., 4096) = 30
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 130
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 130
    [pid 27755] openat(AT_FDCWD, "/etc/services", O_RDONLY|O_CLOEXEC) = 130
    [pid 27755] stat("/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=89, ...}) = 0
    [pid 27755] openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 130
    [pid 27755] syscall_307(0x82, 0x7f2271f20d90, 0x2, 0x4000, 0, 0x7f2271f25ddc, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5) = 0x2
    [pid 27755] syscall_307(0x82, 0x7f2271f20d90, 0x2, 0x4000, 0, 0x7f2271f25ddc, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5, 0x5) = 0x2

  7. #7
    Sadly, still a problem with arduino-1.8.9-teensyduino-1.46
    I get a 30-ish second delay every time I compile and have the serial console opened.
    Am I the only one seeing this?

    Code:
    /var/local/arduino-1.8.9-teensyduino-1.46/hardware/teensy/../tools/teensy_post_compile -file=graphicstest.ino -path=/tmp/arduino_build_476337 -tools=/var/local/arduino-1.8.9-teensyduino-1.46/hardware/teensy/../tools -board=TEENSY36 -reboot -port=/dev/ttyACM0 -portlabel=/dev/ttyACM0 -portprotocol=serial

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •