Package: python-nflog
Version: 0.2-3~weasel1
Severity: normal

When not running as root, python-nflog will cause a segfault, presumably
in try_run:

| weasel@valiant:~$ cat test
| #!/usr/bin/python
| 
| import socket, nflog
| 
| def cb(payload):
|         print "python callback called !"
| 
| l = nflog.log()
| 
| print "setting callback"
| l.set_callback(cb)
| 
| print "open"
| l.fast_open(1, socket.AF_INET)
| 
| print "trying to run"
| try:
|         l.try_run()
| except KeyboardInterrupt, e:
|         print "interrupted"
| 
| 
| print "unbind"
| l.unbind(socket.AF_INET)
| 
| print "close"
| l.close()
| weasel@valiant:~$ ./test
| setting callback
| open
| ERROR error during nflog_unbind_pf()
| ERROR error during nflog_bind_pf()
| trying to run
| setting copy_packet mode
| zsh: segmentation fault  ./test
| e139:weasel@valiant:~$ 


I guess that case ought to be handled better :)


I would also argue, that a library has no business printing to
stdout - log_try_run() does that.

Cheers,
weasel


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to