exported / py-radix

Automatically exported from code.google.com/p/py-radix
Other
0 stars 1 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
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