zsh-workers
 help / color / mirror / code / Atom feed
* instant core dump with latest CVS
@ 2001-07-30 14:53 Adam Spiers
  2001-07-31  9:43 ` Sven Wischnowsky
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Spiers @ 2001-07-30 14:53 UTC (permalink / raw)
  To: zsh workers mailing list

My newly-compiled zsh core-dumps as soon as you run it.  With -x:

  +/nfs-home/adams/.zshrc:269> promptinit
  +promptinit:9> prompt_themes=( )
  +promptinit:10> typeset -gU prompt_themes
  +promptinit:11> typeset -g prompt_theme
  +promptinit:192> [[ -o kshautoload ]]
  +promptinit:192> promptinit
  +promptinit:1> emulate -L zsh
  +promptinit:2> setopt extendedglob
  +promptinit:3> local ppath= name theme
  zsh: 15701 segmentation fault (core dumped)  ~/local/bin/zsh -x

Here's the lengthy stack trace; hopefully it will be enough to track
it down.

#0  0x400e318f in strlen (str=0x40292f54 <Address 0x40292f54 out of bounds>)
    at ../sysdeps/i386/strlen.c:27
#1  0x80a903f in dupstring (s=0x40292f54 <Address 0x40292f54 out of bounds>) at string.c:39
#2  0x809d39f in ecgetstr (s=0xbfffe2f0, dup=2, tok=0xbfffdf74) at parse.c:2130
#3  0x809d542 in ecgetlist (s=0xbfffe2f0, num=2860, dup=2, tok=0xbfffdfec) at parse.c:2189
#4  0x8084fbb in execfor (state=0xbfffe2f0, do_exec=0) at loop.c:86
#5  0x8066538 in execcmd (state=0xbfffe2f0, input=0, output=0, how=2, last1=2) at exec.c:2241
#6  0x80631bb in execpline2 (state=0xbfffe2f0, pcode=451, how=2, input=0, output=0, last1=0)
    at exec.c:1192
#7  0x806274f in execpline (state=0xbfffe2f0, slcode=60418, how=2, last1=0) at exec.c:982
#8  0x8062183 in execlist (state=0xbfffe2f0, dont_change_job=1, exiting=0) at exec.c:826
#9  0x8061ea4 in execode (p=0x80e2430, dont_change_job=1, exiting=0) at exec.c:729
#10 0x8069470 in runshfunc (prog=0x80e2430, wrap=0x0, name=0x401a9888 "promptinit")
    at exec.c:3459
#11 0x806926f in doshfunc (name=0x80e2480 "promptinit", prog=0x80e2430, doshargs=0x401a9830,
    flags=0, noreturnval=0) at exec.c:3390
#12 0x8068c38 in execshfunc (shf=0x80e2468, args=0x401a9830) at exec.c:3200
#13 0x8066711 in execcmd (state=0xbfffe740, input=0, output=0, how=18, last1=2)
    at exec.c:2283
#14 0x80631bb in execpline2 (state=0xbfffe740, pcode=12355, how=18, input=0, output=0,
    last1=0) at exec.c:1192
#15 0x806274f in execpline (state=0xbfffe740, slcode=4098, how=18, last1=0) at exec.c:982
#16 0x8062183 in execlist (state=0xbfffe740, dont_change_job=1, exiting=0) at exec.c:826
#17 0x8061ea4 in execode (p=0x80e2370, dont_change_job=1, exiting=0) at exec.c:729
#18 0x8068ce2 in execautofn (state=0xbfffea30, do_exec=0) at exec.c:3228
#19 0x8066538 in execcmd (state=0xbfffea30, input=0, output=0, how=18, last1=2)
    at exec.c:2241
#20 0x80631bb in execpline2 (state=0xbfffea30, pcode=3, how=18, input=0, output=0, last1=0)
    at exec.c:1192
#21 0x806274f in execpline (state=0xbfffea30, slcode=3074, how=18, last1=0) at exec.c:982
#22 0x8062183 in execlist (state=0xbfffea30, dont_change_job=1, exiting=0) at exec.c:826
#23 0x8061ea4 in execode (p=0x80e8c70, dont_change_job=1, exiting=0) at exec.c:729
#24 0x8069470 in runshfunc (prog=0x80e8c70, wrap=0x0, name=0x401a9680 "promptinit")
    at exec.c:3459
#25 0x806926f in doshfunc (name=0x80e2160 "", prog=0x80e8c70, doshargs=0x401a9648,
    flags=8704, noreturnval=0) at exec.c:3390
#26 0x8068c38 in execshfunc (shf=0x80e2130, args=0x401a9648) at exec.c:3200
#27 0x8066711 in execcmd (state=0xbffff160, input=0, output=0, how=2, last1=2) at exec.c:2283
#28 0x80631bb in execpline2 (state=0xbffff160, pcode=17283, how=2, input=0, output=0,
    last1=0) at exec.c:1192
#29 0x806274f in execpline (state=0xbffff160, slcode=3074, how=2, last1=0) at exec.c:982
#30 0x8062183 in execlist (state=0xbffff160, dont_change_job=1, exiting=0) at exec.c:826
#31 0x8086238 in execif (state=0xbffff160, do_exec=0) at loop.c:503
#32 0x8066538 in execcmd (state=0xbffff160, input=0, output=0, how=2, last1=2) at exec.c:2241
#33 0x80631bb in execpline2 (state=0xbffff160, pcode=17027, how=2, input=0, output=0,
    last1=0) at exec.c:1192
#34 0x806274f in execpline (state=0xbffff160, slcode=115714, how=2, last1=0) at exec.c:982
#35 0x8062183 in execlist (state=0xbffff160, dont_change_job=1, exiting=0) at exec.c:826
#36 0x8061ea4 in execode (p=0x80e6040, dont_change_job=1, exiting=0) at exec.c:729
#37 0x807a91b in source (s=0xbffff1e0 "/nfs-home/adams/.zshrc") at init.c:996
#38 0x807ac02 in sourcehome (s=0x80bd7b3 ".zshrc") at init.c:1044
#39 0x807a63d in run_init_scripts () at init.c:908
#40 0x807b4d4 in zsh_main (argc=1, argv=0xbffff424) at init.c:1204
#41 0x8051854 in main (argc=1, argv=0xbffff424) at ./main.c:37
#42 0x4007fb5c in __libc_start_main (main=0x8051840 <main>, argc=1, ubp_av=0xbffff424,
    init=0x8050d50 <_init>, fini=0x80bafe0 <_fini>, rtld_fini=0x4000d634 <_dl_fini>,
    stack_end=0xbffff41c) at ../sysdeps/generic/libc-start.c:129


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: instant core dump with latest CVS
  2001-07-30 14:53 instant core dump with latest CVS Adam Spiers
@ 2001-07-31  9:43 ` Sven Wischnowsky
  2001-08-06 13:43   ` Adam Spiers
  0 siblings, 1 reply; 4+ messages in thread
From: Sven Wischnowsky @ 2001-07-31  9:43 UTC (permalink / raw)
  To: zsh-workers

Adam Spiers wrote:

> My newly-compiled zsh core-dumps as soon as you run it.  With -x:
> 
>   +/nfs-home/adams/.zshrc:269> promptinit
>   +promptinit:9> prompt_themes=( )
>   +promptinit:10> typeset -gU prompt_themes
>   +promptinit:11> typeset -g prompt_theme
>   +promptinit:192> [[ -o kshautoload ]]
>   +promptinit:192> promptinit
>   +promptinit:1> emulate -L zsh
>   +promptinit:2> setopt extendedglob
>   +promptinit:3> local ppath= name theme
>   zsh: 15701 segmentation fault (core dumped)  ~/local/bin/zsh -x

Can't reproduce it.  Is this with an older zwc file, perchance?  We had
15030, changing the way for-loops are stored an inthat line there, there
is a for loop...

And I forgot to make sure the zwc version number got incremented for
15030.


Bye
  Sven


-- 
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: instant core dump with latest CVS
  2001-07-31  9:43 ` Sven Wischnowsky
@ 2001-08-06 13:43   ` Adam Spiers
  2001-08-07  9:05     ` Sven Wischnowsky
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Spiers @ 2001-08-06 13:43 UTC (permalink / raw)
  To: zsh-workers

Sven Wischnowsky (wischnow@informatik.hu-berlin.de) wrote:
> Adam Spiers wrote:
> > My newly-compiled zsh core-dumps as soon as you run it.
> 
> Can't reproduce it.  Is this with an older zwc file, perchance?  We had
> 15030, changing the way for-loops are stored an inthat line there, there
> is a for loop...

That was it, thanks.

> And I forgot to make sure the zwc version number got incremented for
> 15030.

Shouldn't it be incremented now then?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: instant core dump with latest CVS
  2001-08-06 13:43   ` Adam Spiers
@ 2001-08-07  9:05     ` Sven Wischnowsky
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 2001-08-07  9:05 UTC (permalink / raw)
  To: zsh-workers

Adam Spiers wrote:

> ...
> 
> > And I forgot to make sure the zwc version number got incremented for
> > 15030.
> 
> Shouldn't it be incremented now then?

Yes, probably.


Bye
  Sven

Index: Src/parse.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/parse.c,v
retrieving revision 1.29
diff -u -r1.29 parse.c
--- Src/parse.c	2001/07/24 14:17:32	1.29
+++ Src/parse.c	2001/08/07 09:04:46
@@ -2269,8 +2269,8 @@
 #define FD_MINMAP 4096
 
 #define FD_PRELEN 12
-#define FD_MAGIC  0x02030405
-#define FD_OMAGIC 0x05040302
+#define FD_MAGIC  0x03040506
+#define FD_OMAGIC 0x06050403
 
 #define FDF_MAP   1
 #define FDF_OTHER 2

-- 
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-07  9:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-30 14:53 instant core dump with latest CVS Adam Spiers
2001-07-31  9:43 ` Sven Wischnowsky
2001-08-06 13:43   ` Adam Spiers
2001-08-07  9:05     ` Sven Wischnowsky

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).