Skip to content

BUG: segfault with .loc indexing #5553

Closed
@TomAugspurger

Description

@TomAugspurger

I found that segfault that messed up my HDFStore earlier.

You'll need to csv files:

https://www.dropbox.com/s/55gcpkp3b8byfka/df1.csv
https://www.dropbox.com/s/mqqhfgocdg4qggp/df2.csv

To reproduce:

In [1]: df1 = pd.read_csv('df1.csv', index_col=[0,1,2])

In [2]: df2 = pd.read_csv('df2.csv', index_col=[0,1,2])

In [3]: df2.loc[df1.index]
Segmentation fault: 11
(pandas-dev)dhcp80fff527:Desktop tom$ 

I've never debugged a segfault before, but I gather there are some methods. Can anyone reproduce this?

Also, that's a valid use of .loc right?

In [1]: pd.version
Out[1]: '0.12.0-1084-ged64416'

In [2]: np.version
Out[2]: '1.7.1'

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions