* Bug in zsh 3.0.8 @ 2000-12-13 14:14 Nadav Har'El 2000-12-13 15:38 ` Bart Schaefer 2000-12-13 15:46 ` Bart Schaefer 0 siblings, 2 replies; 5+ messages in thread From: Nadav Har'El @ 2000-12-13 14:14 UTC (permalink / raw) To: zsh-workers I found the following bug in zsh 3.0.8 (I don't know if it exists in the latest beta version, since i don't have it): /home/nyh$ cat /tmp/z.z echo $ZSH_VERSION let 'a[3]=2' let 'a[3]=2' /home/nyh$ zsh /tmp/z.z 3.0.8 zsh: segmentation fault zsh /tmp/z.z I don't know what's wrong: had an array already been defined, stuff like let 'a[3]++' works. So why can't let 'a[3]=2' work? Strangely, the first let command doesn't crash (but it doesn't set a[3]!), and only the second one crashes zsh. Thanks, Nadav. -- Nadav Har'El | Wednesday, Dec 13 2000, 16 Kislev 5761 nyh@math.technion.ac.il |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |If Windows is the answer, you didn't http://nadav.harel.org.il |understand the question. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in zsh 3.0.8 2000-12-13 14:14 Bug in zsh 3.0.8 Nadav Har'El @ 2000-12-13 15:38 ` Bart Schaefer 2000-12-13 15:49 ` Nadav Har'El 2000-12-13 15:46 ` Bart Schaefer 1 sibling, 1 reply; 5+ messages in thread From: Bart Schaefer @ 2000-12-13 15:38 UTC (permalink / raw) To: Nadav Har'El, zsh-workers On Dec 13, 4:14pm, Nadav Har'El wrote: } } /home/nyh$ cat /tmp/z.z } echo $ZSH_VERSION } let 'a[3]=2' } let 'a[3]=2' } /home/nyh$ zsh /tmp/z.z } 3.0.8 } zsh: segmentation fault zsh /tmp/z.z I can't reproduce the crash here. Further, a[3] gets set to 2 for me. Does it happen to you with "zsh -f /tmp/z.z"? If not, we need to know what your startup files are changing. Can you generate a stack trace, e.g. with gdb or dbx, and send it to us? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in zsh 3.0.8 2000-12-13 15:38 ` Bart Schaefer @ 2000-12-13 15:49 ` Nadav Har'El 0 siblings, 0 replies; 5+ messages in thread From: Nadav Har'El @ 2000-12-13 15:49 UTC (permalink / raw) To: Bart Schaefer; +Cc: zsh-workers On Wed, Dec 13, 2000, Bart Schaefer wrote about "Re: Bug in zsh 3.0.8": > On Dec 13, 4:14pm, Nadav Har'El wrote: > } > } /home/nyh$ cat /tmp/z.z > } echo $ZSH_VERSION > } let 'a[3]=2' > } let 'a[3]=2' > } /home/nyh$ zsh /tmp/z.z > } 3.0.8 > } zsh: segmentation fault zsh /tmp/z.z > > I can't reproduce the crash here. Further, a[3] gets set to 2 for me. > > Does it happen to you with "zsh -f /tmp/z.z"? If not, we need to know > what your startup files are changing. It also happens with zsh -f. My system is Redhat 7.0, with the vanilla zsh: /home/nyh$ uname -a Linux tigger.haifa.radware.co.il 2.2.16-22 #2 Wed Oct 4 10:49:01 IDT 2000 i686 unknown /home/nyh$ rpm -qf /bin/zsh zsh-3.0.8-3 > > Can you generate a stack trace, e.g. with gdb or dbx, and send it to us? I'll try to compile zsh from sources to get a good stack-trace. So far I only managed to get it from a non-stripped but non-"-g" binary I had lying around, and got the following: (gdb) r -f /tmp/z.z Starting program: /usr/local/bin/zsh -f /tmp/z.z 3.0.8 Program received signal SIGSEGV, Segmentation fault. 0x806e0a5 in setiparam () (gdb) where #0 0x806e0a5 in setiparam () #1 0x806a05d in setvar () #2 0x806b45f in op () #3 0x806b95f in mathparse () #4 0x806b60d in mathevall () #5 0x806b72f in matheval () #6 0x8054129 in bin_let () #7 0x804aa23 in execbuiltin () #8 0x80588a5 in execcmd () #9 0x8056930 in execpline2 () #10 0x80560d6 in execpline () #11 0x8055d33 in execlist () #12 0x8062f6c in loop () #13 0x8062ddc in main () #14 0x4005ae51 in __libc_start_main (main=0x8062cc0 <main>, argc=3, ubp_av=0xbffffa44, init=0x8049ad4 <_init>, fini=0x809014c <_fini>, rtld_fini=0x4000e264 <_dl_fini>, stack_end=0xbffffa3c) at ../sysdeps/generic/libc-start.c:111 If this is not enough information, I can compile it again with -g and send you more information (and/or try to debug it myself). Thanks! Nadav. -- Nadav Har'El | Wednesday, Dec 13 2000, 16 Kislev 5761 nyh@math.technion.ac.il |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |Computers are like air conditioners. http://nadav.harel.org.il |Both stop working if you open windows. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in zsh 3.0.8 2000-12-13 14:14 Bug in zsh 3.0.8 Nadav Har'El 2000-12-13 15:38 ` Bart Schaefer @ 2000-12-13 15:46 ` Bart Schaefer 2000-12-13 15:52 ` Nadav Har'El 1 sibling, 1 reply; 5+ messages in thread From: Bart Schaefer @ 2000-12-13 15:46 UTC (permalink / raw) To: Nadav Har'El, zsh-workers On Dec 13, 4:14pm, Nadav Har'El wrote: } } /home/nyh$ cat /tmp/z.z } echo $ZSH_VERSION } let 'a[3]=2' } let 'a[3]=2' } /home/nyh$ zsh /tmp/z.z } 3.0.8 } zsh: segmentation fault zsh /tmp/z.z My mind is slipping. There's a patch for this bug on SourceForge; go to http://sourceforge.net/patch/?group_id=4068 for the complete list of 3.0.8 patches. The specific patch in question is: http://sourceforge.net/patch/?func=detailpatch&patch_id=100721&group_id=4068 -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug in zsh 3.0.8 2000-12-13 15:46 ` Bart Schaefer @ 2000-12-13 15:52 ` Nadav Har'El 0 siblings, 0 replies; 5+ messages in thread From: Nadav Har'El @ 2000-12-13 15:52 UTC (permalink / raw) To: Bart Schaefer; +Cc: zsh-workers On Wed, Dec 13, 2000, Bart Schaefer wrote about "Re: Bug in zsh 3.0.8": > My mind is slipping. There's a patch for this bug on SourceForge; go to > > http://sourceforge.net/patch/?group_id=4068 Thanks. Sorry for the mess... -- Nadav Har'El | Wednesday, Dec 13 2000, 16 Kislev 5761 nyh@math.technion.ac.il |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |The person who knows how to laugh at http://nadav.harel.org.il |himself will never cease to be amused. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-12-13 15:52 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2000-12-13 14:14 Bug in zsh 3.0.8 Nadav Har'El 2000-12-13 15:38 ` Bart Schaefer 2000-12-13 15:49 ` Nadav Har'El 2000-12-13 15:46 ` Bart Schaefer 2000-12-13 15:52 ` Nadav Har'El
Code repositories for project(s) associated with this public inbox https://git.vuxu.org/mirror/zsh/ This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).