Debian Codegraph @

po/ru/man3/mtrace.3.po

raw
1 # Russian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # aereiae <[email protected]>, 2014.
5 # Alexey <[email protected]>, 2015.
6 # Azamat Hackimov <[email protected]>, 2013-2017.
7 # Dmitriy S. Seregin <[email protected]>, 2013.
8 # Dmitry Bolkhovskikh <[email protected]>, 2017.
9 # ITriskTI <[email protected]>, 2013.
10 # Max Is <[email protected]>, 2016.
11 # Yuri Kozlov <[email protected]>, 2011-2019.
12 # Иван Павлов <[email protected]>, 2017.
13 # Малянов Евгений Викторович <[email protected]>, 2014.
14 msgid ""
15 msgstr ""
16 "Project-Id-Version: manpages-l10n\n"
17 "POT-Creation-Date: 2026-06-05 06:32+0200\n"
18 "PO-Revision-Date: 2024-12-21 19:50+0300\n"
19 "Last-Translator: Yuri Kozlov <[email protected]>\n"
20 "Language-Team: Russian <[email protected]>\n"
21 "Language: ru\n"
22 "MIME-Version: 1.0\n"
23 "Content-Type: text/plain; charset=UTF-8\n"
24 "Content-Transfer-Encoding: 8bit\n"
25 "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
26 "n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || "
27 "(n%100>=11 && n%100<=14)? 2 : 3);\n"
28 "X-Generator: Lokalize 2.0\n"
29
30 #. type: TH
31 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
32 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
33 #, no-wrap
34 msgid "mtrace"
35 msgstr "mtrace"
36
37 #. type: TH
38 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
39 #: opensuse-tumbleweed
40 #, no-wrap
41 msgid "2026-02-08"
42 msgstr "8 февраля 2026 г."
43
44 #. type: TH
45 #: archlinux debian-unstable
46 #, fuzzy, no-wrap
47 #| msgid "Linux man-pages 6.17"
48 msgid "Linux man-pages 6.18"
49 msgstr "Справочные страницы Linux 6.17"
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "NAME"
56 msgstr "НАИМЕНОВАНИЕ"
57
58 #. type: Plain text
59 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
60 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "mtrace, muntrace - malloc tracing"
62 msgstr "mtrace, muntrace - трассировка malloc"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "LIBRARY"
69 msgstr "БИБЛИОТЕКА"
70
71 #. type: Plain text
72 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
73 #: opensuse-leap-16-1 opensuse-tumbleweed
74 msgid "Standard C library (I<libc>,\\ I<-lc>)"
75 msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)"
76
77 #. type: SH
78 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
79 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
80 #, no-wrap
81 msgid "SYNOPSIS"
82 msgstr "СИНТАКСИС"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<#include E<lt>mcheck.hE<gt>>\n"
89 msgstr "B<#include E<lt>mcheck.hE<gt>>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, fuzzy, no-wrap
95 #| msgid "B<void muntrace(void);>"
96 msgid ""
97 "B<void mtrace(void);>\n"
98 "B<void muntrace(void);>\n"
99 msgstr "B<void muntrace(void);>"
100
101 #. type: SH
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 #, no-wrap
105 msgid "DESCRIPTION"
106 msgstr "ОПИСАНИЕ"
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid ""
112 "The B<mtrace>() function installs hook functions for the memory-allocation "
113 "functions (B<malloc>(3), B<realloc>(3) B<memalign>(3), B<free>(3)). These "
114 "hook functions record tracing information about memory allocation and "
115 "deallocation. The tracing information can be used to discover memory leaks "
116 "and attempts to free nonallocated memory in a program."
117 msgstr ""
118 "Функция B<mtrace>() устанавливает перехватывающие функции (hook functions) "
119 "на функции выделения памяти (B<malloc>(3), B<realloc>(3), B<memalign>(3), "
120 "B<free>(3)). Эти перехватывающие функции записывают трассировочную "
121 "информация о выделении и освобождении памяти. Информация о трассировке может "
122 "использоваться в программе для обнаружения утечек памяти и попыток "
123 "освобождения не выделенной памяти."
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "The B<muntrace>() function disables the hook functions installed by "
130 "B<mtrace>(), so that tracing information is no longer recorded for the "
131 "memory-allocation functions. If no hook functions were successfully "
132 "installed by B<mtrace>(), B<muntrace>() does nothing."
133 msgstr ""
134 "Функция B<muntrace>() отключает перехватывающие функции, установленные "
135 "B<mtrace>() и трассировка функций выделения памяти больше не выполняется. "
136 "Если B<mtrace>() не установила перехватывающие функции, то B<muntrace>() "
137 "ничего не делает."
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "When B<mtrace>() is called, it checks the value of the environment variable "
144 "B<MALLOC_TRACE>, which should contain the pathname of a file in which the "
145 "tracing information is to be recorded. If the pathname is successfully "
146 "opened, it is truncated to zero length."
147 msgstr ""
148 "При вызове B<mtrace>() она проверяет значение переменной окружения "
149 "B<MALLOC_TRACE>, в которой должен содержаться путь к файлу для записи "
150 "информации о трассировке. При открытии этого файла он обрезается до нулевой "
151 "длины."
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 msgid ""
157 "If B<MALLOC_TRACE> is not set, or the pathname it specifies is invalid or "
158 "not writable, then no hook functions are installed, and B<mtrace>() has no "
159 "effect. In set-user-ID and set-group-ID programs, B<MALLOC_TRACE> is "
160 "ignored, and B<mtrace>() has no effect."
161 msgstr ""
162 "Если B<MALLOC_TRACE> не существует или указанный путь некорректен или "
163 "недоступен для записи, то перехватывающие функции не устанавливаются и "
164 "B<mtrace>() ничего не делает. Для программ с установленными set-user-ID и "
165 "set-group-ID переменная B<MALLOC_TRACE> игнорируется и B<mtrace>() ничего не "
166 "делает."
167
168 #. type: SH
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "ATTRIBUTES"
173 msgstr "АТРИБУТЫ"
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "For an explanation of the terms used in this section, see B<attributes>(7)."
180 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
181
182 #. type: tbl table
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, no-wrap
186 msgid "Interface"
187 msgstr "Интерфейс"
188
189 #. type: tbl table
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 #, no-wrap
193 msgid "Attribute"
194 msgstr "Атрибут"
195
196 #. type: tbl table
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "Value"
201 msgstr "Значение"
202
203 #. type: tbl table
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, no-wrap
207 msgid ".na\n"
208 msgstr ".na\n"
209
210 #. type: tbl table
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 #, no-wrap
214 msgid ".nh\n"
215 msgstr ".nh\n"
216
217 #. type: tbl table
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid ""
222 "B<mtrace>(),\n"
223 "B<muntrace>()"
224 msgstr ""
225 "B<mtrace>(),\n"
226 "B<muntrace>()"
227
228 #. type: tbl table
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "Thread safety"
233 msgstr "Безвредность в нитях"
234
235 #. type: tbl table
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "MT-Unsafe"
240 msgstr "MT-Unsafe"
241
242 #. FIXME: The marking is different from that in the glibc manual,
243 #. markings in glibc manual are more detailed:
244 #. mtrace: MT-Unsafe env race:mtrace const:malloc_hooks init
245 #. muntrace: MT-Unsafe race:mtrace const:malloc_hooks locale
246 #. But there is something wrong in glibc manual, for example:
247 #. glibc manual says muntrace should have marking locale because it calls
248 #. fprintf(), but muntrace does not execute area which cause locale problem.
249 #. type: SH
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "STANDARDS"
254 msgstr "СТАНДАРТЫ"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid "GNU."
260 msgstr "GNU."
261
262 #. type: SH
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 #, no-wrap
266 msgid "NOTES"
267 msgstr "ПРИМЕЧАНИЯ"
268
269 #. type: Plain text
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 msgid ""
273 "In normal usage, B<mtrace>() is called once at the start of execution of a "
274 "program, and B<muntrace>() is never called."
275 msgstr ""
276 "В обычной работе B<mtrace>() вызывается один раз в начале выполнения "
277 "программы, а B<muntrace>() никогда не вызывается."
278
279 #. type: Plain text
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 msgid ""
283 "The tracing output produced after a call to B<mtrace>() is textual, but not "
284 "designed to be human readable. The GNU C library provides a Perl script, "
285 "B<mtrace>(1), that interprets the trace log and produces human-readable "
286 "output. For best results, the traced program should be compiled with "
287 "debugging enabled, so that line-number information is recorded in the "
288 "executable."
289 msgstr ""
290 "Результат трассировки после вызова B<mtrace>() имеет текстовый формат, не "
291 "предназначенный для чтения человеком. В библиотеке GNU C есть сценарий Perl, "
292 "B<mtrace>(1), который преобразует журнал трассировки в читаемый вид. Для "
293 "лучших результатов трассируемая программа должна быть скомпилирована с "
294 "включённой отладкой для того, чтобы в исполняемый файл попала информация c "
295 "номерами строк."
296
297 #. type: Plain text
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 msgid ""
301 "The tracing performed by B<mtrace>() incurs a performance penalty (if "
302 "B<MALLOC_TRACE> points to a valid, writable pathname)."
303 msgstr ""
304 "Трассировка, выполняемая B<mtrace>(), ухудшает производительность (если "
305 "B<MALLOC_TRACE> указывает на корректный, доступный на запись файл)."
306
307 #. type: SH
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "BUGS"
312 msgstr "ПРОГРАММНЫЕ ОШИБКИ"
313
314 #. type: Plain text
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 msgid ""
318 "The line-number information produced by B<mtrace>(1) is not always precise: "
319 "the line number references may refer to the previous or following "
320 "(nonblank) line of the source code."
321 msgstr ""
322 "Информация о номере строки, выдаваемая в B<mtrace>(1), не всегда точна: "
323 "номер строки может ссылаться на предыдущую или следующую (не пустую) строку "
324 "исходного кода."
325
326 #. type: SH
327 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
328 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
329 #, no-wrap
330 msgid "EXAMPLES"
331 msgstr "ПРИМЕРЫ"
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 msgid ""
337 "The shell session below demonstrates the use of the B<mtrace>() function "
338 "and the B<mtrace>(1) command in a program that has memory leaks at two "
339 "different locations. The demonstration uses the following program:"
340 msgstr ""
341 "Далее представлен пример работы функции B<mtrace>() и команды B<mtrace>(1) "
342 "для программы с утечкой памяти в двух местах. Для демонстрации используется "
343 "следующая программа:"
344
345 #. SRC BEGIN (t_mtrace.c)
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid "$ B<cat t_mtrace.c>"
350 msgstr ""
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid ""
357 "#include E<lt>mcheck.hE<gt>\n"
358 "#include E<lt>stdio.hE<gt>\n"
359 "#include E<lt>stdlib.hE<gt>\n"
360 "\\&\n"
361 "int\n"
362 "main(void)\n"
363 "{\n"
364 " mtrace();\n"
365 "\\&\n"
366 " for (unsigned int j = 0; j E<lt> 2; j++)\n"
367 " malloc(100); /* Never freed--a memory leak */\n"
368 "\\&\n"
369 " calloc(16, 16); /* Never freed--a memory leak */\n"
370 " exit(EXIT_SUCCESS);\n"
371 "}\n"
372 msgstr ""
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid ""
378 "When we run the program as follows, we see that B<mtrace>() diagnosed "
379 "memory leaks at two different locations in the program:"
380 msgstr ""
381 "При выполнении этой программы мы видим, что B<mtrace>() обнаружила утечку "
382 "памяти в двух местах программы:"
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid ""
389 "$ B<cc -g t_mtrace.c -o t_mtrace>\n"
390 "$ B<export MALLOC_TRACE=/tmp/t>\n"
391 "$ B<./t_mtrace>\n"
392 "$ B<mtrace ./t_mtrace $MALLOC_TRACE>\n"
393 "Memory not freed:\n"
394 "-----------------\n"
395 " Address Size Caller\n"
396 "0x084c9378 0x64 at /home/cecilia/t_mtrace.c:12\n"
397 "0x084c93e0 0x64 at /home/cecilia/t_mtrace.c:12\n"
398 "0x084c9448 0x100 at /home/cecilia/t_mtrace.c:16\n"
399 msgstr ""
400 "$ B<cc -g t_mtrace.c -o t_mtrace>\n"
401 "$ B<export MALLOC_TRACE=/tmp/t>\n"
402 "$ B<./t_mtrace>\n"
403 "$ B<mtrace ./t_mtrace $MALLOC_TRACE>\n"
404 "Memory not freed:\n"
405 "-----------------\n"
406 " Address Size Caller\n"
407 "0x084c9378 0x64 at /home/cecilia/t_mtrace.c:12\n"
408 "0x084c93e0 0x64 at /home/cecilia/t_mtrace.c:12\n"
409 "0x084c9448 0x100 at /home/cecilia/t_mtrace.c:16\n"
410
411 #. type: Plain text
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 msgid ""
415 "The first two messages about unfreed memory correspond to the two "
416 "B<malloc>(3) calls inside the I<for> loop. The final message corresponds "
417 "to the call to B<calloc>(3) (which in turn calls B<malloc>(3))."
418 msgstr ""
419 "Первые два сообщения о не освобожденной памяти относятся к двум вызовам "
420 "B<malloc>(3), сделанным внутри цикла I<for>. Заключительное сообщение "
421 "относится к вызову B<calloc>(3) (которая, в свою очередь, вызывает "
422 "B<malloc>(3))."
423
424 #. type: SH
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, no-wrap
428 msgid "SEE ALSO"
429 msgstr "СМОТРИТЕ ТАКЖЕ"
430
431 #. type: Plain text
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 msgid "B<mtrace>(1), B<malloc>(3), B<malloc_hook>(3), B<mcheck>(3)"
435 msgstr "B<mtrace>(1), B<malloc>(3), B<malloc_hook>(3), B<mcheck>(3)"
436
437 #. type: TH
438 #: debian-trixie
439 #, no-wrap
440 msgid "2024-05-02"
441 msgstr "2 мая 2024 г."
442
443 #. type: TH
444 #: debian-trixie
445 #, no-wrap
446 msgid "Linux man-pages 6.9.1"
447 msgstr "Страницы руководства Linux 6.9.1"
448
449 #. type: Plain text
450 #: debian-trixie
451 msgid "Standard C library (I<libc>, I<-lc>)"
452 msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)"
453
454 #. type: TH
455 #: fedora-44 fedora-rawhide
456 #, no-wrap
457 msgid "2024-07-23"
458 msgstr "23 июля 2024 г."
459
460 #. type: TH
461 #: fedora-44 fedora-rawhide
462 #, no-wrap
463 msgid "Linux man-pages 6.13"
464 msgstr "Страницы руководства Linux 6.13"
465
466 #. type: TH
467 #: mageia-cauldron
468 #, no-wrap
469 msgid "Linux man-pages 6.17"
470 msgstr "Страницы руководства Linux 6.17"
471
472 #. type: TH
473 #: opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "Linux man-pages (unreleased)"
476 msgstr "Страницы руководства Linux (не выпущены)"