Skip Menu |
 

This queue is for tickets about the Devel-Declare CPAN distribution.

Report information
The Basics
Id: 75134
Status: resolved
Priority: 0/
Queue: Devel-Declare

People
Owner: Nobody in particular
Requestors: ioanr [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.006010
Fixed in: (no value)



Subject: Segfault with clang -O2
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1433
Download (untitled) / with headers
text/plain 1.3k
I'm using perlbrew with clang compiler and perl 5.14.2. Using the default build options causes Devel::Declare to segfault. Setting "OPTIMIZE = -O0" in the Makefile works fine. $ clang -v Debian clang version 3.0-5 (tags/RELEASE_30/final) (based on LLVM 3.0) Target: x86_64-pc-linux-gnu Thread model: posix Relevant test output: Failed 2/2 subtests Signal SEGV at /home/ioan/perl5/perlbrew/perls/perl- 5.14.2/lib/5.14.2/perl5db.pl line 7684. DB::diesignal('SEGV') called at t/debug.pl line 29 eval {...} called at t/debug.pl line 29 t/filter1.t .................... gdb (Devel::Declare compiled with with -g) (gdb) run Starting program: /home/ioan/perl5/perlbrew/perls/perl-5.14.2/bin/perl - Iblib/lib t/debug.pl [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. 0x000000000043ed5b in Perl_filter_read () (gdb) bt #0 0x000000000043ed5b in Perl_filter_read () #1 0x00007ffff6480810 in dd_filter_realloc (my_perl=<optimized out>, idx=<optimized out>, sv=0x783d28, maxlen=0) at /home/ioan/Downloads/Devel-Declare-0.006010/Declare.xs:403 #2 0x000000000043dd75 in Perl_lex_next_chunk () #3 0x000000000044314c in Perl_yylex () #4 0x000000000045bc44 in Perl_yyparse () #5 0x0000000000433a97 in perl_parse () #6 0x000000000041cad0 in main ()
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/html; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10815-1329657067-1887.75134-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 231
More info about my environment here, if you need it:

http://www.cpantesters.org/cpan/report/b9cb0908-51ee-11e1-81e0-b57f887bd19e
From zefram [...] fysh.org Wed Feb 22 12: 19:01 2012
MIME-Version: 1.0
X-Spam-Status: No, score=-3.847 tagged_above=-99.9 required=10 tests=[AWL=-1.947, BAYES_00=-1.9] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-10809-1329656801-1727.75134-4-0 [...] rt.cpan.org>
Content-Disposition: inline
X-Spam-Flag: NO
References: <RT-Ticket-75134 [...] rt.cpan.org> <rt-3.8.HEAD-10809-1329656801-1727.75134-4-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <20120222171840.GM16139 [...] lake.fysh.org>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -3.847
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 7EEF424180A for <cpan-bug+Devel-Declare [...] hipster.bestpractical.com>; Wed, 22 Feb 2012 12:19:01 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RNwz6H1aG79h for <cpan-bug+Devel-Declare [...] hipster.bestpractical.com>; Wed, 22 Feb 2012 12:18:57 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id AE46124183D for <bug-Devel-Declare [...] rt.cpan.org>; Wed, 22 Feb 2012 12:18:56 -0500 (EST)
Received: (qmail 24338 invoked by uid 103); 22 Feb 2012 17:18:56 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 22 Feb 2012 17:18:56 -0000
Received: from lake.fysh.org (HELO lake.fysh.org) (81.94.195.195) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Wed, 22 Feb 2012 09:18:50 -0800
Received: from zefram by lake.fysh.org with local (Exim 4.72 #1 (Debian)) id 1S0Fpw-00084J-Dh; Wed, 22 Feb 2012 17:18:40 +0000
Delivered-To: cpan-bug+Devel-Declare [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #75134] Segfault with clang -O2
Return-Path: <zefram [...] fysh.org>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Devel-Declare [...] hipster.bestpractical.com
X-RT-Mail-Extension: devel-declare
Date: Wed, 22 Feb 2012 17:18:40 +0000
X-Spam-Level:
To: Ioan Rogers via RT <bug-Devel-Declare [...] rt.cpan.org>
From: Zefram <zefram [...] fysh.org>
RT-Message-ID: <rt-3.8.HEAD-10815-1329931142-10.75134-0-0 [...] rt.cpan.org>
Content-Length: 474
Download (untitled) / with headers
text/plain 474b
Thanks for the report. This appears to be a clang compiler bug; D:D can be made to work by making should-be-insignificant changes in how the thread context pointer is handled. As it happens the easiest fix is a change in the thread context handling that we should have made anyway for performance reasons, so that's easy. New D:D will go to CPAN soon. On clang, I need to look a bit more closely, then I'll probably submit a bug report to the clang maintainers. -zefram
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-10812-1329943070-750.75134-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 73
Should be worked around in Devel-Declare-0.006011, just uploaded to CPAN.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.