LINUX.ORG.RU

Ответ на: комментарий от Dselect

execve("/usr/bin/bin2iso", ["bin2iso", "Touhou.cue"], [/* 59 vars */]) = 0
brk(0)                                  = 0x884e000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=122314, ...}) = 0
mmap2(NULL, 122314, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f07000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@a\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1237276, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f06000
mmap2(NULL, 1242576, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dd6000
mmap2(0xb7f00000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12a) = 0xb7f00000
mmap2(0xb7f03000, 9680, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f03000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dd5000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7dd56c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7f00000, 8192, PROT_READ)   = 0
mprotect(0x804c000, 4096, PROT_READ)    = 0
mprotect(0xb7f3f000, 4096, PROT_READ)   = 0
munmap(0xb7f07000, 122314)              = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 4), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f24000
write(1, "\n", 1
)                       = 1
write(1, "Jun  2 2008, 23:16:21\n", 22Jun  2 2008, 23:16:21
) = 22
write(1, "bin2iso V1.9b - Converts RAW for"..., 67bin2iso V1.9b - Converts RAW format (.bin) files to ISO/WAV format
) = 67
write(1, "               Bob Doiron, ICQ#2"..., 59               Bob Doiron, ICQ#280251                     
) = 59
write(1, "\nCheck for updates at http://use"..., 54
Check for updates at http://users.andara.com/~doiron
) = 54
write(1, "\n", 1
)                       = 1
write(1, "\n", 1
)                       = 1
brk(0)                                  = 0x884e000
brk(0x886f000)                          = 0x886f000
open("Touhou.cue", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=69, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f23000
read(3, "FILE \"Touhou.bin\" BINARY\n  TRACK"..., 4096) = 69
open("Touhou.bin", O_RDONLY)            = -1 EOVERFLOW (Value too large for defined data type)
write(1, "Unable to open Touhou.bin\n", 26Unable to open Touhou.bin
) = 26
dup(2)                                  = 4
fcntl64(4, F_GETFL)                     = 0x2 (flags O_RDWR)
fstat64(4, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 4), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f22000
_llseek(4, 0, 0xbfbb93f8, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
write(4, "\n", 1
)                       = 1
write(4, "bin2iso(fopen): Value too large "..., 54bin2iso(fopen): Value too large for defined data type
) = 54
close(4)                                = 0
munmap(0xb7f22000, 4096)                = 0
exit_group(1)                           = ?

anonymous
()
Ответ на: комментарий от anonymous

Это баг bin2iso

> read(3, "FILE \"Touhou.bin\" BINARY\n  TRACK"..., 4096) = 69
> open("Touhou.bin", O_RDONLY)            = -1 EOVERFLOW (Value too large for defined data type)

Файл Touhou.bin небось > 2Gb (и архитектура x86)?
Пишите автору, что при открытии файлов нужно указывать O_LARGEFILE.
И этот strace ему тоже пошлите.

Из man 2 open:
	EOVERFLOW
		pathname refers to a regular file, too large to be opened; see
		O_LARGEFILE above.

Dselect ★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.