Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 67530
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Heinrich Wendel (RETIRED) <lanius@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Erik Thiele <erik@thiele-hydraulik.de>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 67530 depends on: Show dependency tree
Bug 67530 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-10-14 04:10 0000
if the TERM environment variable is not set, mc crashes

Reproducible: Always
Steps to Reproduce:
1. start an xterm
2. verify that TERM=xterm
3. start mc, see that it works, stop it again
4. unset TERM
5. verify that TERM=
6. start mc
7. See Segmentation Fault



Expected Results:  
say "i cannot run with dumb terminal"

------- Comment #1 From Heinrich Wendel (RETIRED) 2004-10-23 15:17:26 0000 -------
why should one unset the TERM variable?

------- Comment #2 From Heinrich Wendel (RETIRED) 2004-11-06 07:19:46 0000 -------
why should one unset the TERM variable?

------- Comment #3 From Erik Thiele 2004-11-07 22:07:36 0000 -------
well, it happened by accident that my TERM variable got unset.
but imagine if all programs just crash in case of wrong parameters.
this is not the way to write programs. it's an error and must be fixed.

you should not argue "why should one unset the TERM variable?"

X11 programs also don't just silently crash if the DISPLAY variable is unset.
instead they all display useful error message.

did you report the issue upstream or just silently ignore it??

------- Comment #4 From Heinrich Wendel (RETIRED) 2004-11-08 13:39:35 0000 -------
that's correct indeed, i'll look into reporting it upstream

------- Comment #5 From Heinrich Wendel (RETIRED) 2004-11-17 05:46:54 0000 -------
fixed in -r12

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug