Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on Sparc
  • Search

Bus error when using mysqldump

Have a Sparc system? Post here.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Biffen
n00b
n00b
Posts: 32
Joined: Tue Nov 23, 2004 8:35 am

Bus error when using mysqldump

  • Quote

Post by Biffen » Tue Dec 05, 2006 7:11 am

Hi,

I have problems after upgraded mysql from 4.1.21 to 5.0.26. I got bus error when using mysqldump, all works fine when using phpmyadmin dumping databases. Any tip whats wrong?

Netra X1 512 meg ram:
linux-2.4.32-sparc-r6

Greets,

Biffen
Top
Ferris
Retired Dev
Retired Dev
User avatar
Posts: 426
Joined: Mon Jan 13, 2003 5:33 pm
Location: N. Virginia (USA)

  • Quote

Post by Ferris » Tue Dec 05, 2006 12:49 pm

A bus error usually results from a data alignment problem. I can duplicate the problem, so I believe that the mysqldump program itself is creating misaligned data. There is nothing you can do yourself (unless you want to fix mysqldump), but you should file a bug report against mysql (which is where mysqldump comes from).

In other words, you are not doing anything wrong; mysqldump is. Please file a bug report at http://bugs.gentoo.org (with architecture = sparc) against dev-db/mysql-5.0.26.

(By the way, my experiences with that upgrade suggest that mysql-4.1.21 databases should work with mysql-5.0.26 without conversion. Are you seeing something different?)

Regards,
Ferris
Ferris McCormick (fmccor)
Gentoo/SPARC, Gentoo/Devrel, Gentoo/Userrel, Trustees
Top
Biffen
n00b
n00b
Posts: 32
Joined: Tue Nov 23, 2004 8:35 am

  • Quote

Post by Biffen » Thu Dec 07, 2006 8:46 am

Ferris wrote:A bus error usually results from a data alignment problem. I can duplicate the problem, so I believe that the mysqldump program itself is creating misaligned data. There is nothing you can do yourself (unless you want to fix mysqldump), but you should file a bug report against mysql (which is where mysqldump comes from).

In other words, you are not doing anything wrong; mysqldump is. Please file a bug report at http://bugs.gentoo.org (with architecture = sparc) against dev-db/mysql-5.0.26.

(By the way, my experiences with that upgrade suggest that mysql-4.1.21 databases should work with mysql-5.0.26 without conversion. Are you seeing something different?)

Regards,
Ferris
Ok, sending a bug report.

I used the http://www.gentoo.org/doc/en/mysql-upgrading.xml part 1 for upgrade.
Top
Biffen
n00b
n00b
Posts: 32
Joined: Tue Nov 23, 2004 8:35 am

  • Quote

Post by Biffen » Thu Dec 07, 2006 12:36 pm

Intresting... got this when I made a bug report:

"reopen once you've posted all the relevant information here."

How could I know whats relevant? =P
Top
Biffen
n00b
n00b
Posts: 32
Joined: Tue Nov 23, 2004 8:35 am

  • Quote

Post by Biffen » Thu Dec 07, 2006 12:48 pm

bug report here:

http://bugs.gentoo.org/show_bug.cgi?id=157408
Top
Biffen
n00b
n00b
Posts: 32
Joined: Tue Nov 23, 2004 8:35 am

  • Quote

Post by Biffen » Tue Dec 12, 2006 12:46 pm

Not fixed in the latest mysql-5.0.30.ebuild, will go back to mysql-4.1.21.
Last edited by Biffen on Thu Dec 14, 2006 7:03 am, edited 1 time in total.
Top
Ferris
Retired Dev
Retired Dev
User avatar
Posts: 426
Joined: Mon Jan 13, 2003 5:33 pm
Location: N. Virginia (USA)

  • Quote

Post by Ferris » Tue Dec 12, 2006 1:23 pm

As noted on your bug report, we know what and where the problem is, and the MySQL upstream developers have been notified. It's up to them to fix it, I think, because the failure comes from widening a pointer '(char*) arg' to reference it as '*(uint*) arg' --- something which is generally prohibited on sparc because of sparc's data alignment requirements. A patch is easy, but whether or not it is a good fix depends on just what MySQL has arg pointing to in the first place.
Ferris McCormick (fmccor)
Gentoo/SPARC, Gentoo/Devrel, Gentoo/Userrel, Trustees
Top
Biffen
n00b
n00b
Posts: 32
Joined: Tue Nov 23, 2004 8:35 am

  • Quote

Post by Biffen » Thu Dec 14, 2006 7:06 am

Ferris wrote:As noted on your bug report, we know what and where the problem is, and the MySQL upstream developers have been notified. It's up to them to fix it, I think, because the failure comes from widening a pointer '(char*) arg' to reference it as '*(uint*) arg' --- something which is generally prohibited on sparc because of sparc's data alignment requirements. A patch is easy, but whether or not it is a good fix depends on just what MySQL has arg pointing to in the first place.
Yes, time will tell. No problem for me, using 4.1.21 for now.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Gentoo on Sparc”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy