Package: wordnet Version: 1:3.0-13 Severity: normal There is a memory error in Wordnet 3.0 library when you perform the following 2 function calls with the arguments as shown:
SynsetPtr syn = findtheinfo_ds("agriculture", NOUN, COORDS, ALLSENSES); free_syns(syn); this will cause a crash (segmentation fault or coredump) at the end. I have created a patch for it that cleans up all dangling pointers, and uses the correct free_syns() calll instead of the free_synset() call at one location in the findtheinfo_ds() function. I am attaching the patch with this bug. (NOTE: I am using reportbug for the first time, so if the patch does not get attached, I apologize. I will try attaching it in response to this bug then.) Thanks. Vikas -- System Information: Debian Release: 5.0 APT prefers jaunty-updates APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty') Architecture: amd64 (x86_64) Kernel: Linux 2.6.28-16-generic (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages wordnet depends on: ii libc6 2.9-4ubuntu6.1 GNU C Library: Shared libraries ii libx11-6 2:1.1.99.2-1ubuntu2 X11 client-side library ii libxext6 2:1.0.99.1-0ubuntu3 X11 miscellaneous extension librar ii libxss1 1:1.1.3-1 X11 Screen Saver extension library ii tcl8.5 8.5.6-3 Tcl (the Tool Command Language) v8 ii tk8.5 8.5.6-3 Tk toolkit for Tcl and X11, v8.5 - ii wordnet-base 1:3.0-13 electronic lexical database of Eng wordnet recommends no packages. wordnet suggests no packages. -- no debconf information
wordnet3.0_lib_search_c_memory_patch
Description: Binary data