Peter’s blog

  • rss
  • Home
  • About
  • Contact

xemacs 21.4.17 and Tiger

Peter Skarpetis | April 30, 2005 | 8:15 pm

Crash and burn

That is just what xemacs 21.4.17 does when running on Mac OS X Tiger under X11. It simply crashes during initialisation. If you unset the DISPLAY environment variable so that the ncurses version comes up, it works fine. I tried the beta version of xemacs, version 21.5.20 and it also works fine.

After a quick run with gdb it seems the culprit is the call to NSCreateObjectFileImageFromFile(fname, &file); In previous versions of Mac OS X passing a NULL pointer for filename used to cause NSCreateObjectFileImageFromFile to return a dll handle to the current process image but in Tiger is just crashes with:

Thread 0 Crashed:
0 dyld 0x8fe1e900 strncmp + 224
1 dyld 0x8fe04f68 dyld::loadPhase3(char const*, dyld::LoadContext const&, std::vector<char const*, std::allocator<char const*> >*) + 56
2 dyld 0x8fe05638 dyld::loadPhase0(char const*, dyld::LoadContext const&, std::vector<char const*, std::allocator<char const*> >*) + 468

It seems that some Darwin developer somewhere broke the dyld::loadPhase3() routine during their latest programming efforts.

A quick and dirty workaround is to edit the file src/device-x.c, line 505 and change

dll_handle xaw_dll_handle = dll_open (NULL);

to

dll_handle xaw_dll_handle = dll_open (”/usr/local/bin/xemacs”);

If your xemacs is not installed in /usr/local/bin then just change the above string to point to the location its installed in.

Hopefully some xemacs development guys read this and fix it properly by propagating argv[0] to x_init_device()

Technorati Tags: macosx, tiger, xemacs

Comments
No Comments »
Categories
Apple
Comments rss Comments rss
Trackback Trackback

mysql_history and passwords

Peter Skarpetis | April 20, 2005 | 10:00 pm

In order to provide the up/down arrow command history, the mysql program stores anything you type in the file .mysql_history in your home directory. For most commands this is ok but what about grant statements?

If you regularly use grant or update statements to add or modify users and passwords, then anyone with read access to the file .mysql_history can see the usernames and passwords required to gain access to your database.

To avoid such security traps just use your favourite text editor and delete the offending lines from the file ~/.mysql_history. Do this each time you issue a grant or update statement containing a password and your site will be much more secure.

Technorati Tags: mysql, security

Comments
No Comments »
Categories
Blogged
Comments rss Comments rss
Trackback Trackback

Safari 1.3 shenanigans

Peter Skarpetis | April 17, 2005 | 6:32 pm

It just upgraded all my home macs to Mac OS X 10.3.9 which also includes a new version of Safari 1.3. It seems that the first time you run the newly installed Safari some standard bookmarks are created on your bookmark bar. These include bookmarks to news, .mac, apple.com, yahoo.com and a few others.

This is bad form by Apple. These standard bookmarks should only be created for a new installation and not for an existing one.

Technorati Tags: macosx, safari

Comments
No Comments »
Categories
Blogged
Comments rss Comments rss
Trackback Trackback

« Previous Entries


Recent Posts

  • Chatswood Apple store opening soon
  • Manly Dam mountain biking track
  • Scott bike frame falls to pieces
  • Internet kiosk uses Ubuntu
  • udrepper: Memory and Cache Paper
  • Hasselblad’s 39 megapixel H3DII-39MS DSLR brings the multi-shot
  • Switched from Firefox to Opera
  • Mountain Bike Hits 130.7 MPH … on Snow
  • We’ve won!
  • Apple cuts us off

Categories

  • Apple
  • Blogged
  • Cycling
  • Linux
  • Photos
  • Programming
  • Videos

Blogroll

  • My Wiki
  • Serendipity Software
  • Wing

Recent Comments

  • David on Getting a handle on usbprint.sys
  • Brandon on Getting a handle on usbprint.sys
  • aris on Manly Dam mountain biking track
  • Peter Skarpetis on My new bitching mythtv box
  • kc on My new bitching mythtv box
  • Peter Skarpetis on My new bitching mythtv box
  • kc on My new bitching mythtv box
  • Danny Lauwers on Getting a handle on usbprint.sys
  • Ramgopal Kota on Getting a handle on usbprint.sys
  • Yogish on Getting a handle on usbprint.sys

Tags

Apple australia biking mountain sydney
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox