[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#557771: *** stack smashing detected ***: /usr/bin/perl terminated



Hello!

On Sun, Dec 27, 2009 at 11:44:43PM +0100, I wrote:
> On Fri, Dec 25, 2009 at 03:26:05PM +0200, Niko Tyni wrote:
> > Looks rather like a problem with the Storable module, but it's hard to say
> > more without a test case.
> 
> That's what I thought, too, but I now bisected this down to perlmagick
> being installed vs. not being installed.  Involving Pino Toscano who
> recently did some imagemagick patching
> (cf. <http://bugs.debian.org/551017>) -- Pino, please note that I'm not
> saying that you're responsible for this perlmagick breakage which we're
> discussing in <http://bugs.debian.org/557771>, but perhaps you have an
> idea / know how to run some testing / etc.
> 
> Unfortunately I can't locate an installable older version of perlmagick
> et al. on snapshot.debian.net, but installed vs. not installed is
> confirmed on three different (Hurd) systems.

I'm currently building imagemagick 6.2.4.5.dfsg1-2 (which I think was the
latest version built for GNU/Hurd?) in the current Perl environment.


> > Please note that the perl test suite doesn't pass on hurd yet AFAIK, so
> > it's possible this is just a consequence of unimplemented or unfinished
> > functionality. Reproducing the bug on another port would eliminate that.

Trying to run the perlmagick demos:

    $ rsync -a /usr/share/doc/perlmagick/examples/demo/ perlmagick-demos/
    $ cd perlmagick-demos/
    $ gunzip demo.pl
    $ make
    perl demo.pl
    *** stack smashing detected ***: perl terminated
    make: *** [all] Aborted

This is not reproducible on i386 Linux.

Reducing further:

    $ perl -e 'use Image::Magick;'
    *** stack smashing detected ***: perl terminated
    Aborted

    #0  __stack_chk_fail () at stack_chk_fail.c:29
    No locals.
    #1  0x08073e11 in Perl_newATTRSUB (my_perl=0x82b7fe8, floor=27, o=0x82b8940, proto=0x0, attrs=0x0, block=0x82b8920) at op.c:5843
            aname = 0x0
            gv = 0x82fdca8
            ps = 0x0
            ps_len = 24
            cv = 0x82fdc28
            const_sv = <value optimized out>
            gv_fetch_flags = 2
            name = 0x830171c "BEGIN"
            __PRETTY_FUNCTION__ = "Perl_newATTRSUB"
    #2  0x08072e90 in Perl_utilize (my_perl=0x82b7fe8, aver=1, floor=27, version=0x0, idop=0x82b8740, arg=0x0) at op.c:3878
            pack = 0x82b8760
            imop = <value optimized out>
            veop = 0x0
    #3  0x080c0ed4 in Perl_yyparse (my_perl=0x82b7fe8) at perly.y:659
            yystate = 375
            yyn = 80
            yyresult = <value optimized out>
            yytoken = 14
            parser = 0x82f8608
            ps = 0x83018bc
            yyval = {ival = 1, pval = 0x1 <Address 0x1 out of bounds>, opval = 0x1, gvval = 0x1, p_tkval = 0x1 <Address 0x1 out of bounds>, 
              i_tkval = 1}
    #4  0x08080cc4 in S_parse_body (my_perl=0x82b7fe8, env=0x0, xsinit=0x8060aa0 <xs_init>) at perl.c:2274
            rsfp = 0x82f8018
            argc = 1
            argv = 0x15ffc10
            scriptname = 0x823616f "/dev/null"
            dosearch = 0 '\000'
            sv = 0x82db8d8
            c = <value optimized out>
            cddir = 0x0
            linestr_sv = 0x82db8c8
            add_read_e_script = 1 '\001'
            __PRETTY_FUNCTION__ = "S_parse_body"
    #5  0x08082914 in perl_parse (my_perl=0x82b7fe8, xsinit=0x8060aa0 <xs_init>, argc=3, argv=0x15ffc08, env=0x0) at perl.c:1687
            oldscope = 1
            ret = 0
            cur_env = {je_prev = 0x82b819c, je_buf = {{__jmpbuf = {40, 1, 3, 23067496, 23067408, 134751448}, __mask_was_saved = 0, 
                  __saved_mask = 137063936}}, je_ret = 0, je_mustcatch = 0 '\000'}
            __PRETTY_FUNCTION__ = "perl_parse"
    #6  0x08060a42 in main (argc=3, argv=0x15ffc08, env=0x15ffc18) at perlmain.c:115
            exitstatus = <value optimized out>


Enough for today; good night.

Regards,
 Thomas

Attachment: signature.asc
Description: Digital signature


Reply to: