>Description:
When using UDF with parametrs in 3.23 mysqld hangs with a
SIGSEGV.
Using gdb seem that the problem is at line 1084 of item_func.cc,
String *res=args[i]->val_str(&buffers[str_count++]);
It seem that args=NULL.
Calling a UDF with no parameters it works.
>How-To-Repeat:
Compile udf_example.cc with --shared -o udf_example.so
CREATE FUNCTION metaphone RETURNS STRING SONAME
"udf_example.so";
SELECT metaphone("Test");
>Fix:
>Submitter-Id: Cristian Giussani ( giussani@stripped )
>Originator: root
>Organization:
>MySQL support: licence
>Synopsis: UDF not working in 3.23
>Severity: non-critical
>Priority: medium
>Category: mysql
>Class: sw-bug
>Release: mysql-3.23.4-alpha (Source distribution)
>Environment:
<machine, os, target, libraries (multiple lines)>
System: Linux black 2.2.12 #12 SMP Fri Aug 27 07:41:57 CEST 1999 i686
unknown
Architecture: i686
Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc
/usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/specs
gcc version 2.7.2.3
Compilation info: CC='gcc' CFLAGS='' CXX='c++' CXXFLAGS=''
LDFLAGS=''
LIBC:
lrwxrwxrwx 1 root root 13 Mar 26 1998 /lib/libc.so.6 ->
libc-2.0.7.so
-rwxr-xr-x 1 root root 3070220 Oct 13 1998
/lib/libc-2.0.7.so
-rw-r--r-- 1 root root 7603158 Oct 13 1998 /usr/lib/libc.a
-rw-r--r-- 1 root root 178 Oct 13 1998 /usr/lib/libc.so
Configure command: ./configure --prefix=/usr/local/mysql
--enable-assembler --with-debug
Perl: This is perl, version 5.004_04 built for i386-linux