[Bug 903440] New: Calendar "cal" crash with segmentation fault when execute in background

http://bugzilla.opensuse.org/show_bug.cgi?id=903440 Bug ID: 903440 Summary: Calendar "cal" crash with segmentation fault when execute in background Classification: openSUSE Product: openSUSE 13.1 Version: Final Hardware: x86-64 OS: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: cesar.inacio.martins@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:33.0) Gecko/20100101 Firefox/33.0 Build Identifier: When execute the command "cal" (linux-utils RPM) in background it crash with "segmentation fault" , no matter if they output is redirect to a file or not. Reproducible: Always Steps to Reproduce: 1. echo 'cal > /tmp/test.cal' | at now Actual Results: At your mail will get : sh: line 71: 17485 Segmentation fault cal > /tmp/test.cal and the /tmp/test.cal will be created but in blank Expected Results: The regular output : # cal October 2014 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=903440 Cesar Martins <cesar.inacio.martins@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |calendar Found By|--- |Other -- You are receiving this mail because: You are on the CC list for the bug.

http://bugzilla.opensuse.org/show_bug.cgi?id=903440 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED CC| |bwiedemann@suse.com, | |werner@suse.com Assignee|bnc-team-screening@forge.pr |sbrabec@suse.com |ovo.novell.com | --- Comment #1 from Bernhard Wiedemann <bwiedemann@suse.com> --- possibly caused by the lack of a terminal which would be used by ncurses to get sizes I got a core file with echo 'cd /tmp;ulimit -c unlimited;cal > /tmp/test.cal' | at now Program terminated with signal SIGSEGV, Segmentation fault. #0 0x00007fe9fc4fddde in tputs_sp (sp=0x0, string=string@entry=0x7fff78b01db0 " November 2014 ", affcnt=affcnt@entry=1, outc=outc@entry=0x7fe9fc4fda70 <_nc_putchar_sp>) at ../ncurses/tinfo/lib_tputs.c:295 (gdb) bt #0 0x00007fe9fc4fddde in tputs_sp (sp=0x0, string=string@entry=0x7fff78b01db0 " November 2014 ", affcnt=affcnt@entry=1, outc=outc@entry=0x7fe9fc4fda70 <_nc_putchar_sp>) at ../ncurses/tinfo/lib_tputs.c:295 #1 0x00007fe9fc4fe171 in putp_sp (sp=<optimized out>, string=string@entry=0x7fff78b01db0 " November 2014 ") at ../ncurses/tinfo/lib_tputs.c:208 #2 0x00007fe9fc4fe192 in putp ( string=string@entry=0x7fff78b01db0 " November 2014 ") at ../ncurses/tinfo/lib_tputs.c:216 #3 0x000000000040298c in my_putstring ( s=0x7fff78b01db0 " November 2014 ") at misc-utils/cal.c:91 #4 center (str=str@entry=0x7fff78b01f10 "November 2014", len=<optimized out>, separate=0) at misc-utils/cal.c:911 #5 0x000000000040304d in cal_output_header (month=month@entry=0x7fff78b020a0, ctl=0x609280 <ctl>) at misc-utils/cal.c:614 #6 0x0000000000402489 in monthly (ctl=0x609280 <ctl>) at misc-utils/cal.c:709 #7 main (argc=<optimized out>, argv=<optimized out>) at misc-utils/cal.c:478 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com