Bug 56190 - xdg-open: firefox: execv: /usr/lib64/firefox/firefox: Bad address при количестве переменных > 120
Summary: xdg-open: firefox: execv: /usr/lib64/firefox/firefox: Bad address при количес...
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: firefox (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Ajrat Makhmutov
QA Contact: qa-sisyphus
URL:
Keywords:
: 54966 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-09-28 14:46 MSK by Evgeny Shesteperov
Modified: 2025-10-31 15:33 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeny Shesteperov 2025-09-28 14:46:08 MSK
Браузер по умолчанию: Firefox

Шаги воспроизведения:

$ xdg-open 'https://google.com'

Ожидаемый результат: открытие ссылки

Фактический результат:
firefox: execv: /usr/lib64/firefox/firefox: Bad address

В Chromium-подобных браузерах такого поведения нет, открывается вкладка с указанным адресом.
Comment 1 Evgeny Shesteperov 2025-09-28 17:39:04 MSK
Воспроизводится, если переменных окружения больше 120.

$ env | wc -l
120
Comment 2 Ajrat Makhmutov 2025-09-28 17:59:06 MSK
Воспроизвёл:
rauty@ajratkogda ~/git/alt/task-edu sisyphus @ env | wc -l
114
rauty@ajratkogda ~/git/alt/task-edu sisyphus @ env RAZ= DVA= TRI= CHETIRE= PYAT= SHEST= | wc -l
120
rauty@ajratkogda ~/git/alt/task-edu sisyphus @ env RAZ= DVA= TRI= CHETIRE= PYAT= SHEST= firefox 'google.com'
# открылось
rauty@ajratkogda ~/git/alt/task-edu sisyphus @ env RAZ= DVA= TRI= CHETIRE= PYAT= SHEST= xdg-open 'google.com'
# открылось
rauty@ajratkogda ~/git/alt/task-edu sisyphus @ env RAZ= DVA= TRI= CHETIRE= PYAT= SHEST= SEM= | wc -l
121
rauty@ajratkogda ~/git/alt/task-edu sisyphus [127] @ env RAZ= DVA= TRI= CHETIRE= PYAT= SHEST= SEM= firefox 'google.com'
firefox: execv: /usr/lib64/firefox/firefox: Bad address
env RAZ= DVA= TRI= CHETIRE= PYAT= SHEST= SEM= VOSEM= /usr/lib64/firefox/firefox 'google.com'
# открылось

Проблема в wrapper'е.
Comment 3 Ajrat Makhmutov 2025-10-13 18:21:57 MSK
Евгений, проверьте пожалуйста с таском
https://packages.altlinux.org/en/tasks/396308/
Comment 4 Repository Robot 2025-10-14 08:40:22 MSK
firefox-143.0.4-alt1 -> sisyphus:

Sun Oct 12 2025 Ajrat Makhmutov <rauty@altlinux> 143.0.4-alt1
- New version (143.0.4).
Thu Oct 02 2025 Ajrat Makhmutov <rauty@altlinux> 143.0.3-alt1
- New version (143.0.3).
- Fix the new_argv to match the standard argv
  format in the wrapper (Closes: 56190).
- Fixes:
  + CVE-2025-11152: Sandbox escape due to integer overflow in the Graphics: Canvas2D component
  + CVE-2025-11153: JIT miscompilation in the JavaScript Engine: JIT component
Comment 5 protvin@altlinux.org 2025-10-28 19:44:21 MSK
*** Bug 54966 has been marked as a duplicate of this bug. ***
Comment 6 Evgeny Shesteperov 2025-10-31 15:33:00 MSK
(Ответ для Ajrat Makhmutov на комментарий #3)
> Евгений, проверьте пожалуйста 

Исправлено, спасибо!