You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling on a Powerpc with Debian GNU/Linux 5.0 make hangs on:
[SRC] DEP CHECK (all files)
Further examination with gdb shows that it never returns from Lexer::Lex() when parsing include/squirrel.h:
(gdb) bt
# 0 0x0fca6f20 in getc () from /lib/libc.so.6
# 1 0x1000b4e0 in File::GetChar (this=0xbf9c0938) at /home/alve/openttd/src/depend/depend.cpp:95
# 2 0x1000b534 in Lexer::Next (this=0xbf9c0960) at /home/alve/openttd/src/depend/depend.cpp:185
# 3 0x1000c8b8 in Lexer::Lex (this=0xbf9c0960) at /home/alve/openttd/src/depend/depend.cpp:323
# 4 0x1000368c in ScanFile (
filename=0x10022c10 "/home/alve/openttd/src/3rdparty/squirrel/include/squirrel.h", ext=0x1001f040 ".o",
header=true, verbose=true) at /home/alve/openttd/src/depend/depend.cpp:790
# 5 0x10002294 in ScanFile (
filename=0xbf9c54d4 "/home/alve/openttd/src/3rdparty/squirrel/sqstdlib/sqstdaux.cpp",
ext=0x1001f040 ".o", header=false, verbose=true) at /home/alve/openttd/src/depend/depend.cpp:639
# 6 0x10003be8 in main (argc=486, argv=0xbf9c3fe4) at /home/alve/openttd/src/depend/depend.cpp:859
(gdb) finish
Run till exit from # 0 0x0fca6f20 in getc () from /lib/libc.so.6
0x1000b4e0 in File::GetChar (this=0xbf9c0938) at /home/alve/openttd/src/depend/depend.cpp:95
95 char c = fgetc(this->fp);
(gdb) finish
Run till exit from # 0 0x1000b4e0 in File::GetChar (this=0xbf9c0938)
at /home/alve/openttd/src/depend/depend.cpp:95
0x1000b534 in Lexer::Next (this=0xbf9c0960) at /home/alve/openttd/src/depend/depend.cpp:185
185 this->current_char = this->file->GetChar();
Value returned is $1 = 255 '�'
(gdb) finish
Run till exit from # 0 0x1000b534 in Lexer::Next (this=0xbf9c0960)
at /home/alve/openttd/src/depend/depend.cpp:185
0x1000c8b8 in Lexer::Lex (this=0xbf9c0960) at /home/alve/openttd/src/depend/depend.cpp:323
323 this->Next();
(gdb) p file
$2 = (const File *) 0xbf9c0938
(gdb) p *file
$3 = {fp = 0x10022cd0, dirname = 0x10022e40 "/home/alve/openttd/src/3rdparty/squirrel/include",
filename = 0x10022c10 "/home/alve/openttd/src/3rdparty/squirrel/include/squirrel.h"}
(gdb) finish
Run till exit from # 0 0x1000c8b8 in Lexer::Lex (this=0xbf9c0960)
at /home/alve/openttd/src/depend/depend.cpp:323
GetChar seems to always return 255, which is suspicious. The fp variable contains things like this:
fonsinchen opened the ticket and wrote:
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/2971
The text was updated successfully, but these errors were encountered: