A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-June/065853.html below:

[Python-Dev] Segmentation fault in collections.defaultdict

[Python-Dev] Segmentation fault in collections.defaultdict [Python-Dev] Segmentation fault in collections.defaultdictNick Coghlan ncoghlan at gmail.com
Sun Jun 11 08:25:21 CEST 2006
Kevin Jacobs <jacobs at bioinformed.com> wrote:
> Try this at home:
> import collections
> d=collections.defaultdict(int)
> d.iterkeys().next()  # Seg fault
> d.iteritems().next() # Seg fault
> d.itervalues().next() # Fine and dandy

This all worked fine for me in rev 46739 and 46849 (Kubuntu 6.06, gcc 4.0.3).

> Python version:
> Python 2.5a2 (trunk:46822M, Jun 10 2006, 13:14:15)
> [GCC 4.0.2 20050901 (prerelease) (SUSE Linux)] on linux2

Either something got broken and then fixed again between the two revs I tried, 
there's a problem specific to GCC 4.0.2, or there's a problem with whatever 
local modifications you have in your working copy :)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4