Skip to content

glibc detected an invalid stdio handle #119

@drozdowsky

Description

@drozdowsky

I got weird errors the first one is usually "Fatal error: glibc detected an invalid stdio handle" when I rerun I just get the Segmentation fault (core dumped)

./gta3sc decompile ./main.scm --config=gtavc -emit-ir2
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x6D2
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x6D3
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x260
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D85 at local offset 0x261
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x2ED
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x2EE
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x15CE
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x15CF
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x15AA2
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x15AA3
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x15D28
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x15D29
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x15FE7
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x15FE8
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x162DF
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x162E0
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x16594
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x16595
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x16C29
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x16C2A
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x16EAF
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x16EB0
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1716E
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1716F
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x17466
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x17467
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x17732
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x17733
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x17997
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x17998
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x18084
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x18085
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1838A
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1838B
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x18689
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1868A
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x18981
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x18982
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x18C7B
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x18C7C
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x18EF8
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x18EF9
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x194D1
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x194D2
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x196D9
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x196DA
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x198E1
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x198E2
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x19B23
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x19B24
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x19DA5
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x19DA6
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1A336
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1A337
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1A53E
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1A53F
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1A746
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1A747
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1A94E
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1A94F
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1AB92
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1AB93
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1B13D
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1B13E
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1B345
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1B346
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1B54D
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1B54E
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1B755
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1B756
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1B95F
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1B960
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1BE9B
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1BE9C
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1BF14
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1BF15
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1BF62
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1BF63
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1C00A
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1C00B
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1C11A
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1C11B
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1C1C2
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1C1C3
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1C36E
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1C36F
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: could not disassembly opcode 0x59C at local offset 0x1C416
gta3sc: note: use --verbose to find which block this offset belongs to
gta3sc: warning: found unknown opcode 0x4D05 at local offset 0x1C417
gta3sc: note: use --verbose to find which block this offset belongs to

I get this when using master, when using rewrite I don't even know how to build it and then run properly (there is no file like gta3sc)
I followed the instructions from branches


Scanning dependencies of target gta3sc
[ 10%] Building CXX object lib/CMakeFiles/gta3sc.dir/sourceman.cpp.o
[ 20%] Building CXX object lib/CMakeFiles/gta3sc.dir/preprocessor.cpp.o
[ 30%] Building CXX object lib/CMakeFiles/gta3sc.dir/scanner.cpp.o
[ 40%] Building CXX object lib/CMakeFiles/gta3sc.dir/parser.cpp.o
[ 50%] Linking CXX static library libgta3sc.a
[ 50%] Built target gta3sc
Scanning dependencies of target gta3sc_unittest
[ 60%] Building CXX object unittest/CMakeFiles/gta3sc_unittest.dir/main.cpp.o
[ 70%] Building CXX object unittest/CMakeFiles/gta3sc_unittest.dir/preprocessor.cpp.o
[ 80%] Building CXX object unittest/CMakeFiles/gta3sc_unittest.dir/scanner.cpp.o
[ 90%] Building CXX object unittest/CMakeFiles/gta3sc_unittest.dir/parser.cpp.o
[100%] Linking CXX executable gta3sc_unittest
[100%] Built target gta3sc_unittest

Still I can't see gta3sc

I don't get how this stuff works really so I am sorry also thanks for the tool

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions