Segmentation fault error with WWT

Discussion in 'Wii - Hacking' started by cthulhu, Jan 8, 2012.

Jan 8, 2012
  1. cthulhu
    OP

    Newcomer cthulhu Member

    Joined:
    Nov 28, 2011
    Messages:
    17
    Country:
    New Zealand
    I have Easy Wii Linux installed on my Wii. I compiled and ran WWT on my Wii. I get a segmentation fault error when trying to verify my WBFS volume:

    Code:
    root@debian:~# wwt verify -A
    *****  wwt: Wiimms WBFS Tool v2.03a r0 linux - Dirk Clemens - 2012-01-03  *****
    WBFSv1 #1/1 opened: /dev/sda1
    +OK	  1.0/36  DATA	RM3P01 Metroid Prime 3: Corruption
    +OK	  2.0/36  DATA	RCDP52 Call of Duty 3
    +OK	  3.0/36  DATA	RNHP99 No More Heroes
    +OK	  4.0/36  DATA	REXP01 Excite Truck
    +OK	  5.0/36  DATA	SB4P01 Super Mario Galaxy 2
    +OK	  6.0/36  DATA	ROWP08 Okami
    +OK	  7.0/36  DATA	SHLPA4 Silent Hill: Shattered Memories
    +OK	  8.0/36  DATA	RZJP69 Dead Space: Extraction
    +OK	  9.0/36  DATA	R3OP01 Metroid: Other M
    Segmentation fault
    
    This is the list of my installed games:

    Code:
    root@debian:~# wwt list-ll --sort none
    
    ID6	  m-date	MiB Reg. 39/214 discs (110 GiB)
    ----------------------------------------------------------------------
    RM3P01 2011-12-15 4186 PAL  Metroid Prime 3: Corruption
    RCDP52 2011-12-15 3476 PAL  Call of Duty 3
    RNHP99 2011-12-15 3362 PAL  No More Heroes
    REXP01 2011-12-15  590 PAL  Excite Truck
    SB4P01 2011-12-15 1328 PAL  Super Mario Galaxy 2
    ROWP08 2011-12-15 4168 PAL  Okami
    SHLPA4 2011-12-15 3616 PAL  Silent Hill: Shattered Memories
    RZJP69 2011-12-15 4222 PAL  Dead Space: Extraction
    R3OP01 2011-12-15 7436 PAL  Metroid: Other M
    RSBP01 2011-12-15 6908 PAL  Super Smash Bros. Brawl
    RQ6XKM 2011-12-15 3894 RF   Cursed Mountain
    SX4P01 2011-12-15 6464 PAL  Xenoblade Chronicles
    SMNP01 2011-12-15  358 PAL  New Super Mario Bros. Wii
    SF8P01 2011-12-15 3408 PAL  Donkey Kong Country Returns
    SJBP52 2011-12-15 4062 PAL  GoldenEye 007
    SPXP41 2011-12-15 3644 PAL  Prince of Persia: The Forgotten Sands
    R8PP01 2011-12-15  424 PAL  Super Paper Mario
    RSMP8P 2011-12-15 1078 PAL  Super Monkey Ball: Banana Blitz
    R4EP01 2011-12-15 1026 PAL  Endless Ocean 2: Adventures of the Deep
    RTZP08 2011-12-15 1990 PAL  Zack & Wiki: Quest For Barbaros' Treasure
    SNCP8P 2011-12-15 3764 PAL  Sonic Colours
    RYBP69 2011-12-15 1248 PAL  Boom Blox: Bash Party
    SBLE5G 2011-12-15 1104 NTSC A Boy and His Blob
    RLRP4F 2011-12-15 3172 PAL  Tomb Raider: Anniversary
    SOUP01 2011-12-15 4174 PAL  The Legend of Zelda: Skyward Sword
    RB7P54 2011-12-15 3382 PAL  Bully: Scholarship Edition
    RD2X41 2011-12-15 3042 RF   Red Steel 2
    RZTP01 2011-12-15  838 PAL  Wii Sports Resort
    RGLP7D 2011-12-15  364 PAL  Geometry Wars: Galaxies
    SOJP41 2011-12-15 3524 PAL  Rayman Origins
    RKDP01 2011-12-15 1346 PAL  Trauma Center: Second Opinion
    R2VP01 2012-01-03  964 PAL  Sin and Punishment: Successor of the Skies
    RHOP8P 2012-01-03 3920 PAL  The House of The Dead: Overkill
    SBDP08 2012-01-03 3816 PAL  Resident Evil: The Darkside Chronicles
    SC2P8P 2012-01-03 4078 PAL  Conduit 2
    SVTEXS 2011-09-18  880 NTSC Bit.Trip Complete
    RMCP01 2011-12-18 2648 PAL  Mario Kart Wii
    SC7P52 2011-12-25 4178 PAL  Call of Duty: Black Ops
    RUUP01 2011-12-19  342 PAL  Animal Crossing: Let's Go to the City
    ----------------------------------------------------------------------
    Total: 39/214 discs, 112424 MiB ~ 110 GiB used, 2044 MiB ~ 2 GiB free.
    Attempting to verify Super Smash Bros. Brawl, ID6 RSBP01, appears to be where the segmentation fault error occurs. However this game appears to play perfectly.
     
  2. Wiimm

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,052
    Location:
    Germany
    Country:
    Germany
    I bet it is a bad dump of "RSBP01 2011-12-15 6908 PAL Super Smash Bros. Brawl"!!

    If I'll send you a debug+tracing version of wwt, will you repeat the operation and send me the log file back?

    You can also make the debug version by yourself: make debug all
    It will generate a file named "_trace-wwt.tmp" in the current working directory.
     
  3. cthulhu
    OP

    Newcomer cthulhu Member

    Joined:
    Nov 28, 2011
    Messages:
    17
    Country:
    New Zealand
    Ok, built the debug version, then did wwt verify RSBP01 -A. I've got a 133,091 byte file named _trace-wwt.tmp to send to you. Where do you want me to send it?
     
  4. cthulhu
    OP

    Newcomer cthulhu Member

    Joined:
    Nov 28, 2011
    Messages:
    17
    Country:
    New Zealand
    Ok, sent _trace-wwt.tmp to you. BTW, here is the output of wit verify Super_Smash_Bros._Brawl.iso. The Super_Smash_Bros._Brawl.iso file is identical to what is on my WBFS volume. As you can see, it verifies ok with no segmentation fault but wit gives errors regarding missing partitions.

    Code:
    *****  wit: Wiimms ISO Tool v2.00b r2855 cygwin - Dirk Clemens - 2011-07-13  *****
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1928
    !!	  Partition 0x50384148 ["HA8P"]: End of data (1daff0000) behind end of
    !!	  file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x50394148 ["HA9P"]: Offset of TICKET (1daff0000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x50414248 ["HBAP"]: Offset of TICKET (1dbaa0000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x46424248 ["HBBF"]: Offset of TICKET (1dc570000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x50424248 ["HBBP"]: Offset of TICKET (1dd0e0000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x50434248 ["HBCP"]: Offset of TICKET (1ddc50000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x50444248 ["HBDP"]: Offset of TICKET (1de720000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x50454248 ["HBEP"]: Offset of TICKET (1df1d0000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x50464248 ["HBFP"]: Offset of TICKET (1dfcc0000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x50474248 ["HBGP"]: Offset of TICKET (1e08b0000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x50494248 ["HBIP"]: Offset of TICKET (1e1490000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x504b4248 ["HBKP"]: Offset of TICKET (1e2490000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    !! wit: ERROR #14 [INVALID WII PARTITION] in wd_check_part_offset() @ src/libwbfs/wiidisc.c#1917
    !!	  Partition 0x504c4248 ["HBLP"]: Offset of TICKET (1e5d40000) behind end
    !!	  of file (1da600000): Super_Smash_Bros._Brawl.iso
    +OK	 .0  DATA    RSBP01 Super_Smash_Bros._Brawl.iso
    
     
  5. PsyBlade

    Member PsyBlade Snake Charmer

    Joined:
    Jul 30, 2009
    Messages:
    2,204
    Location:
    Sol III
    Country:
    Germany
    wild guess:
    failed unchecked malloc
     
  6. Wiimm

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,052
    Location:
    Germany
    Country:
    Germany
    There are no unchecked mallocs (protection implemented).

    The problem is an uncomplete dump. All partitions of the second table were ignored on dumping, but the table is still there with invalid pointers. And the I have forgotten to implement one specific guard --> crash.

    The data partition is ok.
    Perhaps this command may "repair" it: wit edit --psel data Super_Smash_Bros._Brawl.iso
     
  7. cthulhu
    OP

    Newcomer cthulhu Member

    Joined:
    Nov 28, 2011
    Messages:
    17
    Country:
    New Zealand
    Thanks, but I'm really only interested in WWT verifying the game/data partition as ok (but mentioning the missing partitions) on my WBFS volume when wwt verify -A --include RSBP01 is performed, or at least skipping over RSBP01 and continuing on to verify the rest of the WBFS volume(s) when wwt verify -A is performed.
     
  8. Wiimm

    Member Wiimm Developer

    Joined:
    Aug 11, 2009
    Messages:
    2,052
    Location:
    Germany
    Country:
    Germany
    Technical you have a bad dump of ssbb.
    --psel data selects the data partition only.
    --psel t0 (table 0) will exclude only the extra partitions on ssbb only.
     
  9. cthulhu
    OP

    Newcomer cthulhu Member

    Joined:
    Nov 28, 2011
    Messages:
    17
    Country:
    New Zealand
    Only the partition table is bad. This is a minor issue which should not cause WWT to choke. Are you going to fix this?
     

Share This Page