This queue is for tickets about the XML-Twig CPAN distribution.

Report information
The Basics
Id:
67271
Status:
rejected
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
Thorsten.Dombach [...] mabunta.de
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
3.38
Fixed in:
(no value)



Subject: Having seg fault with script on multi thread perl systems
Hello, when I use XML-Twig-3.38 in the stripped down script to extract some information from the XML File, I get a segmentation fault with the return statement. I get the seg fault on the following systems: /usr/bin/perl -v This is perl, v5.8.8 built for i586-linux-thread-multi uname -a Linux sl90113 2.6.16.60-0.58.1-xenpae #1 SMP Wed Dec 2 12:27:56 UTC 2009 i686 i686 i386 GNU/Linux ==== perl -v This is perl, v5.10.0 built for x86_64-linux-thread-multi uname -a Linux sl01166 2.6.27.39-0.2-xen #1 SMP 2009-11-23 12:57:38 +0100 x86_64 x86_64 x86_64 GNU/Linux ===== Then I recompiled a new perl on system sl90113 without the following options: If this doesn't make any sense to you, just accept the default 'n'. Build a threading Perl? [n] If this doesn't make any sense to you, just accept the default 'n'. Build Perl for multiplicity? [n] I now have: /usr/local/bin/perl -v This is perl, v5.10.0 built for i686-linux-64int Now the programm works fine. The problem for reproducing the bug is, that the xml file need a size bigger than 25 MB. I can offer such kind of file but not for public availability. I have a smaller one added with dummy data for seeing the xml structure. Regards, Thorsten
Subject: ex_seg_fault.pl
#!/usr/local/bin/perl use Data::Dumper; use XML::Twig; # define the functions sub f_create_twig { # create the twig of group and group members my $group = $_[0]; my $cma = $_[1]; my $conf = ${$_[2]}; my $DEBUG = $_[3]; my %all_mem_twig; my $group_found = 0; my $twig = XML::Twig->new(pretty_print => 'indented'); $twig->parsefile("./eg_seg_fault.xml"); my $root = $twig->root; # first find the searched group and all it's members foreach my $no ($root->children('network_object')){ if (($no->first_child_text('type') eq "group") and ($no->first_child_text('Name') eq $group)) { print "group: " . $no->first_child_text('Name') . "\n" if $DEBUG; $group_twig = $no->sprint(0); foreach $mem ($no->first_child('members')->children('reference')) { print "mem: " . $mem->first_child_text('Name') . "\n" if $DEBUG; push(@all_members,$mem->first_child_text('Name')); $group_found = 1; } # end foreach } # end if last if $group_found; } # end foreach if (!$group_found) { # group was not found on this cma print "The group $group was not found on CMA $cma\n"; return 0; } print "all mem: @all_members\n" if $DEBUG; foreach my $no ($root->children('network_object')) { foreach my $mem_name (@all_members) { if ($no->first_child_text('Name') eq $mem_name) { $all_mem_twig{$mem_name} = $no->sprint(0); } # end if } # end foreach } # enf foreach return $group_twig, %all_mem_twig; } # end sub f_create_twig $DEBUG = 1; my @cmas; @cmas =("site", "third_customer"); # normally is here the config parameters from config file $conf = "config"; # get master xml my ($master_group_twig,%master_mem_twig) = &f_create_twig("g_xTD-test-lok","application",\$conf,$DEBUG); # create cma xmls # print "before cma loop: @cmas\n"; # foreach my $cma (@cmas) { # print "cma-loop:$groupname - cma: $cma\n" if $DEBUG; # # create from every cma one twig of the group and an array of twigs for all members of the group # my ($cma_group_twig,%cma_mem_twig) = &f_create_twig($groupname,$cma,\$conf,$DEBUG); #print "after return of f_create_twig\n"; # # group is not found in this cma # next if (!$cma_group_twig); # # compare the member names of the groups # # this print out when something is different in the amount or names of the members between master # &f_cmp_mem(\%master_mem_twig,\%cma_mem_twig,$cma,$groupname,$config{groups}->{$groupname}->{master},$DEBUG); # # now compare each member of the cma to the member of the master # #print "cmp_xml: $master_xml-$tmp_xml-$cma-$group-$DEBUG\n" if $DEBUG; # #&f_cmp_xml($master_group_twig,$cma_group_twig,$cma,$groupname,$DEBUG); # } print "\nEND\n" if $DEBUG; exit 0;
Subject: dev_network_objects.xml
<?xml version="1.0" encoding="ISO-8859-1"?><?xml-stylesheet type="text/xsl" href="../network_objects.xsl"?><network_objects><network_object><Name>group1</Name><Class_Name>network_object_group</Class_Name><members><reference> <Name>host2</Name> <Table>network_objects</Table></reference><reference> <Name>host3</Name> <Table>network_objects</Table></reference><reference> <Name>s_001.002.003.004</Name> <Table>network_objects</Table></reference></members><color><![CDATA[red]]></color><comments><![CDATA[This is a sample group1]]></comments><group_convention_query><![CDATA[]]></group_convention_query><group_sort_type>3</group_sort_type><is_convention_on>false</is_convention_on><member_class><![CDATA[network_object]]></member_class><members_query><![CDATA[]]></members_query><type><![CDATA[group]]></type></network_object><network_object><Name>group2</Name><Class_Name>network_object_group</Class_Name><members><reference> <Name>host2</Name> <Table>network_objects</Table></reference><reference> <Name>range2</Name> <Table>network_objects</Table></reference><reference> <Name>range4</Name> <Table>network_objects</Table></reference><reference> <Name>su00014</Name> <Table>network_objects</Table></reference></members><color><![CDATA[black]]></color><comments><![CDATA[]]></comments><group_convention_query><![CDATA[]]></group_convention_query><group_sort_type>3</group_sort_type><is_convention_on>false</is_convention_on><member_class><![CDATA[network_object]]></member_class><members_query><![CDATA[]]></members_query><type><![CDATA[group]]></type></network_object><network_object><Name>host2</Name><Class_Name>host_plain</Class_Name><DAG>false</DAG><SNMP><Name>host2</Name><Class_Name>SNMP</Class_Name><read_community><![CDATA[]]></read_community><sysContact><![CDATA[]]></sysContact><sysDescr><![CDATA[]]></sysDescr><sysLocation><![CDATA[]]></sysLocation><sysName><![CDATA[]]></sysName><write_community><![CDATA[]]></write_community></SNMP><add_adtr_rule>false</add_adtr_rule><certificates></certificates><color><![CDATA[blue]]></color><comments><![CDATA[This is a sample host2]]></comments><cp_products_installed>false</cp_products_installed><data_source><![CDATA[not-installed]]></data_source><edges></edges><enforce_gtp_rate_limit>false</enforce_gtp_rate_limit><firewall><![CDATA[not-installed]]></firewall><floodgate><![CDATA[not-installed]]></floodgate><gtp_rate_limit>2048</gtp_rate_limit><interfaces></interfaces><ipaddr><![CDATA[2.2.2.2]]></ipaddr><type><![CDATA[host]]></type></network_object><network_object><Name>host2</Name><Class_Name>host_plain</Class_Name><DAG>false</DAG><SNMP><Name>host2</Name><Class_Name>SNMP</Class_Name><read_community><![CDATA[]]></read_community><sysContact><![CDATA[]]></sysContact><sysDescr><![CDATA[]]></sysDescr><sysLocation><![CDATA[]]></sysLocation><sysName><![CDATA[]]></sysName><write_community><![CDATA[]]></write_community></SNMP><add_adtr_rule>false</add_adtr_rule><certificates></certificates><color><![CDATA[blue]]></color><comments><![CDATA[This is a sample host2]]></comments><cp_products_installed>false</cp_products_installed><data_source><![CDATA[not-installed]]></data_source><edges></edges><enforce_gtp_rate_limit>false</enforce_gtp_rate_limit><firewall><![CDATA[not-installed]]></firewall><floodgate><![CDATA[not-installed]]></floodgate><gtp_rate_limit>2048</gtp_rate_limit><interfaces></interfaces><ipaddr><![CDATA[2.2.2.2]]></ipaddr><type><![CDATA[host]]></type></network_object><network_object><Name>host3</Name><Class_Name>host_plain</Class_Name><DAG>false</DAG><SNMP><Name>host3</Name><Class_Name>SNMP</Class_Name><read_community><![CDATA[]]></read_community><sysContact><![CDATA[]]></sysContact><sysDescr><![CDATA[]]></sysDescr><sysLocation><![CDATA[]]></sysLocation><sysName><![CDATA[]]></sysName><write_community><![CDATA[]]></write_community></SNMP><add_adtr_rule>false</add_adtr_rule><certificates></certificates><color><![CDATA[blue]]></color><comments><![CDATA[This is a sample host3]]></comments><cp_products_installed>false</cp_products_installed><data_source><![CDATA[not-installed]]></data_source><edges></edges><enforce_gtp_rate_limit>false</enforce_gtp_rate_limit><firewall><![CDATA[not-installed]]></firewall><floodgate><![CDATA[not-installed]]></floodgate><gtp_rate_limit>2048</gtp_rate_limit><interfaces></interfaces><ipaddr><![CDATA[3.3.3.3]]></ipaddr><type><![CDATA[host]]></type></network_object><network_object><Name>s_001.002.003.004</Name><Class_Name>host_plain</Class_Name><DAG>false</DAG><SNMP><Name>s_001.002.003.004</Name><Class_Name>SNMP</Class_Name><read_community><![CDATA[]]></read_community><sysContact><![CDATA[]]></sysContact><sysDescr><![CDATA[]]></sysDescr><sysLocation><![CDATA[]]></sysLocation><sysName><![CDATA[]]></sysName><write_community><![CDATA[]]></write_community></SNMP><add_adtr_rule>false</add_adtr_rule><certificates></certificates><color><![CDATA[blue]]></color><comments><![CDATA[This is a sample host]]></comments><cp_products_installed>false</cp_products_installed><data_source><![CDATA[not-installed]]></data_source><edges></edges><enforce_gtp_rate_limit>false</enforce_gtp_rate_limit><firewall><![CDATA[not-installed]]></firewall><floodgate><![CDATA[not-installed]]></floodgate><gtp_rate_limit>2048</gtp_rate_limit><interfaces></interfaces><ipaddr><![CDATA[1.2.3.4]]></ipaddr><type><![CDATA[host]]></type></network_object><network_object><Name>su00014</Name><Class_Name>host_ckp</Class_Name><DAG>false</DAG><Enable_CPSyslogD>false</Enable_CPSyslogD><Everest>false</Everest><MetaIP_Admin_Server>false</MetaIP_Admin_Server><MetaIP_DHCP_Server>false</MetaIP_DHCP_Server><MetaIP_DNS_Server>false</MetaIP_DNS_Server><MetaIP_RADIUS_Server>false</MetaIP_RADIUS_Server><MetaIP_UAT>false</MetaIP_UAT><SD_profile> <Name>Default_Protection</Name> <Table>profiles</Table></SD_profile><SNMP><Name>su00014</Name><Class_Name>SNMP</Class_Name><read_community><![CDATA[]]></read_community><sysContact><![CDATA[]]></sysContact><sysDescr><![CDATA[]]></sysDescr><sysLocation><![CDATA[]]></sysLocation><sysName><![CDATA[]]></sysName><write_community><![CDATA[]]></write_community></SNMP><UA_WebAccess>false</UA_WebAccess><UA_gateway>false</UA_gateway><UA_server>false</UA_server><VPN_1>false</VPN_1><WAM>false</WAM><abacus_server>false</abacus_server><add_adtr_rule>false</add_adtr_rule><allow_extranet>false</allow_extranet><allow_send_logs>false</allow_send_logs><amazonas_machine>false</amazonas_machine><antispam_integrated>false</antispam_integrated><appliance_type><![CDATA[software]]></appliance_type><apply_nat_for_cp_conns>false</apply_nat_for_cp_conns><asm_synatk>false</asm_synatk><asm_synatk_active_mode>1</asm_synatk_active_mode><asm_synatk_external_only>true</asm_synatk_external_only><asm_synatk_log><![CDATA[log]]></asm_synatk_log><asm_synatk_log_level>1</asm_synatk_log_level><asm_synatk_threshold>200</asm_synatk_threshold><asm_synatk_timeout>5</asm_synatk_timeout><au_timeout>15</au_timeout><av_integrated>false</av_integrated><bypass_track><![CDATA[log]]></bypass_track><ca_wait_mode>false</ca_wait_mode><certificates></certificates><clp_enable_gateway>false</clp_enable_gateway><clp_override_global_config>false</clp_override_global_config><color><![CDATA[black]]></color><comments><![CDATA[]]></comments><connection_state><![CDATA[communicating]]></connection_state><cp_products_installed>true</cp_products_installed><cp_suite_type><![CDATA[pro]]></cp_suite_type><cpver><![CDATA[8.0]]></cpver><data_source><![CDATA[not-installed]]></data_source><default_track><![CDATA[alert]]></default_track><define_logging_servers>true</define_logging_servers><disable_replay_check>false</disable_replay_check><display_name_for_sr_sc><![CDATA[]]></display_name_for_sr_sc><edges></edges><enable_rtm_counters_report>true</enable_rtm_counters_report><enable_rtm_traffic_report>false</enable_rtm_traffic_report><enable_rtm_traffic_report_per_connection>false</enable_rtm_traffic_report_per_connection><enforce_gtp_rate_limit>false</enforce_gtp_rate_limit><event_analyzer>false</event_analyzer><exportable>false</exportable><firewall><![CDATA[not-installed]]></firewall><floodgate><![CDATA[not-installed]]></floodgate><floodgate_setting><Name>su00014</Name><Class_Name>floodgate</Class_Name><fgver><![CDATA[8.0]]></fgver></floodgate_setting><free_fields></free_fields><fwfrag_timeout_log_interval>60</fwfrag_timeout_log_interval><fwfrag_timeout_log_threshold>10</fwfrag_timeout_log_threshold><fwldap_RequestTimeout>20</fwldap_RequestTimeout><fwsynatk_max>5000</fwsynatk_max><fwsynatk_method><![CDATA[0]]></fwsynatk_method><fwsynatk_timeout>10</fwsynatk_timeout><fwsynatk_warning>1</fwsynatk_warning><gtp_fg_context_timeout>300</gtp_fg_context_timeout><gtp_ldap_cache_timeout>90</gtp_ldap_cache_timeout><gtp_paths_timeout>600</gtp_paths_timeout><gtp_pending_hashsize>65536</gtp_pending_hashsize><gtp_pending_limit>25000</gtp_pending_limit><gtp_pending_timeout>40</gtp_pending_timeout><gtp_rate_limit>2048</gtp_rate_limit><gtp_sam_close_upon_delete>false</gtp_sam_close_upon_delete><gtp_tunnels_hashsize>65536</gtp_tunnels_hashsize><gtp_tunnels_limit>50000</gtp_tunnels_limit><gtp_tunnels_timeout>90000</gtp_tunnels_timeout><gx_version><![CDATA[2.5]]></gx_version><high_cpu_watermark>90</high_cpu_watermark><high_memory_watermark>90</high_memory_watermark><hosted_by_mds><![CDATA[]]></hosted_by_mds><http_next_proxy_host><![CDATA[]]></http_next_proxy_host><http_next_proxy_port><![CDATA[]]></http_next_proxy_port><ics_update_supported>false</ics_update_supported><ignore_mgmt_if>false</ignore_mgmt_if><ike_support_crash_recovery_sr>true</ike_support_crash_recovery_sr><inspect2c_activate>false</inspect2c_activate><inspect2c_compile>false</inspect2c_compile><integrity_server>false</integrity_server><integrity_server_port><![CDATA[443]]></integrity_server_port><interfaces><interfaces><Name></Name><Class_Name>interface</Class_Name><comments><![CDATA[]]></comments><description><![CDATA[]]></description><dynamic_ip>false</dynamic_ip><edges></edges><ifindex>0</ifindex><ipaddr><![CDATA[10.253.1.14]]></ipaddr><ipv6_address><![CDATA[]]></ipv6_address><ipv6_prefix>64</ipv6_prefix><monitored_by_cluster>false</monitored_by_cluster><netmask><![CDATA[255.255.255.0]]></netmask><officialname><![CDATA[eth0]]></officialname><security><Name></Name><Class_Name>interface_security</Class_Name><antispoof>true</antispoof><netaccess><Name></Name><Class_Name>netaccess</Class_Name><access><![CDATA[undefined]]></access><dmz>false</dmz><enable_overlapping_nat>false</enable_overlapping_nat><force_policy>true</force_policy><internal_type><![CDATA[undefined]]></internal_type><leads_to_internet>false</leads_to_internet><log><![CDATA[log]]></log><overlap_nat_dst_ipaddr><![CDATA[]]></overlap_nat_dst_ipaddr><overlap_nat_netmask><![CDATA[255.255.255.0]]></overlap_nat_netmask><overlap_nat_src_ipaddr><![CDATA[]]></overlap_nat_src_ipaddr><perform_anti_spoofing>false</perform_anti_spoofing></netaccess></security><shared>true</shared></interfaces></interfaces><ipaddr><![CDATA[10.253.1.14]]></ipaddr><ips_event_correlator>false</ips_event_correlator><ips_event_manager>false</ips_event_manager><is_bypass_sd_under_load>false</is_bypass_sd_under_load><location><![CDATA[internal]]></location><log_consolidator>false</log_consolidator><log_policy><Name></Name><Class_Name>log_policy</Class_Name><Citrix_ICA_application_detection>false</Citrix_ICA_application_detection><acct_update_interval>3600</acct_update_interval><alert_free_disk_space>20</alert_free_disk_space><alert_free_disk_space_metrics><![CDATA[mbytes]]></alert_free_disk_space_metrics><alert_on_disk_space>true</alert_on_disk_space><alert_type><![CDATA[alert]]></alert_type><etm_logging>true</etm_logging><forward_event>false</forward_event><forward_log_without_delete>false</forward_log_without_delete><forward_logs>false</forward_logs><log_delete_below_metrics><![CDATA[mbytes]]></log_delete_below_metrics><log_delete_below_value>45</log_delete_below_value><log_delete_on_below>false</log_delete_on_below><log_delete_on_run_script>false</log_delete_on_run_script><log_delete_script_command><![CDATA[]]></log_delete_script_command><log_keep_days_value>0</log_keep_days_value><log_keep_on_days>false</log_keep_on_days><log_switch_before_forwarding>false</log_switch_before_forwarding><log_switch_on_file_size>false</log_switch_on_file_size><log_switch_size>1000</log_switch_size><min_free_disk_space>10</min_free_disk_space><packets_capture_reserved_disk_metrics><![CDATA[mbytes]]></packets_capture_reserved_disk_metrics><packets_capture_reserved_disk_size_MB>500</packets_capture_reserved_disk_size_MB><packets_capture_reserved_disk_size_percent>15</packets_capture_reserved_disk_size_percent><reject_connections>false</reject_connections><scheduled_switch>false</scheduled_switch><stop_free_disk_space_metrics><![CDATA[mbytes]]></stop_free_disk_space_metrics><stop_logging_on_free_disk_space>false</stop_logging_on_free_disk_space></log_policy><log_server>true</log_server><low_cpu_watermark>70</low_cpu_watermark><low_memory_watermark>70</low_memory_watermark><management>true</management><management_ifc><![CDATA[]]></management_ifc><management_type><![CDATA[User_Defined_Blades]]></management_type><masters></masters><mgmt_interface_enabled>true</mgmt_interface_enabled><monitor_blade>false</monitor_blade><option_pack>0</option_pack><os_info><Name></Name><Class_Name>os_info</Class_Name><osBuildNum>10238976</osBuildNum><osName><![CDATA[SecurePlatform]]></osName><osSPMajor>10238976</osSPMajor><osSPMinor>10238976</osSPMinor><osType>0</osType><osVerMajor>10238976</osVerMajor><osVerMinor>10238976</osVerMinor><osVersionLevel><![CDATA[NGX R65]]></osVersionLevel></os_info><performancepack>false</performancepack><primary_management>true</primary_management><product_versions></product_versions><protect_internal_interfaces_only>false</protect_internal_interfaces_only><radius_server> <Name>None</Name> <Table>globals</Table></radius_server><real_time_monitor>false</real_time_monitor><reporting_server>false</reporting_server><sam_allow_remote_request>true</sam_allow_remote_request><sam_enable_purge_history_file>false</sam_enable_purge_history_file><sam_policy_max_reqs>20000</sam_policy_max_reqs><sam_proxy_backwards_compatibility_security_method><![CDATA[]]></sam_proxy_backwards_compatibility_security_method><sam_purge_file_start_size>100</sam_purge_file_start_size><sc_portal>false</sc_portal><sd_reject_on_cluster_fo>false</sd_reject_on_cluster_fo><series_type><![CDATA[User_Defined_Blades]]></series_type><sic_name><![CDATA[cn=cp_mgmt,o=su00014..k5rr96]]></sic_name><smart_center_backup>false</smart_center_backup><support_sr_ike_mm>true</support_sr_ike_mm><supports_tcp_ike><![CDATA[use_site_default]]></supports_tcp_ike><type><![CDATA[host]]></type><uf_integrated>false</uf_integrated><upload_logs>true</upload_logs><use_loggers_and_masters>false</use_loggers_and_masters><used_globaly>false</used_globaly><user_dir_blade>false</user_dir_blade><user_friendly><![CDATA[]]></user_friendly></network_object><network_object><Name>range2</Name><Class_Name>address_range</Class_Name><add_adtr_rule>false</add_adtr_rule><color><![CDATA[gold]]></color><comments><![CDATA[This is a sample range2]]></comments><edges></edges><ipaddr_first><![CDATA[2.2.2.0]]></ipaddr_first><ipaddr_last><![CDATA[10.10.10.10]]></ipaddr_last><type><![CDATA[machines_range]]></type></network_object><network_object><Name>range4</Name><Class_Name>address_range</Class_Name><add_adtr_rule>false</add_adtr_rule><color><![CDATA[gold]]></color><comments><![CDATA[This is a sample range4]]></comments><edges></edges><ipaddr_first><![CDATA[4.4.4.0]]></ipaddr_first><ipaddr_last><![CDATA[10.10.10.10]]></ipaddr_last><type><![CDATA[machines_range]]></type></network_object></network_objects>
Hi, I am very sorry, I never saw this ticket for some reason. So more for the sake of future readers: in your script you load the entire XML in memory. There is no magic there, if the file is too big you're going to use all of the system memory. If you want to process bigger files than can fit in memory, you need to use the tools that XML::Twig give you to limit the size that's held in memory at one time. Usually it means setting handlers, purging the twig after processing certain elements... __ mirod
Subject: AW: [rt.cpan.org #67271] Having seg fault with script on multi thread perl systems
Date: Fri, 23 Sep 2011 13:22:30 +0200
To: "bug-XML-Twig@rt.cpan.org" <bug-XML-Twig@rt.cpan.org>
From: Thorsten Dombach <Thorsten.Dombach@mabunta.de>
Hi, no problem. But sorry I cannot understand your answer. Because, when I use the 32 Bit not multithreaded Version with the SAME XML File it works. For my understanding, I would expect that the 64 Bit Version did not crash, because it can address more memory than the 32 Bit Version. So how to understand this? Regards, Thorsten
Show quoted text
-----Urspr√ľngliche Nachricht----- Von: MIROD via RT [mailto:bug-XML-Twig@rt.cpan.org] Gesendet: Freitag, 23. September 2011 12:05 An: Thorsten Dombach Betreff: [rt.cpan.org #67271] Having seg fault with script on multi thread perl systems <URL: https://rt.cpan.org/Ticket/Display.html?id=67271 > Hi, I am very sorry, I never saw this ticket for some reason. So more for the sake of future readers: in your script you load the entire XML in memory. There is no magic there, if the file is too big you're going to use all of the system memory. If you want to process bigger files than can fit in memory, you need to use the tools that XML::Twig give you to limit the size that's held in memory at one time. Usually it means setting handlers, purging the twig after processing certain elements... __ mirod
On Fri Sep 23 07:22:43 2011, Thorsten.Dombach@mabunta.de wrote:
Show quoted text
> Hi, > > no problem. But sorry I cannot understand your answer. Because, > when I use the 32 Bit not multithreaded Version > with the SAME XML > File it works. For my understanding, I would expect that the 64 Bit > Version did not crash, because > it can address more memory than the 32 > Bit Version. > So how to understand this?
My guess would be that the 64 bit version requires more space, so when you use the 32 bit Perl the entire XML still fits in memory, but when you switch to the 64 bit Perl then you go over the machine size. You could check by looking at top while running your code, to see how much memory it uses. __ mirod
On Fri Sep 23 10:01:17 2011, MIROD wrote:
Show quoted text
> On Fri Sep 23 07:22:43 2011, Thorsten.Dombach@mabunta.de wrote:
> > Hi, > > > > no problem. But sorry I cannot understand your answer. Because, > > when I use the 32 Bit not multithreaded Version > > with the SAME XML > > File it works. For my understanding, I would expect that the 64 Bit > > Version did not crash, because > > it can address more memory than the 32 > > Bit Version. > > So how to understand this?
> > My guess would be that the 64 bit version requires more space, so when > you use the 32 bit Perl the entire XML still fits in memory, but when > you switch to the 64 bit Perl then you go over the machine size. > > You could check by looking at top while running your code, to see how > much memory it uses. > > __ > mirod
-- __ mirod


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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