Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[conda] nd.__repr__() hangs in the REPL #525

Open
skrah opened this issue Jan 13, 2016 · 4 comments
Open

[conda] nd.__repr__() hangs in the REPL #525

skrah opened this issue Jan 13, 2016 · 4 comments

Comments

@skrah
Copy link
Contributor

skrah commented Jan 13, 2016

The following sequence hangs in the REPL and uses more than 1GB of memory
(tested only with the conda distribution):

Python 2.7.11 |Continuum Analytics, Inc.| (default, Dec 6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org

from dynd import nd, ndt

a = nd.empty("10 * ?string")
a = nd.empty("10 * fixed_string[10]")
a
^C

@skrah
Copy link
Contributor Author

skrah commented Jan 13, 2016

I think the data of the fixed string isn't initialized, so the loop in
ndt::fixed_string_type::print_data() can be executed any number
of times since "data" isn't incremented.

Also, I think there's an invalid access in utf8::internal::sequence_length().

@skrah
Copy link
Contributor Author

skrah commented Jan 13, 2016

s/invalid access/use of uninitialized value/

@izaid
Copy link
Member

izaid commented Jan 13, 2016

@skrah Thanks! I'll check this out.

In general, there are a number of bugs in DyND right now, so if you find them just make an issue. If they really affect your work, let us know and we'll fix them ASAP.

@skrah
Copy link
Contributor Author

skrah commented Jan 14, 2016

Thanks! These shouldn't affect my work except that I have to suppress my curiosity when I find one. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants