Bug 710671 - Sabayon crashes with error: 'h' format requires -32768 <= number <= 32767
Summary: Sabayon crashes with error: 'h' format requires -32768 <= number <= 32767
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: sabayon
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomáš Bžatek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-04 00:42 UTC by Daniel Rowe
Modified: 2015-03-03 23:00 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-08-07 18:47:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Daniel Rowe 2011-06-04 00:42:58 UTC
Description of problem:

Sabayon crashes on Fedora 14 and Fedora 15 with this error when clicking the edit button:

MainThread 2011/06/04 00:00:53.0940 (admin-tool): Creating profiles dialog
MainThread 2011/06/04 00:00:53.1339 (admin-tool): Starting main loop
MainThread 2011/06/04 00:00:59.9383 (USER): Starting to edit profile 'test'
MainThread 2011/06/04 00:01:00.3422 (sabayon-session): Starting session window for profile_name='test', profile_path='/tmp/profile-sabayon-wNKPIy.zip', display_number='1'
MainThread 2011/06/04 00:01:00.3709 (proto-session): Running sabayon-apply: ['/usr/sbin/sabayon-apply', '-s', 'test', '--admin-log-config=/etc/sabayon/sabayon-debug-log.conf', '--readable-log-config=/tmp/tmpkLbaOx']
MainThread 2011/06/04 00:01:00.4943 (sabayon-apply): Applying profile 'test' for user 'sabayon'
Success: created profile 'sabayon' at '/tmp/sabayon-temp-home-59Gu7u/.mozilla/firefox/f9rpxghl.sabayon/prefs.js'
MainThread 2011/06/04 00:01:00.6207 (sabayon-apply): Finished applying profile 'test' for user 'sabayon'
===== BEGIN MILESTONES (/usr/sbin/sabayon-apply) =====
MainThread 2011/06/04 00:01:00.4943 (sabayon-apply): Applying profile 'test' for user 'sabayon'
MainThread 2011/06/04 00:01:00.6207 (sabayon-apply): Finished applying profile 'test' for user 'sabayon'
===== END MILESTONES (/usr/sbin/sabayon-apply) =====
===== BEGIN RING BUFFER (/usr/sbin/sabayon-apply) =====
MainThread 2011/06/04 00:01:00.4943 (sabayon-apply): Applying profile 'test' for user 'sabayon'
MainThread 2011/06/04 00:01:00.6207 (sabayon-apply): Finished applying profile 'test' for user 'sabayon'
===== END RING BUFFER (/usr/sbin/sabayon-apply) =====


This configuration for the debug log can be re-created
by putting the following in /etc/sabayon/sabayon-debug-log.conf
(use ';' to separate domain names):

[debug log]
max lines = 1000
MainThread 2011/06/04 00:01:00.6416 (proto-session): Finished running sabayon-apply with normal exit status
MainThread 2011/06/04 00:01:00.8025 (sabayon-session): Entering main loop.  Wheeee!
MainThread 2011/06/04 00:01:00.8338 (admin-tool): Got fatal error: Fatal exception in callback; exiting main loop
MainThread 2011/06/04 00:01:00.8345 (admin-tool): Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sabayon/errors.py", line 125, in wrapper
    return func (*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/sabayon/sessionwindow.py", line 330, in __session_mapped
    self.session.start (str (self.session_widget.session_window.xid))
  File "/usr/lib64/python2.7/site-packages/sabayon/protosession.py", line 490, in start
    self.__start_xephyr (parent_window)
  File "/usr/lib64/python2.7/site-packages/sabayon/protosession.py", line 326, in __start_xephyr
    self.xephyr_xauth_file = self.__write_temp_xauth_file (True)
  File "/usr/lib64/python2.7/site-packages/sabayon/protosession.py", line 283, in __write_temp_xauth_file
    xauth_data_len) + xauth_data
error: 'h' format requires -32768 <= number <= 32767

MainThread 2011/06/04 00:01:00.8392 (sabayon-session): Terminating
MainThread 2011/06/04 00:01:00.8393 (sabayon-session): Exiting abnormally; dumping log due to a fatal error
===== BEGIN MILESTONES (/usr/libexec/sabayon-session) =====
MainThread 2011/06/04 00:01:00.3422 (sabayon-session): Starting session window for profile_name='test', profile_path='/tmp/profile-sabayon-wNKPIy.zip', display_number='1'
MainThread 2011/06/04 00:01:00.3709 (proto-session): Running sabayon-apply: ['/usr/sbin/sabayon-apply', '-s', 'test', '--admin-log-config=/etc/sabayon/sabayon-debug-log.conf', '--readable-log-config=/tmp/tmpkLbaOx']
MainThread 2011/06/04 00:01:00.6416 (proto-session): Finished running sabayon-apply with normal exit status
MainThread 2011/06/04 00:01:00.8025 (sabayon-session): Entering main loop.  Wheeee!
MainThread 2011/06/04 00:01:00.8338 (admin-tool): Got fatal error: Fatal exception in callback; exiting main loop
MainThread 2011/06/04 00:01:00.8345 (admin-tool): Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sabayon/errors.py", line 125, in wrapper
    return func (*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/sabayon/sessionwindow.py", line 330, in __session_mapped
    self.session.start (str (self.session_widget.session_window.xid))
  File "/usr/lib64/python2.7/site-packages/sabayon/protosession.py", line 490, in start
    self.__start_xephyr (parent_window)
  File "/usr/lib64/python2.7/site-packages/sabayon/protosession.py", line 326, in __start_xephyr
    self.xephyr_xauth_file = self.__write_temp_xauth_file (True)
  File "/usr/lib64/python2.7/site-packages/sabayon/protosession.py", line 283, in __write_temp_xauth_file
    xauth_data_len) + xauth_data
error: 'h' format requires -32768 <= number <= 32767

MainThread 2011/06/04 00:01:00.8392 (sabayon-session): Terminating
MainThread 2011/06/04 00:01:00.8393 (sabayon-session): Exiting abnormally; dumping log due to a fatal error
===== END MILESTONES (/usr/libexec/sabayon-session) =====
===== BEGIN RING BUFFER (/usr/libexec/sabayon-session) =====
MainThread 2011/06/04 00:01:00.3422 (sabayon-session): Starting session window for profile_name='test', profile_path='/tmp/profile-sabayon-wNKPIy.zip', display_number='1'
MainThread 2011/06/04 00:01:00.3709 (proto-session): Running sabayon-apply: ['/usr/sbin/sabayon-apply', '-s', 'test', '--admin-log-config=/etc/sabayon/sabayon-debug-log.conf', '--readable-log-config=/tmp/tmpkLbaOx']
MainThread 2011/06/04 00:01:00.6416 (proto-session): Finished running sabayon-apply with normal exit status
MainThread 2011/06/04 00:01:00.8025 (sabayon-session): Entering main loop.  Wheeee!
MainThread 2011/06/04 00:01:00.8338 (admin-tool): Got fatal error: Fatal exception in callback; exiting main loop
MainThread 2011/06/04 00:01:00.8345 (admin-tool): Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/sabayon/errors.py", line 125, in wrapper
    return func (*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/sabayon/sessionwindow.py", line 330, in __session_mapped
    self.session.start (str (self.session_widget.session_window.xid))
  File "/usr/lib64/python2.7/site-packages/sabayon/protosession.py", line 490, in start
    self.__start_xephyr (parent_window)
  File "/usr/lib64/python2.7/site-packages/sabayon/protosession.py", line 326, in __start_xephyr
    self.xephyr_xauth_file = self.__write_temp_xauth_file (True)
  File "/usr/lib64/python2.7/site-packages/sabayon/protosession.py", line 283, in __write_temp_xauth_file
    xauth_data_len) + xauth_data
error: 'h' format requires -32768 <= number <= 32767

MainThread 2011/06/04 00:01:00.8392 (sabayon-session): Terminating
MainThread 2011/06/04 00:01:00.8393 (sabayon-session): Exiting abnormally; dumping log due to a fatal error
===== END RING BUFFER (/usr/libexec/sabayon-session) =====


This configuration for the debug log can be re-created
by putting the following in /etc/sabayon/sabayon-debug-log.conf
(use ';' to separate domain names):

[debug log]
max lines = 1000
MainThread 2011/06/04 00:01:00.8911 (admin-tool): Got fatal error: sabayon-session exited with a FATAL ERROR (exit code 1)
usermod: user sabayon is currently logged in
MainThread 2011/06/04 00:01:01.2630 (USER): Finishing editing profile
MainThread 2011/06/04 00:01:01.2636 (admin-tool): Terminating main loop
MainThread 2011/06/04 00:01:01.2637 (admin-tool): Exiting abnormally; dumping log due to a fatal error
Dumped debug log to /root/sabayon-debug-log-2011-06-04-00-01-01.txt

The real issue here is: error: 'h' format requires -32768 <= number <= 32767

This can be fixed by changing line 276 of protosession.py from:

pack_format = ">hh%dsh%dsh%dsh%d" % (display_addr_len, display_num_len, xauth_name_len, xauth_data_len)

to:

pack_format = ">lh%dsh%dsh%dsh%d" % (display_addr_len, display_num_len, xauth_name_len, xauth_data_len)

Comment 1 Daniel Rowe 2011-06-04 04:55:55 UTC
Saybon needs the gnome-icon-theme-legacy.noarch package as well and will not work with out it. So with Sabayon the package dependences are broken as it should install this automatically.

Comment 2 Fedora End Of Life 2012-08-07 18:47:32 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.