home.social

#strace — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #strace, aggregated by home.social.

  1. Как программа попадает в память: от execve до main

    Вы когда-нибудь задумывались, что происходит после того, как вы нажимаете Enter в терминале Linux? Вводите ./myprogram и... Что именно происходит дальше? Как ядро находит файл? Как загружает его в память? Кто вызывает main ? И как на всё это посмотреть вживую? Разберемся на примере пустой программы empty_sleep . Она ничего не делает, просто запускается и завершается через 30 секунд. В ней нет лишнего кода и мы сможем сосредоточиться только на процессе загрузки. Всё, что мы увидим, относится к большинству динамически скомпилированных программ в Linux. В этой статье покажу как с помощью strace в реальном времени проследить путь программы от execve до _start и main .

    habr.com/ru/articles/1036444/

    #Linux #strace #ELF #загрузка_программ #системные_вызовы #execve #mmap #анализ_файлов #компоновщик

  2. Как программа попадает в память: от execve до main

    Вы когда-нибудь задумывались, что происходит после того, как вы нажимаете Enter в терминале Linux? Вводите ./myprogram и... Что именно происходит дальше? Как ядро находит файл? Как загружает его в память? Кто вызывает main ? И как на всё это посмотреть вживую? Разберемся на примере пустой программы empty_sleep . Она ничего не делает, просто запускается и завершается через 30 секунд. В ней нет лишнего кода и мы сможем сосредоточиться только на процессе загрузки. Всё, что мы увидим, относится к большинству динамически скомпилированных программ в Linux. В этой статье покажу как с помощью strace в реальном времени проследить путь программы от execve до _start и main .

    habr.com/ru/articles/1036444/

    #Linux #strace #ELF #загрузка_программ #системные_вызовы #execve #mmap #анализ_файлов #компоновщик

  3. Как программа попадает в память: от execve до main

    Вы когда-нибудь задумывались, что происходит после того, как вы нажимаете Enter в терминале Linux? Вводите ./myprogram и... Что именно происходит дальше? Как ядро находит файл? Как загружает его в память? Кто вызывает main ? И как на всё это посмотреть вживую? Разберемся на примере пустой программы empty_sleep . Она ничего не делает, просто запускается и завершается через 30 секунд. В ней нет лишнего кода и мы сможем сосредоточиться только на процессе загрузки. Всё, что мы увидим, относится к большинству динамически скомпилированных программ в Linux. В этой статье покажу как с помощью strace в реальном времени проследить путь программы от execve до _start и main .

    habr.com/ru/articles/1036444/

    #Linux #strace #ELF #загрузка_программ #системные_вызовы #execve #mmap #анализ_файлов #компоновщик

  4. Как программа попадает в память: от execve до main

    Вы когда-нибудь задумывались, что происходит после того, как вы нажимаете Enter в терминале Linux? Вводите ./myprogram и... Что именно происходит дальше? Как ядро находит файл? Как загружает его в память? Кто вызывает main ? И как на всё это посмотреть вживую? Разберемся на примере пустой программы empty_sleep . Она ничего не делает, просто запускается и завершается через 30 секунд. В ней нет лишнего кода и мы сможем сосредоточиться только на процессе загрузки. Всё, что мы увидим, относится к большинству динамически скомпилированных программ в Linux. В этой статье покажу как с помощью strace в реальном времени проследить путь программы от execve до _start и main .

    habr.com/ru/articles/1036444/

    #Linux #strace #ELF #загрузка_программ #системные_вызовы #execve #mmap #анализ_файлов #компоновщик

  5. Ah, nothing quite like reading a thrilling #novella about TCP socket woes where #ECONNRESET is the main character and "reproducer" makes a cameo appearance! 📚✨ Spoiler alert: Our daring hero bravely navigates the murky waters of #tcpdump, #strace, and... zzz. Wake me when they reboot the server! 🤦‍♂️💤
    movq.de/blog/postings/2026-05- #TCPsocket #ServerReboot #HackerNews #ngated

  6. Ah, nothing quite like reading a thrilling #novella about TCP socket woes where #ECONNRESET is the main character and "reproducer" makes a cameo appearance! 📚✨ Spoiler alert: Our daring hero bravely navigates the murky waters of #tcpdump, #strace, and... zzz. Wake me when they reboot the server! 🤦‍♂️💤
    movq.de/blog/postings/2026-05- #TCPsocket #ServerReboot #HackerNews #ngated

  7. Ah, nothing quite like reading a thrilling #novella about TCP socket woes where #ECONNRESET is the main character and "reproducer" makes a cameo appearance! 📚✨ Spoiler alert: Our daring hero bravely navigates the murky waters of #tcpdump, #strace, and... zzz. Wake me when they reboot the server! 🤦‍♂️💤
    movq.de/blog/postings/2026-05- #TCPsocket #ServerReboot #HackerNews #ngated

  8. Ah, nothing quite like reading a thrilling #novella about TCP socket woes where #ECONNRESET is the main character and "reproducer" makes a cameo appearance! 📚✨ Spoiler alert: Our daring hero bravely navigates the murky waters of #tcpdump, #strace, and... zzz. Wake me when they reboot the server! 🤦‍♂️💤
    movq.de/blog/postings/2026-05- #TCPsocket #ServerReboot #HackerNews #ngated

  9. Ah, nothing quite like reading a thrilling #novella about TCP socket woes where #ECONNRESET is the main character and "reproducer" makes a cameo appearance! 📚✨ Spoiler alert: Our daring hero bravely navigates the murky waters of #tcpdump, #strace, and... zzz. Wake me when they reboot the server! 🤦‍♂️💤
    movq.de/blog/postings/2026-05- #TCPsocket #ServerReboot #HackerNews #ngated

  10. strace: отладка Linux-приложений через системные вызовы

    Когда процесс зависает, молчит в логах и при этом продолжает жить своей странной жизнью, обычные инструменты наблюдения быстро упираются в потолок. В таких ситуациях strace полезен не как «ещё одна консольная утилита», а как прямой способ увидеть, чем процесс занят на уровне системных вызовов: что он открывает, чего ждёт, куда пишет и на чём реально тормозит. В статье — коротко и по делу о том, как читать этот поток событий и применять strace в типовых продовых расследованиях, где дебаггер, исходники и лишние эксперименты недоступны.

    habr.com/ru/companies/otus/art

    #linux #системное_администрирование #itинфраструктура #системные_вызовы #трассировка #strace

  11. strace: отладка Linux-приложений через системные вызовы

    Когда процесс зависает, молчит в логах и при этом продолжает жить своей странной жизнью, обычные инструменты наблюдения быстро упираются в потолок. В таких ситуациях strace полезен не как «ещё одна консольная утилита», а как прямой способ увидеть, чем процесс занят на уровне системных вызовов: что он открывает, чего ждёт, куда пишет и на чём реально тормозит. В статье — коротко и по делу о том, как читать этот поток событий и применять strace в типовых продовых расследованиях, где дебаггер, исходники и лишние эксперименты недоступны.

    habr.com/ru/companies/otus/art

    #linux #системное_администрирование #itинфраструктура #системные_вызовы #трассировка #strace

  12. strace: отладка Linux-приложений через системные вызовы

    Когда процесс зависает, молчит в логах и при этом продолжает жить своей странной жизнью, обычные инструменты наблюдения быстро упираются в потолок. В таких ситуациях strace полезен не как «ещё одна консольная утилита», а как прямой способ увидеть, чем процесс занят на уровне системных вызовов: что он открывает, чего ждёт, куда пишет и на чём реально тормозит. В статье — коротко и по делу о том, как читать этот поток событий и применять strace в типовых продовых расследованиях, где дебаггер, исходники и лишние эксперименты недоступны.

    habr.com/ru/companies/otus/art

    #linux #системное_администрирование #itинфраструктура #системные_вызовы #трассировка #strace

  13. strace: отладка Linux-приложений через системные вызовы

    Когда процесс зависает, молчит в логах и при этом продолжает жить своей странной жизнью, обычные инструменты наблюдения быстро упираются в потолок. В таких ситуациях strace полезен не как «ещё одна консольная утилита», а как прямой способ увидеть, чем процесс занят на уровне системных вызовов: что он открывает, чего ждёт, куда пишет и на чём реально тормозит. В статье — коротко и по делу о том, как читать этот поток событий и применять strace в типовых продовых расследованиях, где дебаггер, исходники и лишние эксперименты недоступны.

    habr.com/ru/companies/otus/art

    #linux #системное_администрирование #itинфраструктура #системные_вызовы #трассировка #strace

  14. `lnav` is a fab tool for analysing logs. Today I used it for debugging a verbose `strace -f` log file to analyse what the problem was w/smth and it was cool

    Tip: hit `<tab>` to edit, enable, and disable existing text filters added w/e.g. `:filter-in` and `:filter-out`.

    #lnav #Linux #Logs #strace #debugging #ArchLinux #Tools #DebuggingTools #Sysadmin #CommandLine

  15. `lnav` is a fab tool for analysing logs. Today I used it for debugging a verbose `strace -f` log file to analyse what the problem was w/smth and it was cool

    Tip: hit `<tab>` to edit, enable, and disable existing text filters added w/e.g. `:filter-in` and `:filter-out`.

    #lnav #Linux #Logs #strace #debugging #ArchLinux #Tools #DebuggingTools #Sysadmin #CommandLine

  16. `lnav` is a fab tool for analysing logs. Today I used it for debugging a verbose `strace -f` log file to analyse what the problem was w/smth and it was cool

    Tip: hit `<tab>` to edit, enable, and disable existing text filters added w/e.g. `:filter-in` and `:filter-out`.

    #lnav #Linux #Logs #strace #debugging #ArchLinux #Tools #DebuggingTools #Sysadmin #CommandLine

  17. @xhr DANKE! Der Hint mit #strace hat mir weitergeholfen!

    Ich hatte eine Datei __db.sasl_passwd.db vom Okt 31 welche bei #postmap anscheinend aufgerufen wird. Diese war aber leer, ein verschieben in eine .old hat instant eine neue angelegt, diesmal aber mit Inhalt. Nach einem Neustart existiert diese als sasl_passwd.db und in meine Inbox trudeln gerade die Mails von #Yunohost ein.

  18. @xhr DANKE! Der Hint mit #strace hat mir weitergeholfen!

    Ich hatte eine Datei __db.sasl_passwd.db vom Okt 31 welche bei #postmap anscheinend aufgerufen wird. Diese war aber leer, ein verschieben in eine .old hat instant eine neue angelegt, diesmal aber mit Inhalt. Nach einem Neustart existiert diese als sasl_passwd.db und in meine Inbox trudeln gerade die Mails von #Yunohost ein.

  19. @xhr DANKE! Der Hint mit #strace hat mir weitergeholfen!

    Ich hatte eine Datei __db.sasl_passwd.db vom Okt 31 welche bei #postmap anscheinend aufgerufen wird. Diese war aber leer, ein verschieben in eine .old hat instant eine neue angelegt, diesmal aber mit Inhalt. Nach einem Neustart existiert diese als sasl_passwd.db und in meine Inbox trudeln gerade die Mails von #Yunohost ein.

  20. @xhr DANKE! Der Hint mit #strace hat mir weitergeholfen!

    Ich hatte eine Datei __db.sasl_passwd.db vom Okt 31 welche bei #postmap anscheinend aufgerufen wird. Diese war aber leer, ein verschieben in eine .old hat instant eine neue angelegt, diesmal aber mit Inhalt. Nach einem Neustart existiert diese als sasl_passwd.db und in meine Inbox trudeln gerade die Mails von #Yunohost ein.

  21. @xhr DANKE! Der Hint mit #strace hat mir weitergeholfen!

    Ich hatte eine Datei __db.sasl_passwd.db vom Okt 31 welche bei #postmap anscheinend aufgerufen wird. Diese war aber leer, ein verschieben in eine .old hat instant eine neue angelegt, diesmal aber mit Inhalt. Nach einem Neustart existiert diese als sasl_passwd.db und in meine Inbox trudeln gerade die Mails von #Yunohost ein.

  22. #sydbox has multipersonality support. It may be built as 32-bit just fine. An x86-64 syd can sandbox x32 and i686 binaries seamlessly. This is because we rise on the shoulders of the giant that is #strace! #exherbo #linux #security

  23. New free guide released: System calls and strace! 🚀

    Do you want to troubleshoot Linux like a pro? Our latest free guide shows you how to inspect system calls using strace, a must-have tool for every SysAdmin, SRE and DevOps engineer.

    learnbyfixing.com/guides/syste

    #LearnByFixing #Linux #DevOps #SRE #Sysadmin #syscalls #strace

  24. New scenario released! 🚀

    Port already taken? But which one?

    In this scenario, you’ll learn how to:
    - Identify which port a program needs to listen on.
    - Track down the process that's already listening on that port.

    Level up your Linux troubleshooting skills and dive in now!
    learnbyfixing.com/scenarios/14/

    Happy fixing!

    #LearnByFixing #Linux #DevOps #SRE #Sysadmin #syscalls #strace

  25. New scenario released! 🚀

    Having the config file for a program is not enough. You also need to put it in the right place so that the program can find it. But it's not that easy when you don't know where the program is looking for its config file!

    Check it out and level up your troubleshooting skills: learnbyfixing.com/scenarios/13/

    Happy fixing!

    #LearnByFixing #Linux #DevOps #SRE #Sysadmin #syscalls #strace

  26. New scenario released! 🚀

    Having the config file for a program is not enough. You also need to put it in the right place so that the program can find it. But it's not that easy when you don't know where the program is looking for its config file!

    Check it out and level up your troubleshooting skills: learnbyfixing.com/scenarios/13/

    Happy fixing!

    #LearnByFixing #Linux #DevOps #SRE #Sysadmin #syscalls #strace

  27. New scenario released! 🚀

    Having the config file for a program is not enough. You also need to put it in the right place so that the program can find it. But it's not that easy when you don't know where the program is looking for its config file!

    Check it out and level up your troubleshooting skills: learnbyfixing.com/scenarios/13/

    Happy fixing!

    #LearnByFixing #Linux #DevOps #SRE #Sysadmin #syscalls #strace

  28. New scenario released! 🚀

    Having the config file for a program is not enough. You also need to put it in the right place so that the program can find it. But it's not that easy when you don't know where the program is looking for its config file!

    Check it out and level up your troubleshooting skills: learnbyfixing.com/scenarios/13/

    Happy fixing!

    #LearnByFixing #Linux #DevOps #SRE #Sysadmin #syscalls #strace

  29. Is there anything better than strace these days for debugging why stuff is crashing these days? Esp. when it is deeply nested aka a child process of a child process of a child process?

    Edit: And when a translation layer like wine is involved.

    #Linux #strace #wine

  30. The October issue has been released! This month, we show you how to configure and manage kernel auditing to help protect you from an attack. This month's DVD includes 23.2 Full and @ubuntu Mate 25.04
    linux-magazine.com/Issues/2025

  31. If you run a #Linux program in #strace, usually the start of the log shows it trying to load a ton of shared libraries, and for each one, trying the same file name in all your LD_LIBRARY_PATH directories until it finds it. So you mostly see file-open operations _failing_, with ENOENT.

    To a novice strace reader, it looks as if something has already gone horribly wrong! But it hasn't – this is all normal, and as expected. Each of those ENOENT is technically "an error", but not a _bad_ error, because ld.so just moves on to the next in its big list of things to try, and one works in the end.

    Errors happen _all the time_ in the guts of a computer system, and most of them are not even interesting – just business as usual. The event an end user thinks of as "an error" is the case where the program _doesn't_ have a fallback plan. Those are often outnumbered by the cases where it does!

  32. TIL that a trivial Python3 OpenCV program (open an image, attempt to display it in a window) on a Raspberry Pi tries to open over 2800 shared libraries

    (EDIT: more like nearly 1400, 'cos strace opens the symbolic link and the library ... but still)

    #python #OpenCV #strace #RaspberryPi #NotLookingForAdvice

  33. TIL that a trivial Python3 OpenCV program (open an image, attempt to display it in a window) on a Raspberry Pi tries to open over 2800 shared libraries

    (EDIT: more like nearly 1400, 'cos strace opens the symbolic link and the library ... but still)

    #python #OpenCV #strace #RaspberryPi #NotLookingForAdvice

  34. TIL that a trivial Python3 OpenCV program (open an image, attempt to display it in a window) on a Raspberry Pi tries to open over 2800 shared libraries

    (EDIT: more like nearly 1400, 'cos strace opens the symbolic link and the library ... but still)

    #python #OpenCV #strace #RaspberryPi #NotLookingForAdvice

  35. TIL that a trivial Python3 OpenCV program (open an image, attempt to display it in a window) on a Raspberry Pi tries to open over 2800 shared libraries

    (EDIT: more like nearly 1400, 'cos strace opens the symbolic link and the library ... but still)

    #python #OpenCV #strace #RaspberryPi #NotLookingForAdvice

  36. TIL that a trivial Python3 OpenCV program (open an image, attempt to display it in a window) on a Raspberry Pi tries to open over 2800 shared libraries

    (EDIT: more like nearly 1400, 'cos strace opens the symbolic link and the library ... but still)

    #python #OpenCV #strace #RaspberryPi #NotLookingForAdvice

  37. Process injection shenanigans are dear to my heart - it's one of the first things I ever learned in security.

    Inspired by an Akamai blog last month, this blog digs into techniques to tinker with other processes on Linux, and show you how to write a little debugger in C!

    labs.greynoise.io/grimoire/202

    #linux #reversing #strace #ptrace #gdb

  38. Process injection shenanigans are dear to my heart - it's one of the first things I ever learned in security.

    Inspired by an Akamai blog last month, this blog digs into techniques to tinker with other processes on Linux, and show you how to write a little debugger in C!

    labs.greynoise.io/grimoire/202

    #linux #reversing #strace #ptrace #gdb

  39. Process injection shenanigans are dear to my heart - it's one of the first things I ever learned in security.

    Inspired by an Akamai blog last month, this blog digs into techniques to tinker with other processes on Linux, and show you how to write a little debugger in C!

    labs.greynoise.io/grimoire/202

    #linux #reversing #strace #ptrace #gdb

  40. Process injection shenanigans are dear to my heart - it's one of the first things I ever learned in security.

    Inspired by an Akamai blog last month, this blog digs into techniques to tinker with other processes on Linux, and show you how to write a little debugger in C!

    labs.greynoise.io/grimoire/202

    #linux #reversing #strace #ptrace #gdb

  41. Process injection shenanigans are dear to my heart - it's one of the first things I ever learned in security.

    Inspired by an Akamai blog last month, this blog digs into techniques to tinker with other processes on Linux, and show you how to write a little debugger in C!

    labs.greynoise.io/grimoire/202

    #linux #reversing #strace #ptrace #gdb

  42. Stratoshark: Computer debugging tool: like wireshark, but for system calls instead of network packets
    stratoshark.org/
    #via:hackernews #wireshark #debugging #syscall #strace #devops #linux #+

  43. [Перевод] Внутрипроцессная трассировка системных вызовов с использованием цепочного загрузчика

    В этой статье мы разберём небольшой инструмент для трассировки системных вызовов. В отличие от strace и аналогов, здесь трассировка будет происходить внутри процесса , без применения ptrace() или эквивалентных вещей. Должен добавить, что это всего лишь демонстрационный пример, поэтому на практике он и близко не сравнится с strace . В частности, он пока не может точно выводить в консоль аргументы для большинства системных вызовов. Именно на примере системных вызовов удобно продемонстрировать цепочную загрузку, и на то есть три причины...

    habr.com/ru/companies/timeweb/

    #timeweb_статьи_перевод #процессор #трассировка #вызов #strace #linux #система #библиотеки_c++ #x86 #vdso

  44. [Перевод] Внутрипроцессная трассировка системных вызовов с использованием цепочного загрузчика

    В этой статье мы разберём небольшой инструмент для трассировки системных вызовов. В отличие от strace и аналогов, здесь трассировка будет происходить внутри процесса , без применения ptrace() или эквивалентных вещей. Должен добавить, что это всего лишь демонстрационный пример, поэтому на практике он и близко не сравнится с strace . В частности, он пока не может точно выводить в консоль аргументы для большинства системных вызовов. Именно на примере системных вызовов удобно продемонстрировать цепочную загрузку, и на то есть три причины...

    habr.com/ru/companies/timeweb/

    #timeweb_статьи_перевод #процессор #трассировка #вызов #strace #linux #система #библиотеки_c++ #x86 #vdso