develooper Front page | perl.perl5.porters | Postings from September 2013

Re: [perl #119897] glob in threads is broken in perl5.18

Thread Previous | Thread Next
From:
Niels Thykier
Date:
September 20, 2013 15:58
Subject:
Re: [perl #119897] glob in threads is broken in perl5.18
Message ID:
523C70A3.3010408@thykier.net
On 2013-09-20 17:39, Father Chrysostomos via RT wrote:
> [...]
> 
> Interesting.  Could this be the same as #117823?
> 

To be honest, I am not sure.  When I discovered the issue, I ran a gdb
on it produce a stack trace (see attached file).  From what I can tell,
the stack traces are different (mine involves "op-freeing" vs the
#117823 seems to deal with pp_glob)[0].
  That said, the symptoms and cause look similar[1].  So, I would not be
surprised if a fix for one of these bugs also fixes the other.

~Niels

[0] An extra data point is the assertion triggered.  In the Debian bug
#723805[DebBug], Niko Tyni reported that he could trigger the following
assertion reliably.

debugperl: hv.c:356: Perl_hv_common: Assertion `((svtype)((hv)->sv_flags
& 0xff)) == SVt_PVHV' failed.

But RT#117823 lists:

Glob.xs:232: csh_glob: Assertion `((svtype)((entries)->sv_flags & 0xff))
!= SVt_PVAV' failed.

[1] E.g. both bugs involves calling "glob" from threads.  My original
script also "rarely" (i.e. "once") triggered a bus error rather than a
seg. fault.

[DebBug] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=723805



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About