Skip Menu |
 

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 71177
Status: open
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

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



From gg [...] zip.com.au Thu Sep 22 19: 45:43 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-6.889 tagged_above=-99.9 required=10 tests=[AWL=0.001, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, T_TVD_MIME_NO_HEADERS=0.01] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/mixed; boundary="=-=-="
Message-ID: <87fwjocfa5.fsf [...] blah.blah>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -6.889
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 2593724095B for <cpan-bug+Wx [...] hipster.bestpractical.com>; Thu, 22 Sep 2011 19:45:42 -0400 (EDT)
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 doc1FqfYDBK6 for <cpan-bug+Wx [...] hipster.bestpractical.com>; Thu, 22 Sep 2011 19:45:38 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 57DEB2404CD for <bug-Wx [...] rt.cpan.org>; Thu, 22 Sep 2011 19:45:37 -0400 (EDT)
Received: (qmail 24555 invoked by uid 103); 22 Sep 2011 23:45:37 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 22 Sep 2011 23:45:37 -0000
Received: from mailout1-2.pacific.net.au (HELO mailout1.pacific.net.au) (61.8.2.209) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Thu, 22 Sep 2011 16:45:33 -0700
Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.2.163]) by mailout1.pacific.net.au (Postfix) with ESMTP id 50EC05F8C27 for <bug-Wx [...] rt.cpan.org>; Fri, 23 Sep 2011 09:45:27 +1000 (EST)
Received: from blah.blah (unknown [203.26.175.204]) by mailproxy2.pacific.net.au (Postfix) with ESMTP id D91FC27424 for <bug-Wx [...] rt.cpan.org>; Fri, 23 Sep 2011 09:45:26 +1000 (EST)
Received: from gg by blah.blah with local (Exim 4.72) (envelope-from <gg [...] zip.com.au>) id 1R6sxW-0003af-Ml for bug-Wx [...] rt.cpan.org; Fri, 23 Sep 2011 09:45:38 +1000
Delivered-To: cpan-bug+Wx [...] hipster.bestpractical.com
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.3 (gnu/linux)
Subject: segv on passing undef
Return-Path: <gg [...] zip.com.au>
X-RT-Mail-Extension: wx
X-Original-To: cpan-bug+Wx [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Date: Fri, 23 Sep 2011 09:45:38 +1000
X-Spam-Level:
To: bug-Wx [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
Content-Length: 0
X-RT-Original-Encoding: ascii
content-type: text/plain; charset="utf-8"
Content-Length: 248
Download (untitled) / with headers
text/plain 248b
With recent debian i386 wx 2.8 and wxperl 0.9901 I mistakenly passed undef to the AboutDialogInfo SetIcon(), per foo.pl below, and got a segv. I expect it's "don't do that", but it'd be good if it was an error instead of a segv to avoid trouble.
Content-Type: text/x-perl
content-disposition: inline; filename="foo.pl"
Content-Length: 68
Download foo.pl
text/x-perl 68b
use Wx; my $info = Wx::AboutDialogInfo->new; $info->SetIcon(undef);
CC: <wxperl-users [...] perl.org>
MIME-Version: 1.0
X-Authfastpath: 0 (Was 255)
X-Server-Quench: cfa6aaf1-e5e3-11e0-ab46-001185d377ca
X-Spam-Flag: NO
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.9
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id EA3F224090A for <cpan-bug+Wx [...] hipster.bestpractical.com>; Fri, 23 Sep 2011 08:59:22 -0400 (EDT)
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 D7S2axPYSowt for <cpan-bug+Wx [...] hipster.bestpractical.com>; Fri, 23 Sep 2011 08:59:21 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 2552F24078A for <bug-Wx [...] rt.cpan.org>; Fri, 23 Sep 2011 08:59:20 -0400 (EDT)
Received: (qmail 24359 invoked by uid 103); 23 Sep 2011 12:59:20 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 23 Sep 2011 12:59:20 -0000
Received: from outmail148152.authsmtp.com (HELO outmail148152.authsmtp.com) (62.13.148.152) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Fri, 23 Sep 2011 05:59:18 -0700
Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt9.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p8NCx5hs044255; Fri, 23 Sep 2011 13:59:05 +0100 (BST)
Received: from SACWS001 (201-95-191-212.dsl.telesp.net.br [201.95.191.212]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p8NCwx3d006081; Fri, 23 Sep 2011 13:59:01 +0100 (BST)
Delivered-To: cpan-bug+Wx [...] hipster.bestpractical.com
Subject: RE: [rt.cpan.org #71177] segv on passing undef
X-Spam-Check-BY: 16.mx.develooper.com
Thread-Index: Acx50TMjs6oLR2jjRsaxFrmvTXDlnQAHgk3g
Date: Fri, 23 Sep 2011 09:58:56 -0300
X-Spam-Level:
X-Mimeole: Produced By Microsoft MimeOLE V6.00.2900.6109
To: <bug-Wx [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
X-Authentic-SMTP: 61633239353835.1000:706
X-Authroute: OCdxaQ0dBlZOUAkE B2UPCyhDUgIjDgZH CFoeLk1RJ18fUBlV LkdCKlcTahwKHwoe YDNLRFZUUVxhWGB/ bgNbbQcTYEpPQQxv TklAQ0xQFQd3Axke BlBeWmcBME1FLH5w Y0ZqXz5ZVUJ+OxUr E0gFRDsHeDJlPWMC UUENdx4FIgdMYx9F a1F3UScOZmJUNzQC Ml17DCotez5HISIT RRsCZRlNGB9UQQt0 XB0NA30oGwUdTj4o LhopYkMaEEsfei2x
From steve.cookson [...] sca-uk.com Fri Sep 23 08: 59:23 2011
In-Reply-To: <rt-3.8.HEAD-20563-1316735144-1734.71177-15-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-6.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Mailer: Microsoft Office Outlook 11
X-Authvirus-Status: No virus detected - but ensure you scan with your own anti-virus system.
References: <RT-Ticket-71177 [...] rt.cpan.org> <87fwjocfa5.fsf [...] blah.blah> <rt-3.8.HEAD-20563-1316735144-1734.71177-15-0 [...] rt.cpan.org>
Message-ID: <67BC5557490E434C8318F6D9C321AD50 [...] SACWS001>
Return-Path: <steve.cookson [...] sca-uk.com>
X-RT-Mail-Extension: wx
X-Original-To: cpan-bug+Wx [...] hipster.bestpractical.com
X-Authreport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse
From: "Steve Cookson" <steve.cookson [...] sca-uk.com>
RT-Message-ID: <rt-3.8.HEAD-20565-1316782763-1343.71177-0-0 [...] rt.cpan.org>
Content-Length: 786
Download (untitled) / with headers
text/plain 786b
Show quoted text
> -----Original Message----- > From: Kevin Ryde via RT [mailto:bug-Wx@rt.cpan.org] > With recent debian i386 wx 2.8 and wxperl 0.9901 I mistakenly passed > undef to the AboutDialogInfo SetIcon(), per foo.pl below, and got a > segv. I expect it's "don't do that", but it'd be good if it was an > error instead of a segv to avoid trouble.
Hi Kevin, I get the same under Windows. Don't you think it's a wxWidgets problem and not a wxPerl binding problem? The only strange thing is it crashes at the actual call: $info->SetIcon(undef); Show quoted text
>>>crash<<<
If you change to: $info->SetIcon(0); It steps through the call to Wx:: sub END { UnsetConstants() if defined &UnsetConstants; } It may be worth posting on wx-users@googlegroups.com. What do others think? Regards Steve
From gg [...] zip.com.au Sat Sep 24 03: 39:19 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-6.894 tagged_above=-99.9 required=10 tests=[AWL=0.006, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-20565-1316782764-1927.71177-6-0 [...] rt.cpan.org> (Steve Cookson via's message of "Fri, 23 Sep 2011 08:59:25 -0400")
X-Spam-Flag: NO
References: <RT-Ticket-71177 [...] rt.cpan.org> <87fwjocfa5.fsf [...] blah.blah> <rt-3.8.HEAD-20563-1316735144-1734.71177-15-0 [...] rt.cpan.org> <67BC5557490E434C8318F6D9C321AD50 [...] SACWS001> <rt-3.8.HEAD-20565-1316782764-1927.71177-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <87aa9u3kvw.fsf [...] blah.blah>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.894
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 4524C2409DE for <cpan-bug+Wx [...] hipster.bestpractical.com>; Fri, 23 Sep 2011 19:21:51 -0400 (EDT)
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 Nm0213S7Rp-d for <cpan-bug+Wx [...] hipster.bestpractical.com>; Fri, 23 Sep 2011 19:21:49 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 405B724078A for <bug-Wx [...] rt.cpan.org>; Fri, 23 Sep 2011 19:21:48 -0400 (EDT)
Received: (qmail 11097 invoked by uid 103); 23 Sep 2011 23:21:47 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 23 Sep 2011 23:21:47 -0000
Received: from mailout1-2.pacific.net.au (HELO mailout1.pacific.net.au) (61.8.2.209) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Fri, 23 Sep 2011 16:21:45 -0700
Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id 7B6DF5F709C for <bug-Wx [...] rt.cpan.org>; Sat, 24 Sep 2011 09:21:40 +1000 (EST)
Received: from blah.blah (unknown [203.26.175.194]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id EA5268C02 for <bug-Wx [...] rt.cpan.org>; Sat, 24 Sep 2011 09:21:39 +1000 (EST)
Received: from gg by blah.blah with local (Exim 4.72) (envelope-from <gg [...] zip.com.au>) id 1R7F3s-0005Kr-6B for bug-Wx [...] rt.cpan.org; Sat, 24 Sep 2011 09:21:40 +1000
Delivered-To: cpan-bug+Wx [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #71177] segv on passing undef
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.3 (gnu/linux)
Return-Path: <gg [...] zip.com.au>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Wx [...] hipster.bestpractical.com
X-RT-Mail-Extension: wx
Date: Sat, 24 Sep 2011 09:21:39 +1000
X-Spam-Level:
To: bug-Wx [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
RT-Message-ID: <rt-3.8.HEAD-3050-1316849960-1330.71177-0-0 [...] rt.cpan.org>
Content-Length: 312
Download (untitled) / with headers
text/plain 312b
"Steve Cookson via RT" <bug-Wx@rt.cpan.org> writes: Show quoted text
> > Don't you think it's a wxWidgets problem and not a wxPerl binding > problem?
I presume it doesn't take NULL. If so it could be good if the bindings kept you away from that. Though might be hard unless wx itself declares where null is or isn't accepted.
CC: <wxperl-users [...] perl.org>
MIME-Version: 1.0
X-Authfastpath: 0 (Was 255)
X-Server-Quench: c337112e-e713-11e0-80b9-0022640b883e
X-Spam-Flag: NO
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.9
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id ACC3B2409F0 for <cpan-bug+Wx [...] hipster.bestpractical.com>; Sat, 24 Sep 2011 21:15:08 -0400 (EDT)
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 NtTo9MNHeTiM for <cpan-bug+Wx [...] hipster.bestpractical.com>; Sat, 24 Sep 2011 21:15:06 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id DDE4C240116 for <bug-Wx [...] rt.cpan.org>; Sat, 24 Sep 2011 21:15:05 -0400 (EDT)
Received: (qmail 11014 invoked by uid 103); 25 Sep 2011 01:15:04 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 25 Sep 2011 01:15:04 -0000
Received: from outmail148133.authsmtp.co.uk (HELO outmail148133.authsmtp.co.uk) (62.13.148.133) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Sat, 24 Sep 2011 18:15:02 -0700
Received: from mail-c194.authsmtp.com (mail-c194.authsmtp.com [62.13.128.121]) by punt12.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p8P1EnsT004249; Sun, 25 Sep 2011 02:14:49 +0100 (BST)
Received: from SACWS001 (201-95-191-212.dsl.telesp.net.br [201.95.191.212]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p8P1Ejct033050; Sun, 25 Sep 2011 02:14:47 +0100 (BST)
Delivered-To: cpan-bug+Wx [...] hipster.bestpractical.com
Subject: RE: [rt.cpan.org #71177] segv on passing undef
X-Spam-Check-BY: 16.mx.develooper.com
Thread-Index: Acx7FJLWReMI1R/+T+uUlwOlpJFH1wACyc5g
Date: Sat, 24 Sep 2011 22:14:38 -0300
X-Spam-Level:
X-Mimeole: Produced By Microsoft MimeOLE V6.00.2900.6109
To: <bug-Wx [...] rt.cpan.org>
Content-Transfer-Encoding: 7bit
X-Authentic-SMTP: 61633239353835.1015:706
X-Authroute: OCdxaQ0dBlZOUAkE B2UPCyhDUgIjDgZH CFoeLk1RJ18fUBlV LkdCKlcTahwKHwwe YDNLRFZUUVxhWWF/ ag5baQ0TYEpPQQxv TklAQ0xQFQd3Axke BlBeWnlzAl8VPH5z ZkZnXj5ZX0F6OxV+ QUlVFG9TeDJnaWMC UUENdx5ccFFDYx9F aFJ5UHNfaW0EMzQC Ml17DCotez5HISIT RRsCZRlNGB9UQQt0 XB0NA30oGwUdTj4o LhopYkMaEEsfWgAA
From steve.cookson [...] sca-uk.com Sat Sep 24 21: 15:08 2011
In-Reply-To: <rt-3.8.HEAD-3050-1316849960-1493.71177-15-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-6.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Mailer: Microsoft Office Outlook 11
X-Authvirus-Status: No virus detected - but ensure you scan with your own anti-virus system.
References: <RT-Ticket-71177 [...] rt.cpan.org> <87fwjocfa5.fsf [...] blah.blah> <rt-3.8.HEAD-20563-1316735144-1734.71177-15-0 [...] rt.cpan.org> <67BC5557490E434C8318F6D9C321AD50 [...] SACWS001> <rt-3.8.HEAD-20565-1316782764-1927.71177-6-0 [...] rt.cpan.org> <87aa9u3kvw.fsf [...] blah.blah> <rt-3.8.HEAD-3050-1316849960-1493.71177-15-0 [...] rt.cpan.org>
Message-ID: <4334C4322AB94A5C822A29B5A57D3ED6 [...] SACWS001>
Return-Path: <steve.cookson [...] sca-uk.com>
X-RT-Mail-Extension: wx
X-Original-To: cpan-bug+Wx [...] hipster.bestpractical.com
X-Authreport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse
From: "Steve Cookson" <steve.cookson [...] sca-uk.com>
RT-Message-ID: <rt-3.8.HEAD-3051-1316913309-1719.71177-0-0 [...] rt.cpan.org>
Content-Length: 294
Download (untitled) / with headers
text/plain 294b
Hi Kevin, Show quoted text
> I presume it doesn't take NULL.
NULL Meaning ""? It works like zero. Doesn't crash. But I'm not sure what the equivalent of undef on c++ is, is it null? I'd post it myself on wx-users@googlegroups.com if I could word a good message. Why don't you do this? Regards Steve
From gg [...] zip.com.au Mon Sep 26 16: 37:05 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-6.894 tagged_above=-99.9 required=10 tests=[AWL=0.006, BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-3051-1316913312-699.71177-6-0 [...] rt.cpan.org> (Steve Cookson via's message of "Sat, 24 Sep 2011 21:15:19 -0400")
X-Spam-Flag: NO
References: <RT-Ticket-71177 [...] rt.cpan.org> <87fwjocfa5.fsf [...] blah.blah> <rt-3.8.HEAD-20563-1316735144-1734.71177-15-0 [...] rt.cpan.org> <67BC5557490E434C8318F6D9C321AD50 [...] SACWS001> <rt-3.8.HEAD-20565-1316782764-1927.71177-6-0 [...] rt.cpan.org> <87aa9u3kvw.fsf [...] blah.blah> <rt-3.8.HEAD-3050-1316849960-1493.71177-15-0 [...] rt.cpan.org> <4334C4322AB94A5C822A29B5A57D3ED6 [...] SACWS001> <rt-3.8.HEAD-3051-1316913312-699.71177-6-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <87d3en59co.fsf [...] blah.blah>
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
X-Spam-Score: -6.894
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 8194E240894 for <cpan-bug+Wx [...] hipster.bestpractical.com>; Mon, 26 Sep 2011 16:37:05 -0400 (EDT)
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 ezJriUf4ucOb for <cpan-bug+Wx [...] hipster.bestpractical.com>; Mon, 26 Sep 2011 16:37:03 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 65E5B2407FE for <bug-Wx [...] rt.cpan.org>; Mon, 26 Sep 2011 16:37:02 -0400 (EDT)
Received: (qmail 17216 invoked by uid 103); 26 Sep 2011 20:37:02 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 26 Sep 2011 20:37:02 -0000
Received: from mailout2-6.pacific.net.au (HELO mailout2.pacific.net.au) (61.8.2.229) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Mon, 26 Sep 2011 13:36:59 -0700
Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout2.pacific.net.au (Postfix) with ESMTP id 3424A2C05B5 for <bug-Wx [...] rt.cpan.org>; Tue, 27 Sep 2011 06:36:54 +1000 (EST)
Received: from blah.blah (unknown [203.26.175.100]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 6E9388C0B for <bug-Wx [...] rt.cpan.org>; Tue, 27 Sep 2011 06:36:53 +1000 (EST)
Received: from gg by blah.blah with local (Exim 4.72) (envelope-from <gg [...] zip.com.au>) id 1R8HvH-0002F3-UB for bug-Wx [...] rt.cpan.org; Tue, 27 Sep 2011 06:37:10 +1000
Delivered-To: cpan-bug+Wx [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #71177] segv on passing undef
User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.3 (gnu/linux)
Return-Path: <gg [...] zip.com.au>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+Wx [...] hipster.bestpractical.com
X-RT-Mail-Extension: wx
Date: Tue, 27 Sep 2011 06:36:55 +1000
X-Spam-Level:
To: bug-Wx [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
RT-Message-ID: <rt-3.8.HEAD-3051-1317069426-1069.71177-0-0 [...] rt.cpan.org>
Content-Length: 1055
"Steve Cookson via RT" <bug-Wx@rt.cpan.org> writes: Show quoted text
> > NULL Meaning ""?
No I was looking at helpers.cpp void* wxPli_sv_2_object( pTHX_ SV* scalar, const char* classname ) { // is it correct to use undef as 'NULL'? if( !SvOK( scalar ) ) { return NULL; } where undef from perl becomes NULL and wondered if that NULL is allowed when reaching the actual wx routine. (And then to hope the wrappers might guard against it to avoid trouble.) But I say that only from nosing around, though gdb does report the segv as being from a null, 0xb74013f2 in wxObject::Ref(wxObject const&) () from /usr/lib/libwx_baseu-2.8.so.0 (gdb) where #0 0xb74013f2 in wxObject::Ref(wxObject const&) () from /usr/lib/libwx_baseu-2.8.so.0 #1 0xb7a83591 in XS_Wx__AboutDialogInfo_SetIcon () from /usr/lib/perl5/auto/Wx/Wx.so #2 0x080e3c63 in Perl_pp_entersub () #3 0x080db232 in Perl_runops_standard () #4 0x08081db1 in perl_run () #5 0x080657af in main () which is => 0xb74013f2 <+34>: mov 0x4(%edi),%eax with %edi containing 0.


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.