Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 40445
Status: resolved
Priority: 0/
Queue: Wx

People
Owner: mbarbon [...] users.sourceforge.net
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

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



Subject: ext/docview/t/04_cmdproc.t cores on OS X 10.4
With wxWidgets 2.8.9 (from MacPorts) and Perl 5.10.0 on OS X 10.4 the ext/docview/t/04_cmdproc.t test cores. Looks like its in Wx__Command_GetName (). It cores at line 14 of the test: ok( $cp->Submit( $cmd ) ); Here's the gdb stack trace. #0 0x9003d66c in kill () #1 0x000c22ef in Perl_apply () #2 0x000b4d96 in Perl_pp_chown () #3 0x0006089e in Perl_runops_standard () #4 0x0005a57d in Perl_call_sv () #5 0x0004ad5b in Perl_sighandler () #6 <signal handler called> #7 0x0169d213 in XS_Wx__Command_GetName () #8 0x00069d9c in Perl_pp_entersub () #9 0x0006089e in Perl_runops_standard () #10 0x0005a2a9 in Perl_call_sv () #11 0x01263ffe in wxPliVirtualCallback::CallCallback () #12 0x012640eb in wxPliVirtualCallback_CallCallback () #13 0x0168d02a in wxPlCommand::Do () #14 0x020be787 in wxCommandProcessor::DoCommand () #15 0x020be7c7 in wxCommandProcessor::Submit () #16 0x016871b6 in XS_Wx__CommandProcessor_Submit () #17 0x00069d9c in Perl_pp_entersub () #18 0x0006089e in Perl_runops_standard () #19 0x0005c286 in perl_run () #20 0x00002299 in main ()
Subject: Re: [rt.cpan.org #40445] ext/docview/t/04_cmdproc.t cores on OS X 10.4
Date: Sun, 02 Nov 2008 11:58:05 +0100
To: bug-Wx [...] rt.cpan.org
From: Mattia Barbon <mattia.barbon [...] libero.it>
Michael G Schwern via RT wrote: Hi, Show quoted text
> With wxWidgets 2.8.9 (from MacPorts) and Perl 5.10.0 on OS X 10.4 the > ext/docview/t/04_cmdproc.t test cores. Looks like its in > Wx__Command_GetName ().
Is that 10.4 Intel or PPC and which gcc version/Xcode release have you installed? If you run: $ perl -MAlien::wxWidgets=:dump -e 42 it should output something like $VAR1 = { 'compiler_kind' => 'gcc', 'version' => '2.008004', 'build' => 'mono', 'key' => 'mac_2_8_4_dbg_uni_gcc_3_4', 'package' => 'Alien::wxWidgets::Config::mac_2_8_4_dbg_uni_gcc_3_4', 'compiler_version' => '3.4', 'mslu' => 0, 'unicode' => 1, 'toolkit' => 'mac', 'debug' => 1 }; could you find the file mentioned in the "package" line and attach it here? Thanks! Mattia P.S.: have you tried letting Alien::wxWidgets build wxWidgets?
Subject: Re: [rt.cpan.org #40445] ext/docview/t/04_cmdproc.t cores on OS X 10.4
Date: Sun, 02 Nov 2008 17:25:35 -0800
To: bug-Wx [...] rt.cpan.org
From: Michael G Schwern <schwern [...] pobox.com>
Mattia Barbon via RT wrote: Show quoted text
>> With wxWidgets 2.8.9 (from MacPorts) and Perl 5.10.0 on OS X 10.4 the >> ext/docview/t/04_cmdproc.t test cores. Looks like its in >> Wx__Command_GetName ().
> > Is that 10.4 Intel or PPC and which gcc version/Xcode release > have you installed?
Intel on a first gen Macbook, XCode 2.5. $ uname -a Darwin windhund.schwern.org 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386 MacBook1,1 Darwin $ gcc --version i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Show quoted text
> If you run: > > $ perl -MAlien::wxWidgets=:dump -e 42 > > it should output something like > $VAR1 = { > 'compiler_kind' => 'gcc', > 'version' => '2.008004', > 'build' => 'mono', > 'key' => 'mac_2_8_4_dbg_uni_gcc_3_4', > 'package' => > 'Alien::wxWidgets::Config::mac_2_8_4_dbg_uni_gcc_3_4', > 'compiler_version' => '3.4', > 'mslu' => 0, > 'unicode' => 1, > 'toolkit' => 'mac', > 'debug' => 1 > };
$ perl -MAlien::wxWidgets=:dump -e 42 $VAR1 = { 'compiler_kind' => 'gcc', 'version' => '2.008009', 'build' => 'mono', 'key' => 'mac_2_8_9_uni_gcc_3_4', 'package' => 'Alien::wxWidgets::Config::mac_2_8_9_uni_gcc_3_4', 'compiler_version' => '3.4', 'mslu' => 0, 'unicode' => 1, 'toolkit' => 'mac', 'debug' => 0 }; $VAR2 = { 'compiler_kind' => 'gcc', 'version' => '2.008008', 'build' => 'multi', 'key' => 'mac_2_8_8_gcc_3_4', 'package' => 'Alien::wxWidgets::Config::mac_2_8_8_gcc_3_4', 'compiler_version' => '3.4', 'mslu' => 0, 'unicode' => 0, 'toolkit' => 'mac', 'debug' => 0 }; Show quoted text
> could you find the file mentioned in the "package" line > and attach it here?
Both are attached. Show quoted text
> P.S.: have you tried letting Alien::wxWidgets build wxWidgets?
Yes, though I don't remember what went wrong there. I'll try it again and report. Something is confused because now the Wx tests all pass. The difference being that I installed an updated Alien::WxWidgets a few days ago but told it not to build. So perhaps the previous attempt was using the Alien::WxWidgets version and now I'm really using the macports? -- Being faith-based doesn't trump reality. -- Bruce Sterling
package Alien::wxWidgets::Config::mac_2_8_8_gcc_3_4; use strict; our %VALUES; { no strict 'vars'; %VALUES = %{ $VAR1 = { 'defines' => '-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ ', 'include_path' => '-I/usr/local/perl/5.10.0/lib/site_perl/5.10.0/darwin-thread-multi-2level/Alien/wxWidgets/mac_2_8_8/lib/wx/include/mac-ansi-release-2.8 -I/usr/local/perl/5.10.0/lib/site_perl/5.10.0/darwin-thread-multi-2level/Alien/wxWidgets/mac_2_8_8/include/wx-2.8 ', 'alien_package' => 'Alien::wxWidgets::Config::mac_2_8_8_gcc_3_4', 'version' => '2.008008', 'alien_base' => 'mac_2_8_8_gcc_3_4', 'link_libraries' => ' -L/usr/local/perl/5.10.0/lib/site_perl/5.10.0/darwin-thread-multi-2level/Alien/wxWidgets/mac_2_8_8/lib', 'c_flags' => '-UWX_PRECOMP ', '_libraries' => { 'richtext' => { 'link' => '-lwx_mac_richtext-2.8', 'dll' => 'libwx_mac_richtext-2.8.dylib' }, 'core' => { 'link' => '-lwx_mac_core-2.8', 'dll' => 'libwx_mac_core-2.8.dylib' }, 'gl' => { 'link' => '-lwx_mac_gl-2.8', 'dll' => 'libwx_mac_gl-2.8.dylib' }, 'net' => { 'link' => '-lwx_base_carbon_net-2.8', 'dll' => 'libwx_base_carbon_net-2.8.dylib' }, 'html' => { 'link' => '-lwx_mac_html-2.8', 'dll' => 'libwx_mac_html-2.8.dylib' }, 'media' => { 'link' => '-lwx_mac_media-2.8', 'dll' => 'libwx_mac_media-2.8.dylib' }, 'xml' => { 'link' => '-lwx_base_carbon_xml-2.8', 'dll' => 'libwx_base_carbon_xml-2.8.dylib' }, 'animate' => { 'link' => '-lwx_mac_animate-2.8', 'dll' => 'libwx_mac_animate-2.8.dylib' }, 'xrc' => { 'link' => '-lwx_mac_xrc-2.8', 'dll' => 'libwx_mac_xrc-2.8.dylib' }, 'base' => { 'link' => '-lwx_base_carbon-2.8', 'dll' => 'libwx_base_carbon-2.8.dylib' }, 'stc' => { 'link' => '-lwx_mac_stc-2.8', 'dll' => 'libwx_mac_stc-2.8.dylib' }, 'aui' => { 'link' => '-lwx_mac_aui-2.8', 'dll' => 'libwx_mac_aui-2.8.dylib' }, 'fl' => { 'link' => '-lwx_mac_fl-2.8', 'dll' => 'libwx_mac_fl-2.8.dylib' }, 'gizmos' => { 'link' => '-lwx_mac_gizmos-2.8', 'dll' => 'libwx_mac_gizmos-2.8.dylib' }, 'ogl' => { 'link' => '-lwx_mac_ogl-2.8', 'dll' => 'libwx_mac_ogl-2.8.dylib' }, 'qa' => { 'link' => '-lwx_mac_qa-2.8', 'dll' => 'libwx_mac_qa-2.8.dylib' }, 'plot' => { 'link' => '-lwx_mac_plot-2.8', 'dll' => 'libwx_mac_plot-2.8.dylib' }, 'svg' => { 'link' => '-lwx_mac_svg-2.8', 'dll' => 'libwx_mac_svg-2.8.dylib' }, 'adv' => { 'link' => '-lwx_mac_adv-2.8', 'dll' => 'libwx_mac_adv-2.8.dylib' } }, 'compiler' => 'g++', 'link_flags' => '', 'linker' => 'g++', 'config' => { 'compiler_version' => '3.4', 'compiler_kind' => 'gcc', 'mslu' => 0, 'toolkit' => 'mac', 'unicode' => 0, 'debug' => 0, 'build' => 'multi' }, 'prefix' => '/usr/local/perl/5.10.0/lib/site_perl/5.10.0/darwin-thread-multi-2level/Alien/wxWidgets/mac_2_8_8' }; }; } my $key = substr __PACKAGE__, 1 + rindex __PACKAGE__, ':'; sub values { %VALUES, key => $key } sub config { +{ %{$VALUES{config}}, package => __PACKAGE__, key => $key, version => $VALUES{version}, } } 1;
package Alien::wxWidgets::Config::mac_2_8_9_uni_gcc_3_4; use strict; our %VALUES; { no strict 'vars'; %VALUES = %{ $VAR1 = { 'defines' => '-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXMAC__ ', 'include_path' => '-I/opt/local/lib/wx/include/mac-unicode-release-2.8 -I/opt/local/include/wx-2.8 ', 'alien_package' => 'Alien::wxWidgets::Config::mac_2_8_9_uni_gcc_3_4', 'version' => '2.008009', 'alien_base' => 'mac_2_8_9_uni_gcc_3_4', 'link_libraries' => ' -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib', 'c_flags' => '-UWX_PRECOMP ', '_libraries' => { 'stc' => { 'link' => '-lwx_macu_stc-2.8', 'dll' => 'libwx_macu_stc-2.8.dylib' }, 'fl' => { 'link' => '-lwx_macu_fl-2.8', 'dll' => 'libwx_macu_fl-2.8.dylib' }, 'gl' => { 'link' => '-lwx_macu_gl-2.8', 'dll' => 'libwx_macu_gl-2.8.dylib' }, 'mono' => { 'link' => '-lwx_macu-2.8', 'dll' => 'libwx_macu-2.8.dylib' }, 'gizmos' => { 'link' => '-lwx_macu_gizmos-2.8', 'dll' => 'libwx_macu_gizmos-2.8.dylib' }, 'ogl' => { 'link' => '-lwx_macu_ogl-2.8', 'dll' => 'libwx_macu_ogl-2.8.dylib' }, 'plot' => { 'link' => '-lwx_macu_plot-2.8', 'dll' => 'libwx_macu_plot-2.8.dylib' }, 'xrc' => { 'link' => '-lwx_macu_gizmos_xrc-2.8', 'dll' => 'libwx_macu_gizmos_xrc-2.8.dylib' }, 'svg' => { 'link' => '-lwx_macu_svg-2.8', 'dll' => 'libwx_macu_svg-2.8.dylib' } }, 'compiler' => '/usr/bin/g++-4.0', 'link_flags' => '', 'linker' => '/usr/bin/g++-4.0', 'config' => { 'compiler_version' => '3.4', 'compiler_kind' => 'gcc', 'mslu' => 0, 'toolkit' => 'mac', 'unicode' => 1, 'debug' => 0, 'build' => 'mono' }, 'prefix' => '/opt/local' }; }; } my $key = substr __PACKAGE__, 1 + rindex __PACKAGE__, ':'; sub values { %VALUES, key => $key } sub config { +{ %{$VALUES{config}}, package => __PACKAGE__, key => $key, version => $VALUES{version}, } } 1;
On Sun Nov 02 20:26:32 2008, schwern@pobox.com wrote: <snip> Show quoted text
> > P.S.: have you tried letting Alien::wxWidgets build wxWidgets?
> > Yes, though I don't remember what went wrong there. I'll try it again > and report. > > Something is confused because now the Wx tests all pass. The > difference being > that I installed an updated Alien::WxWidgets a few days ago but told > it not to > build. So perhaps the previous attempt was using the Alien::WxWidgets > version > and now I'm really using the macports?
Yes, that's what happened. As for the original segfault, it only happened when wxWidgets was build without Unicode support. Fixed in wxPerl 0.87. Thanks! Mattia