Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-22-2003, 12:26 AM
|
#1
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Rep:
|
MySQLCC segmentation fault
Are there anyone using MySQLCC?Please give me some hints of the following error.
My problem is...I have successfully installed MySQL server on my Linux server.However,I am pretty lazy to work with my MySQL server via command line so I chose MySQLCC as my GUI.Unfortunately,when I have installed it and run it,it generated a "Segmentation fault" error in my console. What's that?  And I have found this forum around and couldn't find an answer.Would you guys give me a clue?Thanks. 
|
|
|
09-22-2003, 06:58 AM
|
#2
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
Anyone?
Did anyone overcome this problem?Please reply.I am frustrated.... 
|
|
|
09-22-2003, 08:57 AM
|
#3
|
Member
Registered: May 2003
Location: Stockholm/Sweden
Distribution: Fedora Core 1
Posts: 123
Rep:
|
I've also had that problem... anyone know how to fix it?
|
|
|
09-22-2003, 09:05 AM
|
#4
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
You might want to trace what its doing using strace. So from an xterm run "strace mysqlcc > debug.output 2> &1" then see what is in debug.output - it might give you some clues. Have any entries been written to the system logs that might give a hint too?
cheers
Jamie...
|
|
|
09-22-2003, 10:50 AM
|
#5
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
Horrible debug.output
First off,thank you for your reply, jharris.
I have generated a debug.output log tonight.The output is astonishing!!!The output are as follows:
execve("./mysqlcc", ["./mysqlcc"], [/* 30 vars */]) = 0
uname({sys="Linux", node="192.168.0.5", ...}) = 0
brk(0) = 0x8733ce8
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/qt/lib/i686/mmx/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/qt/lib/i686/mmx", 0xbfffe550) = -1 ENOENT (No such file or directory)
open("/usr/local/qt/lib/i686/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file
or directory)
stat64("/usr/local/qt/lib/i686", 0xbfffe550) = -1 ENOENT (No such file or directory)
open("/usr/local/qt/lib/mmx/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/qt/lib/mmx", 0xbfffe550) = -1 ENOENT (No such file or directory)
open("/usr/local/qt/lib/libXext.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/local/qt/lib", 0xbfffe550) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=38277, ...}) = 0
old_mmap(NULL, 38277, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3) = 0
.....and much more.....
jharris,do you think the problem lies on qt package or something?Because I found this log mentioned about gt.Should I get a new GT or something?Any suggestion is appreciated! 
Last edited by Swift&Smart; 09-22-2003 at 10:59 AM.
|
|
|
09-22-2003, 10:58 AM
|
#6
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
The last few lines of the output should show you what happened just before the process seg faults. Post those and we can take a look.
cheers
Jamie...
|
|
|
09-22-2003, 11:04 AM
|
#7
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
Please take a look...
jharris,you replied my message very fast!Thanks.
Here is the error:
socket(PF_UNIX, SOCK_STREAM, 0) = 6
fcntl64(6, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(6, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(6, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(6, {sin_family=AF_UNIX, path="/tmp/mysql.sock"}, 110) = -1 ECONNREFUSED
(Connection refused)
fcntl64(6, F_SETFL, O_RDWR) = 0
shutdown(6, 2 /* send and receive */) = 0
close(6) = 0
--- SIGSEGV (Segmentation fault) ---
Thanksssss a lot. 
|
|
|
09-23-2003, 05:54 AM
|
#8
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Looks to me like it tries to connect to your local MySQL server via /tmp/mysql.sock fails then dies. Are you running a local MySQL server? Such a failure shouldn't cause MySQLcc to die like this.
cheers
Jamie...
|
|
|
09-23-2003, 07:05 AM
|
#9
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
Well, I love using a gui for all my MySQL stuff but like you guys I had serious issues with mysqlcc. It would randomly crash and give seg faults left and right. What I've found is that for some reason the older version are more stable. I believe the version I am using now is the first mysqlcc ever released. It hasn't crashed on me yet...
/me crosses his fingers
|
|
|
09-23-2003, 10:53 AM
|
#10
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
Old version???
Thanks again, jharris,Crashed_Again.
By the way,my mysql.sock's permission is 777.So,why does it generate this error??Yeah, Crashed_Again,what's the stable version?Would you mind giving me some hints?
P.S. I have tried MySQLCC 0.8.3 and it didn't have segmentation fault.However,it has connection failed!!!!The password is correct.....
Thanks a lot. 
Last edited by Swift&Smart; 09-23-2003 at 11:46 AM.
|
|
|
11-02-2003, 08:33 PM
|
#11
|
LQ Newbie
Registered: Nov 2003
Posts: 1
Rep:
|
hi Swift&Smart,
I am experiencing the same thing. Have you found a solution?
Recently I discovered that the problem disappears when run
as root. My mysql.sock's permissions are also 777.
Does this make sense to anyone?
cheers.
|
|
|
11-03-2003, 08:51 AM
|
#12
|
Member
Registered: Jan 2003
Location: Hong Kong,China
Distribution: Slackware,OpenSUSE
Posts: 472
Original Poster
Rep:
|
No solution...
Thanks for your reply, dclett.
Indeed,I can't find any solution on this problem.As long as I can remember,I have no successful history on running MySQLCC.I opted to use command line instead of GUI.  Command line is wasting my time....
Maybe I wouldn't figure out this problem in depth,because I know how to use command to control the database.
However,if you have the solution,I welcome you post your solution here. 
|
|
|
All times are GMT -5. The time now is 07:50 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|