I have emerged mysqlcc (QT application) twice and it keeps segfaulting... It only crashes if I run it at normal user; if I run it as root, it works.
Here is the backtrace I get if I run it in the debugger:
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)...
(gdb) r
Starting program: /usr/bin/mysqlcc
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[New Thread 16384 (LWP 5952)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 5952)]
0x406baa87 in QTextCodec::fromUnicode(QString const&) const () from /usr/qt/3/lib/libqt-mt.so.3
(gdb) where
#0 0x406baa87 in QTextCodec::fromUnicode(QString const&) const () from /usr/qt/3/lib/libqt-mt.so.3
#1 0x0815b98f in QMap<QString, QString>::operator[](QString const&) ()
#2 0x0815b6cc in QMap<QString, QString>::operator[](QString const&) ()
#3 0x080b2db4 in QPtrList<QWidget>::deleteItem(void*) ()
#4 0x080ea4c9 in QMapIterator<QString, QString>::inc() ()
#5 0x080ea465 in QMapIterator<QString, QString>::inc() ()
#6 0x0813c0e1 in QValueList<QString>::detach() ()
#7 0x0813c8e6 in QValueList<QString>::detach() ()
#8 0x0813d2ef in QValueList<QString>::detach() ()
#9 0x0813b0f3 in QValueList<QString>::detach() ()
#10 0x40a717a7 in __libc_start_main () from /lib/libc.so.6
(gdb)
I now remember that when I first installed Gentoo, as I kept my initial .bash_profile I had the same problem with all programs (ls included). No command worked until I erased my old .bash_profile (which contained all kinds of variable settings)
I guess this is all about an environment problem. Maybe the wrong library gets found at runtime ? Here is my environment.
I'm a complete n00b when it comes to MySQL and mysqlcc, but I came across this exact same problem today when I fired up mysqlcc for the first time ever. I quickly realised it would segmentation fault if I specified anything in the 'Name' field. If I leave it blank, it works fine.
Just continuing an old thread because of the same problem without resolution. I emerged mysqlcc 0.93 today and everytime I run it I get a segmentation fault. It doesn't matter if I run it as root or as a normal user, as soon as I push a button (any button) or select anything from any of the drop down menus, the segmetation fault occurs. I have used this when working with Windows and would like to continue using it now that I am moving to Linux (yay!).
I'm experiencing the same problem with 0.9.3. Per a suggestion earlier in this thread, I was going to reinstall 0.9.2, however, when I looked in my portage directory I see that in a recent emerge sync all ebuilds for mysqlcc except for the masked 0.9.4 are no longer present. I'm going to try the 0.9.4 and see if that works any better, but I am curious what's happened to the older ebuilds. It seems odd to delete all of the stable versions while 0.9.4 is still masked......
20 Aug 2004; Carsten Lohrke <carlo@gentoo.org>
-files/mysqlcc-0.9.3-libmysqlclientac.patch,
+files/mysqlcc-0.9.4-shutdown.patch, -mysqlcc-0.9.3.ebuild,
+mysqlcc-0.9.4-r1.ebuild, -mysqlcc-0.9.4.ebuild:
stable on x86, will be package.masked shortly, #60745
02 Jun 2004; Aron Griffis <agriffis@gentoo.org> mysqlcc-0.9.3.ebuild,
mysqlcc-0.9.4.ebuild:
Fix use invocation
09 May 2004; <SeJo@gentoo.org> mysqlcc-0.9.4.ebuild:
added ~ppc keyword
30 Mar 2004; Daniel Ahlberg <aliz@gentoo.org> mysqlcc-0.9.4.ebuild:
Adding amd64 keyword. Closing #43597.
*mysqlcc-0.9.4 (29 Dec 2003)
And so forth. I must be blind, because I see no reference to mysqlcc being completely removed from portage.
2) If it is being discontinued, why does that necessitate removing all ebuilds? Does gentoo require that all ebuilds in portage be currently supported? With the understanding of caveat emptor in place (which is always the case with such things), it seems a shame to remove wholesale a still useful and popular application from portage, even if it won't be developed further. Someone Else's Decision (possibly yours), of course, but I'm still saddened to see it go.
20 Aug 2004; Carsten Lohrke <carlo@gentoo.org>
-files/mysqlcc-0.9.3-libmysqlclientac.patch,
+files/mysqlcc-0.9.4-shutdown.patch, -mysqlcc-0.9.3.ebuild,
+mysqlcc-0.9.4-r1.ebuild, -mysqlcc-0.9.4.ebuild: stable on x86, will be package.masked shortly, #60745
2) If it is being discontinued, why does that necessitate removing all ebuilds?
Known bugs. It is not removed yet, btw. - but it will.
Does gentoo require that all ebuilds in portage be currently supported?
It depends. If an application is bug free, then there is no need to remove it.
it seems a shame to remove wholesale a still useful and popular application from portage, even if it won't be developed further.
You can unmask it, if it makes sense for you. Even after removal of ebuilds, you can grab them via webcvs and put them in your local overlay.
Please make sure that you have searched for an answer to a question after reading all the relevant docs.