I was using org-mode 5.21 with xemacs 21.4.21 till now and I decided to upgrade to org mode 5.23a. When I try to open an org mode file, org mode fails to start with the following backtrace (attached as well) ...

I believe I removed the org mode bytecode to make sure the backtrace has the actual code, but please let me know if you want me to do anything else for better error reporting.

Thanks,
Jose

  # bind (standard-output stack-trace-on-signal debug-on-signal stack-trace-on-error debug-on-error newfun oldfun)
  define-obsolete-function-alias(org-get-legal-level org-get-valid-level "23.1")
  # bind (current-load-list)
  # (unwind-protect ...)
  # bind (load-file-name)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  # (unwind-protect ...)
  load-internal("org" nil nil nil nil nil)
  # bind (nosuffix nomessage noerror file)
  load("org" nil nil nil)
  # (unwind-protect ...)
  org-mode()
  # bind (alist mode name keep-going)
  # (unwind-protect ...)
  # bind (just-from-file-name)
  set-auto-mode()
  byte-code("..." [set-auto-mode t] 1)
  # (condition-case ... . ((error (byte-code "ÁÂÃ!\"ˆÄ‡" ... 4))))
  # bind (find-file)
  normal-mode(t)
  # bind (nomodes after-find-file-from-revert-buffer noauto warn error)
  after-find-file(nil t)
  byte-code("..." [buffer-file-number number truename buffer-file-truename buf buffer-file-name set-buffer-major-mode erase-buffer nil (byte-code "«‡Â    Ã\"ˆª…Ä    Ã\"ˆÂ‡" [rawfile filename insert-file-contents-literally t insert-file-contents] 3) ((file-error ...)) abbreviate-file-name file-name-directory make-local-variable backup-inhibited t after-find-file find-file-use-truenames default-directory backup-enable-predicate rawfile error nowarn] 3)
  # (condition-case ... . ((t (byte-code "Â!ˆÃ    @    A\"‡" ... 3))))
  # (unwind-protect ...)
  # bind (error number truename buf rawfile nowarn filename)
  find-file-noselect("/users/jrobins/org/work.org")
  # bind (codesys filename)
  find-file("/users/jrobins/org/work.org")
  # bind (dir file-count line end-of-options file-p arg tem)
  command-line-1()
  # bind (command-line-args-left)
  command-line()
  # (condition-case ... . ((t (byte-code "    ‡" ... 1))))
  # bind (error-data)
  normal-top-level()
  # (condition-case ... . error)
  # (catch top-level ...)