From: Tim W. <Tim...@pi...> - 2004-07-05 07:05:50
|
Greetings Programs! I encountered a problem running perfparse (v0.10 and v0.0.11): whenever I run it to parse the log file, it gives me a segmentation fault. As long as you don't request to parse the logfile, e.g. by using --help or --show-config, it runs fine. So I dug into the code and found that the call to the mysql library to connect to the db (in common.c) causes the segmentation fault. I have no clue as to why. I compiled a small program that connects to the database using the same call with the same parameters, and that works perfectly. I circumvented the problem by using mysql_connect and mysql_select_db instead of mysql_real_connect. This works fine! The only problem with this construct is that according to the mysql manual, the mysql_connect function is deprecated. A few questions about this: - Am I the only one experiencing this problem? - What more info do you (the developers) need to look into this? (providing you'd want to :) ) Regards, Tim. |