|
|
|
|
|
by kstenerud
1835 days ago
|
|
> In error checks that detect “impossible” conditions, just abort. There is usually no point in printing any message. These checks indicate the existence of bugs. Whoever wants to fix the bugs will have to read the source code and run a debugger. So explain the problem with comments in the source. But then the person RUNNING the program will only see this: Abort trap: 6
And that's all the info you'll get from their bug report.So please ignore this directive and print a descriptive message always, complete with file and line, and the values that led to the impossible situation. Then you can get helpful bug reports like: BUG: flush.c:51: buff_offset (65535) must not be greater than 20!
Abort trap: 6
|
|