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

Running test.py on Snow Leopard python 2.6 produces SEGV #2

Open
GoogleCodeExporter opened this issue Jan 31, 2016 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. python2.6 test.py
2.
3.

What is the expected output? What do you see instead?
Expect to run the unit test


What version of the product are you using? On what operating system?
py-radix 0.5,
Darwin pgurumur-osx2.local 10.7.3 Darwin Kernel Version 10.7.3: Sun Mar  6 
13:37:56 PST 2011; root:xnu-1504.14.2~1/RELEASE_X86_64 x86_64


Please provide any additional information below.


Original issue reported on code.google.com by pgur...@gmail.com on 21 May 2011 at 8:59

Attachments:

@GoogleCodeExporter
Copy link
Author

This is caused by an uninitialised variable in 
radix_python.c:args_to_prefix:228.  Change:

--- BEFORE ---
static prefix_t
*args_to_prefix(char *addr, char *packed, int packlen, long prefixlen)
{
        prefix_t *prefix = NULL;
        const char *errmsg;
--- BEFORE ---

To this:

--- AFTER ---
static prefix_t
*args_to_prefix(char *addr, char *packed, int packlen, long prefixlen)
{
        prefix_t *prefix = NULL;
        const char *errmsg = NULL;
--- AFTER ---


Original comment by byron.el...@gmail.com on 8 Nov 2012 at 3:34

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

No branches or pull requests

1 participant