bugs.gw.com
Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000049 [tcsh] general crash always 2007-05-10 13:15 2007-07-02 15:56
Reporter Peter Breitenlohner View Status public  
Assigned To Christos Zoulas
Priority normal Resolution fixed  
Status resolved   Product Version 6.15.00
Summary 0000049: tcsh-6.15.00 segfault
Description Attached is a small shell script that works fine with tcsh-6.14.00 but produces a segmentation fault (in the process substitution subshell).
Additional Information
Attached Files  buggy [^] (200 bytes) 2007-05-10 13:15

- Relationships

- Notes
(0000052)
Christos Zoulas
2007-07-02 15:55

Will be fixed in the next version. I believe that the fix is in sh.lex.c:

@@ -851,7 +851,8 @@
            return (en);
        }
        slhs.len = 0;
- Strbuf_append(&slhs, lhsb.s);
+ if (lhsb.s != NULL && lhsb.len != 0)
+ Strbuf_append(&slhs, lhsb.s);
        Strbuf_terminate(&slhs);
        if (exclc)
            en = dosub(sc, en, global);
@@ -1625,7 +1626,7 @@
                return CHAR_ERR;
            feobp += c;
        }
 

- Issue History
Date Modified Username Field Change
2007-05-10 13:15 Peter Breitenlohner New Issue
2007-05-10 13:15 Peter Breitenlohner File Added: buggy
2007-07-02 15:54 Christos Zoulas Status new => assigned
2007-07-02 15:54 Christos Zoulas Assigned To  => Christos Zoulas
2007-07-02 15:55 Christos Zoulas Note Added: 0000052
2007-07-02 15:56 Christos Zoulas Status assigned => resolved
2007-07-02 15:56 Christos Zoulas Resolution open => fixed


Mantis 1.0.6[^]
Copyright © 2000 - 2006 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker