tag:blogger.com,1999:blog-6966257.post112164991573961623..comments2024-01-22T18:21:43.981+05:30Comments on My musings, opinions and what have you: Smash stack attack!Ajayhttp://www.blogger.com/profile/04768897856311669412noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6966257.post-1121750373899667722005-07-19T10:49:00.000+05:302005-07-19T10:49:00.000+05:30Sumeet, talk of code obfuscation :-). Potentially ...Sumeet, talk of code obfuscation :-). Potentially very dicey, esp. if some unexpected guy turns up for the presentation or something.<BR/><BR/>Alhad, your example kind of re-inforces my point. Real programming is slightly different compared to assignments at school - you are likely to reach limits sooner than you think, and when there are other people coding other modules along with you, losing a 'handle' on the amount of resources you have is quite easy.Ajayhttps://www.blogger.com/profile/04768897856311669412noreply@blogger.comtag:blogger.com,1999:blog-6966257.post-1121726787571242052005-07-19T04:16:00.000+05:302005-07-19T04:16:00.000+05:30These things happen. I spent the better part of 3 ...These things happen. I spent the better part of 3 days debugging an issue where after a certain sequence of operations led to a data abort.<BR/> If you are working on ARM, you can see the contents of a particular register (R14) to look at the physical address. Then you can subtract 8 from that address and you have the physical address of the instruction which aborted.<BR/> Yet, everything seemed fine with that instruction.. after trying everything, finally came up the solution: we were running out of filehandles in the system!! (Its an embedded device, it only has about 50-60 max file handles allowed). Lesson to be learnt here: Look at error codes for file handles (there is a special error code that gets returned when the system runs out of filehandles, and the API was eating it up - it was not passing enough detail to the application to know what happened). <BR/> Shit happens, the only problem being that worse shit also happens :-)alhadhttps://www.blogger.com/profile/04552801002021625466noreply@blogger.com