Skip Menu |
 

This queue is for tickets about the Clutter CPAN distribution.

Report information
The Basics
Id: 49445
Status: open
Priority: 0/
Queue: Clutter

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

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



Subject: Perl scripts exit with Segmentation Fault
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: text/plain
Charset: utf8
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1294
Download (untitled) / with headers
text/plain 1.2k
When a perl script includes Clutter the Perl script will always exit with a Segmentation Fault. This happens no matter how the program quits even when exit 0 is called. The following command results with a Segmentation Fault: perl -MClutter -e '1' I tried to use gdb to get a stack trace and it seems to be a problem when the perl interpreter calls exit(). It was suggested in IRC that the loading/unloading of the nvidia drivers could be the problem. I've tried to play with dl_load_flags just as the Python bindings do it but without success: our @ISA = qw( DynaLoader Exporter ); # Constants stolen from /usr/include/bits/dlfcn.h on Linux use constant RTLD_LAZY => 0x00001; # Lazy function call binding. use constant RTLD_GLOBAL => 0x00100; # Make the symbols visible as if the object # were linked directly into the program. sub dl_load_flags { $^O eq 'darwin' ? 0x00 : RTLD_LAZY | RTLD_GLOBAL } For the moment I had to add a very ugly patch that registers a SIGSEV handler that calls exit. This way the perl interpreter doesn't exit with a Segmentation Fault. If there's no solution for this bug I could reformat the patch so that the signal handler gets registered only if a particular environment variable is set (ex: CLUTTER_NO_SIGSEV=1).
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-27252-1252267852-1391.49445-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 396
Download (untitled) / with headers
text/plain 396b
On Sat Sep 05 04:01:36 2009, POTYL wrote: Show quoted text
> When a perl script includes Clutter the Perl script will always exit > with a Segmentation Fault. This happens no matter how the program quits > even when exit 0 is called.
if the stack trace involves libselinux on Ubuntu the segmentation fault might be the result of this: https://bugs.launchpad.net/ubuntu/+source/libselinux/+bug/237156 instead.


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.