Bug #28218 | UDF strange behaviour | ||
---|---|---|---|
Submitted: | 3 May 2007 12:01 | Modified: | 3 May 2007 20:38 |
Reporter: | Francesco De Paolis | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: User-defined functions ( UDF ) | Severity: | S2 (Serious) |
Version: | Ver 14.12 Distrib 5.0.32 | OS: | Linux (Debian) |
Assigned to: | Hartmut Holzgraefe | CPU Architecture: | Any |
[3 May 2007 12:01]
Francesco De Paolis
[3 May 2007 14:07]
Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer versioon 5.0.37/5.0.38 or 5.0.40, and inform about the results. In case of the same problem, please, send the results of uname -a
[3 May 2007 14:41]
Francesco De Paolis
I'm working on Linux version 2.6.18-4-k7 (Debian 2.6.18.dfsg.1-12)
[3 May 2007 20:38]
Hartmut Holzgraefe
init/deinit handlers are called per statement, so the memory you allocated in udf_testalloc_init() has already been freed again by udf_testalloc_deinit() so the pointer you passed on to udf_testget() is no longer valid and is likely to he reallocated again and so overwritten already ...