1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399
| root@VM-8-15-debian:~/tmp# ltrace /bin/ls strrchr("/bin/ls", '/') = "/ls" setlocale(LC_ALL, "") = "en_US.utf8" bindtextdomain("coreutils", "/usr/share/locale") = "/usr/share/locale" textdomain("coreutils") = "coreutils" __cxa_atexit(0x561b150b5eb0, 0, 0x561b150cb348, 0) = 0 getopt_long(1, 0x7ffdda9e0308, "abcdfghiklmnopqrstuvw:xABCDFGHI:"..., 0x561b150ca620, -1) = -1 getenv("LS_BLOCK_SIZE") = nil getenv("BLOCK_SIZE") = nil getenv("BLOCKSIZE") = nil getenv("POSIXLY_CORRECT") = nil getenv("BLOCK_SIZE") = nil isatty(1) = 1 ioctl(1, 21523, 0x7ffdda9e01a0) = 0 getenv("TABSIZE") = nil getenv("QUOTING_STYLE") = nil __errno_location() = 0x7f1cf881fad8 memcpy(0x561b16e0aa00, "\003\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 56) = 0x561b16e0aa00 __errno_location() = 0x7f1cf881fad8 memcpy(0x561b16e0aa40, "\003\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 56) = 0x561b16e0aa40 getenv("TZ") = nil reallocarray(0, 100, 208, 0x561b16e0aa80) = 0x561b16e0ab10 strlen(".") = 1 memcpy(0x561b16e0fc90, ".\0", 2) = 0x561b16e0fc90 __errno_location() = 0x7f1cf881fad8 opendir(".") = 0x561b16e0fcb0 readdir(0x561b16e0fcb0) = 0x561b16e0fce0 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("result") = 6 strlen("result") = 6 memcpy(0x561b16e17cf0, "result\0", 7) = 0x561b16e17cf0 readdir(0x561b16e0fcb0) = 0x561b16e0fd00 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("strncmp.c") = 9 strlen("strncmp.c") = 9 memcpy(0x561b16e17d10, "strncmp.c\0", 10) = 0x561b16e17d10 readdir(0x561b16e0fcb0) = 0x561b16e0fd20 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("getuid.c") = 8 strlen("getuid.c") = 8 memcpy(0x561b16e17d30, "getuid.c\0", 9) = 0x561b16e17d30 readdir(0x561b16e0fcb0) = 0x561b16e0fd40 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("exp.so") = 6 strlen("exp.so") = 6 memcpy(0x561b16e17d50, "exp.so\0", 7) = 0x561b16e17d50 readdir(0x561b16e0fcb0) = 0x561b16e0fd60 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("vim") = 3 strlen("vim") = 3 memcpy(0x561b16e17d70, "vim\0", 4) = 0x561b16e17d70 readdir(0x561b16e0fcb0) = 0x561b16e0fd78 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("test.php") = 8 strlen("test.php") = 8 memcpy(0x561b16e17d90, "test.php\0", 9) = 0x561b16e17d90 readdir(0x561b16e0fcb0) = 0x561b16e0fd98 readdir(0x561b16e0fcb0) = 0x561b16e0fdb0 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("qwq.c") = 5 strlen("qwq.c") = 5 memcpy(0x561b16e17db0, "qwq.c\0", 6) = 0x561b16e17db0 readdir(0x561b16e0fcb0) = 0x561b16e0fdd0 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("strncmp.so") = 10 strlen("strncmp.so") = 10 memcpy(0x561b16e17dd0, "strncmp.so\0", 11) = 0x561b16e17dd0 readdir(0x561b16e0fcb0) = 0x561b16e0fdf0 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("getuid.so") = 9 strlen("getuid.so") = 9 memcpy(0x561b16e17df0, "getuid.so\0", 10) = 0x561b16e17df0 readdir(0x561b16e0fcb0) = 0x561b16e0fe10 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("urandom.so") = 10 strlen("urandom.so") = 10 memcpy(0x561b16e17e10, "urandom.so\0", 11) = 0x561b16e17e10 readdir(0x561b16e0fcb0) = 0x561b16e0fe30 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("random.c") = 8 strlen("random.c") = 8 memcpy(0x561b16e17e30, "random.c\0", 9) = 0x561b16e17e30 readdir(0x561b16e0fcb0) = 0x561b16e0fe50 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("random") = 6 strlen("random") = 6 memcpy(0x561b16e17e50, "random\0", 7) = 0x561b16e17e50 readdir(0x561b16e0fcb0) = 0x561b16e0fe70 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("qwq.so") = 6 strlen("qwq.so") = 6 memcpy(0x561b16e17e70, "qwq.so\0", 7) = 0x561b16e17e70 readdir(0x561b16e0fcb0) = 0x561b16e0fe90 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("solve.c") = 7 strlen("solve.c") = 7 memcpy(0x561b16e17e90, "solve.c\0", 8) = 0x561b16e17e90 readdir(0x561b16e0fcb0) = 0x561b16e0feb0 readdir(0x561b16e0fcb0) = 0x561b16e0fec8 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("vim.c") = 5 strlen("vim.c") = 5 memcpy(0x561b16e17eb0, "vim.c\0", 6) = 0x561b16e17eb0 readdir(0x561b16e0fcb0) = 0x561b16e0fee8 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("urandom.c") = 9 strlen("urandom.c") = 9 memcpy(0x561b16e17ed0, "urandom.c\0", 10) = 0x561b16e17ed0 readdir(0x561b16e0fcb0) = 0x561b16e0ff08 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("exp.c") = 5 strlen("exp.c") = 5 memcpy(0x561b16e17ef0, "exp.c\0", 6) = 0x561b16e17ef0 readdir(0x561b16e0fcb0) = 0x561b16e0ff28 __errno_location() = 0x7f1cf881fad8 __ctype_get_mb_cur_max() = 6 strlen("solve") = 5 strlen("solve") = 5 memcpy(0x561b16e17f10, "solve\0", 6) = 0x561b16e17f10 readdir(0x561b16e0fcb0) = 0 closedir(0x561b16e0fcb0) = 0 reallocarray(0, 18, 24, 0x7f1cf89b7c57) = 0x561b16e0fcb0 strlen("result") = 6 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("strncmp.c") = 9 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("getuid.c") = 8 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("exp.so") = 6 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("vim") = 3 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("test.php") = 8 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("qwq.c") = 5 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("strncmp.so") = 10 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("getuid.so") = 9 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("urandom.so") = 10 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("random.c") = 8 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("random") = 6 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("qwq.so") = 6 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("solve.c") = 7 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("vim.c") = 5 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("urandom.c") = 9 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("exp.c") = 5 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 strlen("solve") = 5 __ctype_get_mb_cur_max() = 6 __ctype_get_mb_cur_max() = 6 _setjmp(0x561b150cb640, 0x7ffdda9ddd5f, 0, 0) = 0 __errno_location() = 0x7f1cf881fad8 strcoll("exp.c", "solve") = -71 __errno_location() = 0x7f1cf881fad8 strcoll("urandom.c", "exp.c") = 71 __errno_location() = 0x7f1cf881fad8 strcoll("urandom.c", "solve") = 26 memcpy(0x561b16e0fd38, "@\267\340\026\033V\0\0", 8) = 0x561b16e0fd38 __errno_location() = 0x7f1cf881fad8 strcoll("solve.c", "vim.c") = -48 memcpy(0x561b16e0fd48, "p\266\340\026\033V\0\0", 8) = 0x561b16e0fd48 __errno_location() = 0x7f1cf881fad8 strcoll("solve.c", "exp.c") = 71 __errno_location() = 0x7f1cf881fad8 strcoll("solve.c", "solve") = 1 __errno_location() = 0x7f1cf881fad8 strcoll("solve.c", "urandom.c") = -26 __errno_location() = 0x7f1cf881fad8 strcoll("vim.c", "urandom.c") = 22 memcpy(0x561b16e0fd38, "p\266\340\026\033V\0\0", 8) = 0x561b16e0fd38 __errno_location() = 0x7f1cf881fad8 strcoll("random", "qwq.so") = 6 __errno_location() = 0x7f1cf881fad8 strcoll("urandom.so", "random.c") = 1 __errno_location() = 0x7f1cf881fad8 strcoll("random.c", "qwq.so") = 6 __errno_location() = 0x7f1cf881fad8 strcoll("random.c", "random") = 1 memcpy(0x561b16e0fd50, "0\263\340\026\033V\0\0`\262\340\026\033V\0\0", 16) = 0x561b16e0fd50 __errno_location() = 0x7f1cf881fad8 strcoll("qwq.so", "exp.c") = 70 __errno_location() = 0x7f1cf881fad8 strcoll("qwq.so", "solve") = -1 __errno_location() = 0x7f1cf881fad8 strcoll("random", "solve") = -1 __errno_location() = 0x7f1cf881fad8 strcoll("random.c", "solve") = -1 __errno_location() = 0x7f1cf881fad8 strcoll("urandom.so", "solve") = 26 __errno_location() = 0x7f1cf881fad8 strcoll("urandom.so", "solve.c") = 26 __errno_location() = 0x7f1cf881fad8 strcoll("urandom.so", "urandom.c") = 92 __errno_location() = 0x7f1cf881fad8 strcoll("urandom.so", "vim.c") = -22 __errno_location() = 0x7f1cf881fad8 strcoll("strncmp.so", "getuid.so") = 3 __errno_location() = 0x7f1cf881fad8 strcoll("qwq.c", "getuid.so") = 2 __errno_location() = 0x7f1cf881fad8 strcoll("qwq.c", "strncmp.so") = -1 __errno_location() = 0x7f1cf881fad8 strcoll("vim", "test.php") = 33 memcpy(0x561b16e0fd48, "P\256\340\026\033V\0\0", 8) = 0x561b16e0fd48 __errno_location() = 0x7f1cf881fad8 strcoll("test.php", "getuid.so") = 3 __errno_location() = 0x7f1cf881fad8 strcoll("test.php", "qwq.c") = 1 __errno_location() = 0x7f1cf881fad8 strcoll("test.php", "strncmp.so") = 15 memcpy(0x561b16e0fce8, " \257\340\026\033V\0\0P\256\340\026\033V\0\0", 16) = 0x561b16e0fce8 __errno_location() = 0x7f1cf881fad8 strcoll("getuid.c", "exp.so") = 68 __errno_location() = 0x7f1cf881fad8 strcoll("result", "strncmp.c") = -1 memcpy(0x561b16e0fd48, "\340\253\340\026\033V\0\0", 8) = 0x561b16e0fd48 __errno_location() = 0x7f1cf881fad8 strcoll("result", "exp.so") = 70 __errno_location() = 0x7f1cf881fad8 strcoll("result", "getuid.c") = 2 memcpy(0x561b16e0fcc0, "\020\253\340\026\033V\0\0\340\253\340\026\033V\0\0", 16) = 0x561b16e0fcc0 __errno_location() = 0x7f1cf881fad8 strcoll("exp.so", "getuid.so") = -68 __errno_location() = 0x7f1cf881fad8 strcoll("getuid.c", "getuid.so") = -92 __errno_location() = 0x7f1cf881fad8 strcoll("result", "getuid.so") = 2 __errno_location() = 0x7f1cf881fad8 strcoll("result", "qwq.c") = 6 __errno_location() = 0x7f1cf881fad8 strcoll("result", "strncmp.so") = -1 __errno_location() = 0x7f1cf881fad8 strcoll("strncmp.c", "strncmp.so") = -92 memcpy(0x561b16e0fd70, "\300\260\340\026\033V\0\0 \257\340\026\033V\0\0P\256\340\026\033V\0\0", 24) = 0x561b16e0fd70 __errno_location() = 0x7f1cf881fad8 strcoll("exp.so", "exp.c") = 92 __errno_location() = 0x7f1cf881fad8 strcoll("exp.so", "qwq.so") = -70 __errno_location() = 0x7f1cf881fad8 strcoll("getuid.c", "qwq.so") = -2 __errno_location() = 0x7f1cf881fad8 strcoll("getuid.so", "qwq.so") = -2 __errno_location() = 0x7f1cf881fad8 strcoll("qwq.c", "qwq.so") = -92 __errno_location() = 0x7f1cf881fad8 strcoll("result", "qwq.so") = 6 __errno_location() = 0x7f1cf881fad8 strcoll("result", "random") = 45 __errno_location() = 0x7f1cf881fad8 strcoll("result", "random.c") = 45 __errno_location() = 0x7f1cf881fad8 strcoll("result", "solve") = -1 __errno_location() = 0x7f1cf881fad8 strcoll("strncmp.c", "solve") = 2 __errno_location() = 0x7f1cf881fad8 strcoll("strncmp.c", "solve.c") = 2 __errno_location() = 0x7f1cf881fad8 strcoll("strncmp.c", "urandom.c") = -26 __errno_location() = 0x7f1cf881fad8 strcoll("strncmp.so", "urandom.c") = -26 __errno_location() = 0x7f1cf881fad8 strcoll("test.php", "urandom.c") = -11 __errno_location() = 0x7f1cf881fad8 strcoll("vim", "urandom.c") = 22 __errno_location() = 0x7f1cf881fad8 strcoll("vim", "urandom.so") = 22 __errno_location() = 0x7f1cf881fad8 strcoll("vim", "vim.c") = -1 reallocarray(0, 34, 24, 0x561b16e17d73) = 0x561b16e0fe70 reallocarray(0, 595, 8, 0) = 0x561b16e101b0 strlen("exp.c") = 5 fwrite_unlocked("exp.c", 1, 5, 0x7f1cf8a8e760) = 5 __overflow(0x7f1cf8a8e760, 9, 6, 8) = 9 strlen("getuid.c") = 8 fwrite_unlocked("getuid.c", 1, 8, 0x7f1cf8a8e760) = 8 __overflow(0x7f1cf8a8e760, 32, 1, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 2, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 3, 8) = 32 strlen("qwq.c") = 5 fwrite_unlocked("qwq.c", 1, 5, 0x7f1cf8a8e760) = 5 __overflow(0x7f1cf8a8e760, 32, 1, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 2, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 3, 8) = 32 strlen("random") = 6 fwrite_unlocked("random", 1, 6, 0x7f1cf8a8e760) = 6 __overflow(0x7f1cf8a8e760, 32, 2, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 3, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 4, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 5, 8) = 32 strlen("result") = 6 fwrite_unlocked("result", 1, 6, 0x7f1cf8a8e760) = 6 __overflow(0x7f1cf8a8e760, 32, 4, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 5, 8) = 32 strlen("solve.c") = 7 fwrite_unlocked("solve.c", 1, 7, 0x7f1cf8a8e760) = 7 __overflow(0x7f1cf8a8e760, 9, 5, 8) = 9 strlen("strncmp.so") = 10 fwrite_unlocked("strncmp.so", 1, 10, 0x7f1cf8a8e760) = 10 __overflow(0x7f1cf8a8e760, 32, 3, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 4, 8) = 32 strlen("urandom.c") = 9 fwrite_unlocked("urandom.c", 1, 9, 0x7f1cf8a8e760) = 9 __overflow(0x7f1cf8a8e760, 9, 6, 8) = 9 strlen("vim") = 3 fwrite_unlocked("vim", 1, 3, 0x7f1cf8a8e760) = 3 __overflow(0x7f1cf8a8e760, 10, 10, 0exp.c getuid.c qwq.c random result solve.c strncmp.so urandom.c vim ) = 10 strlen("exp.so") = 6 fwrite_unlocked("exp.so", 1, 6, 0x7f1cf8a8e760) = 6 __overflow(0x7f1cf8a8e760, 9, 7, 8) = 9 strlen("getuid.so") = 9 fwrite_unlocked("getuid.so", 1, 9, 0x7f1cf8a8e760) = 9 __overflow(0x7f1cf8a8e760, 32, 2, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 3, 8) = 32 strlen("qwq.so") = 6 fwrite_unlocked("qwq.so", 1, 6, 0x7f1cf8a8e760) = 6 __overflow(0x7f1cf8a8e760, 32, 2, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 3, 8) = 32 strlen("random.c") = 8 fwrite_unlocked("random.c", 1, 8, 0x7f1cf8a8e760) = 8 __overflow(0x7f1cf8a8e760, 32, 4, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 5, 8) = 32 strlen("solve") = 5 fwrite_unlocked("solve", 1, 5, 0x7f1cf8a8e760) = 5 __overflow(0x7f1cf8a8e760, 32, 3, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 4, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 5, 8) = 32 strlen("strncmp.c") = 9 fwrite_unlocked("strncmp.c", 1, 9, 0x7f1cf8a8e760) = 9 __overflow(0x7f1cf8a8e760, 9, 7, 8) = 9 strlen("test.php") = 8 fwrite_unlocked("test.php", 1, 8, 0x7f1cf8a8e760) = 8 __overflow(0x7f1cf8a8e760, 32, 1, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 2, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 3, 8) = 32 __overflow(0x7f1cf8a8e760, 32, 4, 8) = 32 strlen("urandom.so") = 10 fwrite_unlocked("urandom.so", 1, 10, 0x7f1cf8a8e760) = 10 __overflow(0x7f1cf8a8e760, 9, 7, 8) = 9 strlen("vim.c") = 5 fwrite_unlocked("vim.c", 1, 5, 0x7f1cf8a8e760) = 5 __overflow(0x7f1cf8a8e760, 10, 10, 0exp.so getuid.so qwq.so random.c solve strncmp.c test.php urandom.so vim.c ) = 10 __fpending(0x7f1cf8a8e760, 0, 1, 1) = 0 fileno(0x7f1cf8a8e760) = 1 __freading(0x7f1cf8a8e760, 0, 1, 1) = 0 __freading(0x7f1cf8a8e760, 0, 0, 1) = 0 fflush(0x7f1cf8a8e760) = 0 fclose(0x7f1cf8a8e760) = 0 __fpending(0x7f1cf8a8e680, 0, 0x7f1cf8a89900, 0xffffffff) = 0 fileno(0x7f1cf8a8e680) = 2 __freading(0x7f1cf8a8e680, 0, 0x7f1cf8a89900, 0xffffffff) = 0 __freading(0x7f1cf8a8e680, 0, 0, 0xffffffff) = 0 fflush(0x7f1cf8a8e680) = 0 fclose(0x7f1cf8a8e680) = 0 +++ exited (status 0) +++
|