Welcome | |
---|---|
Welcome to a320
You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today! |
Moderator: Moderators
jmd28 wrote:I get segmentation fault with prboom
w_wad.c - line 282
unsigned W_LumpNameHash(const char *s)
{
unsigned hash;
(void) ((hash = toupper(s[0]), s[1]) && // line 285
(hash = hash*3+toupper(s[1]), s[2]) &&
(hash = hash*2+toupper(s[2]), s[3]) &&
(hash = hash*2+toupper(s[3]), s[4]) &&
(hash = hash*2+toupper(s[4]), s[5]) &&
(hash = hash*2+toupper(s[5]), s[6]) &&
(hash = hash*2+toupper(s[6]),
hash = hash*2+toupper(s[7]))
);
return hash;
}
Program received signal SIGSEGV, Segmentation fault.
0x0045a770 in W_LumpNameHash (s=0x5a4530 "PLAYPAL") at w_wad.c:285
285 w_wad.c: No such file or directory.
in w_wad.c
(gdb) bt
#0 0x0045a770 in W_LumpNameHash (s=0x5a4530 "PLAYPAL") at w_wad.c:285
#1 0x0045a8c8 in W_HashLumps () at w_wad.c:356
#2 0x0045b548 in W_Init () at w_wad.c:424
#3 0x004344b0 in D_DoomMainSetup () at d_main.c:1510
#4 0x00436824 in D_DoomMain () at d_main.c:1645
#5 0x004be4b4 in main (argc=1, argv=<value optimized out>) at i_main.c:407
Users browsing this forum: No registered users and 0 guests