Hacking [NTR] Need pairs of eyes to help me figure out why fixing code warnings causes NTR CFW to not boot

delete12345

Well-Known Member
OP
Member
Joined
Feb 27, 2010
Messages
695
Trophies
1
Age
32
Location
Taipei, Taiwan
XP
1,290
Country
United States
Currently working off from this git commit for NTR here:

https://github.com/44670/NTR/tree/02a748eac5758971b64548b45e5701be38b329a1

Things I did:
  • I worked on the git branch "goodbye_warnings", with the goal of removing all GCC reported C warnings during compilation.
  • I do not know how to thoroughly test the builds I did. I do not know exactly what to test for when building NTR with my merged changes.
  • I did test, but I only made sure the code is correctly typecasted explicitly, unused variables are either removed or commented away, return statements are correctly returning the right values, or return NULL on weird return statements where it's just returning VOID on functions expecting return values, and other minor fixes to make GCC happy without complaining a single warning/error.
  • I could not figure out why removing these warnings cause NTR to fail to boot. This was reported to me by someone who also worked on NTR and was attempting to test their codes with and without the GCC warning spams during compilation. In the end, they went with the NTR git commit without my "goodbye_warnings" merges.
  • I have looked into this matter for a while, but I gave up. I wasn't able to pinpoint the cause, and know what or why, and I even had self-doubts that I don't even have proper debugging tools at all to work on the issue. Right now, there is a time gap of more than 1 year.

Why I wanted a set of fresh eyes on my merged changes:
  • I'm motivated to try and fix up what I have caused to NTR.
  • But because I don't have any clues, I need help to look and determine if any of my C warnings fixes and changes have somehow caused an issue I was not aware of.
  • I don't know where to go from and to at this point.

Let me know if there is anything. Or rather, what is it that I can look for, and in what direction, so I can narrow down the scope of finding where the issue is at?
 
Last edited by delete12345,

PabloMK7

Red Yoshi! ^ω^
Developer
Joined
Feb 21, 2014
Messages
2,616
Trophies
2
Age
24
Location
Yoshi's Island
XP
5,178
Country
Spain
Keep in mind that NTR messes a lot with memory and has to do a lot of hacky stuff to inject itself in other processes. So be careful when removing unused variables as they may actually be used. (Try compiling without removing any unused variables)
 
  • Like
Reactions: Itzumi

delete12345

Well-Known Member
OP
Member
Joined
Feb 27, 2010
Messages
695
Trophies
1
Age
32
Location
Taipei, Taiwan
XP
1,290
Country
United States
Keep in mind that NTR messes a lot with memory and has to do a lot of hacky stuff to inject itself in other processes. So be careful when removing unused variables as they may actually be used. (Try compiling without removing any unused variables)
Ohhh, well darn. I removed them before it was merged into the main branch. The removed variables were previously allocated on the stack (as in, they are locally scoped), and they are not marked as static nor volatile.

Maybe there might be something else I didn't knew about. Thanks.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Yea is sad. His 2 movies were good. Informative about our food industry.
  • BigOnYa @ BigOnYa:
    This was one of the craziest movies I've seen about our food industry, lots of stuff I didn't know. A must see. https://youtu.be/OqzjC-ENrl8?si=GYxmdY5nShzGniVi
  • OctoAori20 @ OctoAori20:
    Oh, that dude?
  • OctoAori20 @ OctoAori20:
    I stopped believing or caring about that dude when I found out about some of the more questionable nonsense he did in his life.
  • BigOnYa @ BigOnYa:
    Like what? I didn't know or hear.
  • K3Nv2 @ K3Nv2:
    You mean like every famous person that ever existed
    +1
  • K3Nv2 @ K3Nv2:
    I get so tired of hearing oh I liked him until...
  • OctoAori20 @ OctoAori20:
    I just know dude was a chronic alcoholic and such.
  • BigOnYa @ BigOnYa:
    I've been to his chicken restaurant he started in his 2nd movie, Holy Chicken, was pretty good. It is only 15-20 miles from me in Ohio. It only lasted 1 yr or so then closed tho.
  • OctoAori20 @ OctoAori20:
    There are very few people I just have just an immense dislike of and he's one of those very few people, the only other example is Gene Simmons. My musician uncle on my mother's side of the family actually met Gene once during some event and said he was the most unpleasant person to be around.
  • K3Nv2 @ K3Nv2:
    I met myself once turns out that guy is a giant piece of shit that doesn't deserve any of my respect
  • BigOnYa @ BigOnYa:
    Damn alcoholics! (Sshhh- Opens another beer)
  • OctoAori20 @ OctoAori20:
    Agreed, Ken
  • OctoAori20 @ OctoAori20:
    I can't say I've ever tried even a sip of beer tbh-
  • K3Nv2 @ K3Nv2:
    You met yourself also and is a giant piece of shit?
    +1
  • OctoAori20 @ OctoAori20:
    Then again, I don't think I'd really enjoy it //shrug
  • OctoAori20 @ OctoAori20:
    I'm sure it's an acquired taste :P
  • K3Nv2 @ K3Nv2:
    Poor lad can never enjoy the amazing taste of four loko
    +1
  • BigOnYa @ BigOnYa:
    Root beer is a gateway drink, don't ever try it either.
  • K3Nv2 @ K3Nv2:
    @BigOnYa, don't you love how smooth MD20 is
  • BigOnYa @ BigOnYa:
    Mad dog 20 20? Oh yea fixed the typo. I haven't seen that or had forever. Do they still make it?
  • K3Nv2 @ K3Nv2:
    I think it's why I'm alive
    +1
  • BigOnYa @ BigOnYa:
    What happens if when playing Paper Mario, you start a fire in-game?
    K3Nv2 @ K3Nv2: https://youtu.be/vja8uoOy5XE?si=d2qo7jYK9TiyaOZ2 +1