Announcement

Collapse
No announcement yet.

Penguinbrain v2.8 doesnt work

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Penguinbrain v2.8 doesnt work

    Hello together,

    i have some issues with Penguinbrain. For them, who dont know this program, its a training program for the LPI 1 & 2.

    Here is a strace of penguinbrain under gutsy:
    Code:
    [13:37:01] jens@tarmin:~ > strace Desktop/penguinbrainV2.8/penguinbrain
    execve("Desktop/penguinbrainV2.8/penguinbrain", ["Desktop/penguinbrainV2.8/penguin"...], [/* 36 vars */]) = 0
    getpid()                = 26835
    open("/proc/26835/exe", O_RDONLY)    = 3
    lseek(3, 1488, SEEK_SET)        = 1488
    read(3, "\217\315\22`\334\355\20\0\0\0\10\0", 12) = 12
    gettimeofday({1200573423, 165408}, NULL) = 0
    unlink("/tmp/upxBO1KG30A0GT")      = -1 ENOENT (No such file or directory)
    open("/tmp/upxBO1KG30A0GT", O_WRONLY|O_CREAT|O_EXCL, 0700) = 4
    ftruncate(4, 1109468)          = 0
    old_mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e83000
    read(3, "\0\0\10\0000w\3\0", 8)     = 8
    read(3, "\177?d\371\177ELF\1\0\2\0\3\0\32\264\33\6\10\373\377e\267"..., 227120) = 227120
    write(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\264\33"..., 524288) = 524288
    read(3, "\0\0\10\0\324\225\2\0", 8)   = 8
    read(3, "^\266\377\377\260j\23\10\350Cg\371\377\213M\364\262\1\241"..., 169428) = 169428
    write(4, "\260j\23\10\350Cg\371\377\213M\364\262\1\241\f\246\23\10"..., 524288) = 524288
    read(3, "\334\355\0\0mM\0\0", 8)    = 8
    read(3, "\331|\373\377H\"\25\0104Q\10\10X=\r\10\234\6\224\244\5"..., 19821) = 19821
    write(4, "H\"\25\0104Q\10\10X=\r\10\234=\r\10\224\244\5\10|\244\5"..., 60892) = 60892
    read(3, "\0\0\0\0UPX!", 8)       = 8
    munmap(0xb7e83000, 528384)       = 0
    close(4)                = 0
    close(3)                = 0
    open("/tmp/upxBO1KG30A0GT", O_RDONLY)  = 3
    access("/proc/26835/fd/3", R_OK|X_OK)  = 0
    unlink("/tmp/upxBO1KG30A0GT")      = 0
    fcntl(3, F_SETFD, FD_CLOEXEC)      = 0
    execve("/proc/26835/fd/3", ["Desktop/penguinbrainV2.8/penguin"...], [/* 36 vars */]) = -1 ENOENT (No such file or directory)
    close(3)                = 0
    fork()                 = 26836
    waitpid(-1, NULL, 0)          = 26836
    --- SIGCHLD (Child exited) @ 0 (0) ---
    execve("/tmp/upxBO1KG30A0GT", ["Desktop/penguinbrainV2.8/penguin"...], [/* 36 vars */]) = -1 ENOENT (No such file or directory)
    unlink("/tmp/upxBO1KG30A0GT")      = -1 ENOENT (No such file or directory)
    _exit(127)               = ?
    Process 26835 detached
    [13:37:03] jens@tarmin:~ >
    Here are the relevant parts of the same program under dapper drake:
    Code:
    execve("./penguinbrain", ["./penguinbrain"], [/* 19 vars */]) = 0
    getpid()                = 1900
    open("/proc/1900/exe", O_RDONLY)    = 3
    lseek(3, 1488, SEEK_SET)        = 1488
    read(3, "\217\315\22`\334\355\20\0\0\0\10\0", 12) = 12
    gettimeofday({1200568796, 156485}, NULL) = 0
    unlink("/tmp/upxBJ4GOMJAB1M")      = -1 ENOENT (No such file or directory)
    open("/tmp/upxBJ4GOMJAB1M", O_WRONLY|O_CREAT|O_EXCL, 0700) = 4
    ftruncate(4, 1109468)          = 0
    old_mmap(NULL, 528384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f1b000
    read(3, "\0\0\10\0000w\3\0", 8)     = 8
    read(3, "\177?d\371\177ELF\1\0\2\0\3\0\32\264\33\6\10\373\377e\267"..., 227120) = 227120
    write(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\2\0\3\0\1\0\0\0\264\33"..., 524288) = 524288
    read(3, "\0\0\10\0\324\225\2\0", 8)   = 8
    read(3, "^\266\377\377\260j\23\10\350Cg\371\377\213M\364\262\1\241"..., 169428) = 169428
    write(4, "\260j\23\10\350Cg\371\377\213M\364\262\1\241\f\246\23\10"..., 524288) = 524288
    read(3, "\334\355\0\0mM\0\0", 8)    = 8
    read(3, "\331|\373\377H\"\25\0104Q\10\10X=\r\10\234\6\224\244\5"..., 19821) = 19821
    write(4, "H\"\25\0104Q\10\10X=\r\10\234=\r\10\224\244\5\10|\244\5"..., 60892) = 60892
    read(3, "\0\0\0\0UPX!", 8)       = 8
    munmap(0xb7f1b000, 528384)       = 0
    close(4)                = 0
    close(3)                = 0
    open("/tmp/upxBJ4GOMJAB1M", O_RDONLY)  = 3
    access("/proc/1900/fd/3", R_OK|X_OK)  = 0
    unlink("/tmp/upxBJ4GOMJAB1M")      = 0
    fcntl(3, F_SETFD, FD_CLOEXEC)      = 0
    execve("/proc/1900/fd/3", ["./penguinbrain"], [/* 19 vars */]) = 0
    brk(0)                 = 0x8167000
    access("/etc/ld.so.nohwcap", F_OK)   = -1 ENOENT (No such file or directory)
    mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f3e000
    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=76869, ...}) = 0
    mmap2(NULL, 76869, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f2b000
    close(3)                = 0
    access("/etc/ld.so.nohwcap", F_OK)   = -1 ENOENT (No such file or directory)
    open("/usr/lib/libX11.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\200s\1"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0644, st_size=986540, ...}) = 0
    mmap2(NULL, 986876, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e3a000
    mmap2(0xb7f27000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xed) = 0xb7f27000
    close(3)                = 0
    access("/etc/ld.so.nohwcap", F_OK)   = -1 ENOENT (No such file or directory)
    open("/lib/tls/i686/cmov/libpthread.so.0", 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\20H\0\000"..., 512) = 512
    fstat64(3, {st_mode=S_IFREG|0644, st_size=112362, ...}) = 0
    mmap2(NULL, 90592, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e23000
    mmap2(0xb7e36000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13) = 0xb7e36000
    mmap2(0xb7e38000, 4576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7e38000
    close(3)
    Now, i think the problem is in line 28:
    Code:
    execve(""", ["./penguinbrain"], [/* 37 vars */]) = -1 ENOENT (No such file or directory)
    Can anyone tell me, why in gutsy the file "/proc/26546/fd/3" is closed but not in dapper?

    Thanks in advance.
    Jens

    #2
    Re: Penguinbrain v2.8 doesnt work

    I would suggest contacting the software company. I would venture a guess that there are some newer libraries in Gutsy than those used to compile or build the program's executable, and since there is no source code, we can't build it for ourselves.

    Comment

    Working...
    X