• Bug#266031: zsh: segmentation fault in malloc

    From Kazuhiro NISHIYAMA@1:229/2 to All on Mon Aug 16 17:30:19 2004
    From: [email protected]

    Package: zsh
    Version: 4.2.0-18
    Followup-For: Bug #266031

    % cat /tmp/a.zsh
    #!/bin/zsh -f
    export PATH=/bin:/usr/bin:/usr/local/bin
    echo start
    for i in {0..10}; do
    PATH=$PATH:$PATH echo $i
    done
    echo done
    % gdb --quiet --args zsh -f /tmp/a.zsh
    (no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".
    (gdb) r
    Starting program: /bin/zsh -f /tmp/a.zsh
    (no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no
    debugging symbols found)...(no debugging symbols found)...start
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    Program received signal SIGSEGV, Segmentation fault.
    0x40115470 in mallopt () from /lib/libc.so.6
    (gdb) bt
    #0 0x40115470 in mallopt () from /lib/libc.so.6
    #1 0x40114ce8 in mallopt () from /lib/libc.so.6
    #2 0x40113ed3 in malloc () from /lib/libc.so.6
    #3 0x08082b86 in zalloc ()
    #4 0x0808eb07 in printparamnode ()
    #5 0x0808ed7c in parse_event ()
    #6 0x00000000 in ?? ()
    #7 0xbffff8f8 in ?? ()
    #8 0x0807371a in loop ()
    Previous frame inner to this frame (corrupt stack?)
    (gdb)

    -- System Information:
    Debian Release: 3.1
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: i386 (i686)
    Kernel: Linux 2.4.25-1-386
    Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP

    Versions of packages zsh depends on:
    ii debconf 1.4.30 Debian configuration management sy ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an ii libcap1 1:1.10-14 support for getting/setting POSIX. ii libncurses5 5.4-4 Shared libraries for terminal hand ii passwd 1:4.0.3-30 Change and administer password and

    -- debconf information:
    zsh/rcmove:


    --
    To UNSUBSCRIBE, email to [email protected]
    with a subject of "unsubscribe". Trouble? Contact [email protected]

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)