Debian Codegraph @

templates/man3/mtrace.3.pot

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