I'm one of the regulars that answers questions in the assembly tag and the x86-related tags. Yesterday a question was asked about assembly code and a BUS ERROR on OS X. A couple of us knew the real issue (program didn't properly terminate), but important to me as well was that using a debugger would have helped track down the issue.
The now deleted answer by a 50k rep user was given, and I believe it was accepted almost immediately by the original poster. The answer had 4 bullet points and appeared as:
A few suggestions:
Consider using the Gnu Assembler (which comes with XCode), instead of NASM:
https://developer.apple.com/library/mac/technotes/tn2124/_index.html
Alternatively, consider getting SASM:
Definitely take a look at Jonathan Barlett's Most Excellent "Programming from the Ground Up". It's available free on-line:
Finally, I'm not sure where your "bus error" is coming from. But a debugger would tell you :)
One may argue that the 3 bullet points are opinionated, and possibly off topic. I would agree that these links weren't necessary, but the third point is actually reasonable for this answer if you want to direct someone to material about developing in assembly.
The bullet points were not all of the answer. Most importantly the answer addresses the BUS ERROR. It doesn't state what is causing it, but definitely directs the OP to a proper course of action - "Use a debugger".
I downvoted the original answer but never flagged it for moderation. My downvote was related to possibly not doing enough to suggest what the root cause was. It was my opinion that this answer was more than salvageable so I left a comment about the actual source of the BUS ERROR that one would have recognized in a debugger. Had they added that bit of information I would have retracted the downvote.
In my opinion:
- this was an answer, but maybe lacking detail. It directed the user to find the solution using a proper tool (debugger)
- wasn't a link only answer
- wasn't VLQ
After it was deleted I proposed my own answer, discussing the usage of a debugger, provided a link to a debugger tutorial for the OPs platform and discussed how to fix the Bus Error.
A number of hours later the person reposted his answer again (I don't really blame him). A discussion under the duplicate answer ensued where one of the original downvoters admitted that upon reflection they maybe shouldn't have downvoted. I decided to flag the deleted answer for moderation saying this:
This deletion has me a bit perplexed. This was originally an accepted answer with many downvotes. The comments suggested some downvoted because it may not have been a particularly on point answer (it is an answer, but not necessarily one that answers the question as posed). My opinion is that this should never have been deleted since the answer isn't entirely bad (and it is an answer IMHO). I don't think it is necessarily fair that it lost its accepted answer status in the process either.
The response:
declined - As pointed out in the comments, this isn't actually an answer. It doesn't say how to fix the user's issue in the answer itself (even if it is an XY problem) and is no more than a link collection.
The response makes me think the person reviewing the answer may have been swayed more by the commenters dissenting than the entirety of what was in the answer. Had it not been for mentioning the BUS ERROR and using a debugger, I may have agreed. The very last paragraph IMHO is an answer, and may simply have needed some additional information which I had hoped would be the case when I commented with:
The bus error is because the program isn't properly terminated with an exit syscall so it started executing whatever was in memory after the last instruction which resulted in a fault (in this case a bus error)
Had he simply added that the OPs BUS ERROR may have been because there was no proper exit back to the system then it would have been a reasonable answer. To say how to exit would make it a very good answer.
Questions: Is this an answer? Should it have been deleted?