General

Profile

jurij (Jurij Smakov)

  • Login: jurij
  • Email: jurij@wooyd.org
  • Registered on: 09/06/2011
  • Last sign in: 11/14/2011

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

11/14/2011

05:38 AM Ruby Bug #5244: Continuation causes Bus Error on Debian sparc
Does it work if you replace ("flushw" : : : "%o7") with just ("flushw")? If it is, then it just has to be protected by #ifdef __GNUC__, i.e. the body of the function should look something like this (untested):
void flush_sparc_registe...
jurij (Jurij Smakov)

11/10/2011

05:56 AM Ruby Bug #5493: Commit r33357 breaks build on Debian/sparc
I've noticed that a failure to create a timer thread causes the following to appear in dmesg:
[ 2047.656289] FAULT[miniruby:2299]: 32-bit process reports 64-bit fault address [16fdf6d9d]
[ 2047.764409] TSTATE: 0000008011001600 TPC: 0...
jurij (Jurij Smakov)

11/03/2011

07:58 AM Ruby Bug #5244: Continuation causes Bus Error on Debian sparc
Attached is a patch for this problem, fixing the issue by moving the windows-flushing instruction into a separate function on sparc. It will still use flushw any sparcv9-capable machine irrespective of the OS. I've verified that it fixes... jurij (Jurij Smakov)

10/28/2011

07:56 AM Ruby Bug #5493: Commit r33357 breaks build on Debian/sparc
Ok, the story is probably more complicated than just this commit breaking it. I tried reverting r33357 in the latest SVN snapshot, and it still fails when configuring fiddle. jurij (Jurij Smakov)
07:14 AM Ruby Bug #5493 (Rejected): Commit r33357 breaks build on Debian/sparc
While trying to build the Ruby SVN nightly snapshot I found that it fails while configuring fiddle:
[...]
configuring digest/sha2
configuring dl
configuring dl/callback
configuring dl/win32
Failed to configure dl/win32. It will ...
jurij (Jurij Smakov)

10/22/2011

08:04 AM Ruby Bug #5244: Continuation causes Bus Error on Debian sparc
Sorry, but this is not a proper fix. While it will fix the immediate problem for Debian, other systems will still be affected. Out of curiosity I tried building the latest svn snapshot (including this fix) on a freebsd/sparc64 system, an... jurij (Jurij Smakov)

10/19/2011

04:11 PM Ruby Bug #5244: Continuation causes Bus Error on Debian sparc
My machine is UltraSparc III based, so it's a v9 and 64-bit. For historical reasons though Debian is using 64-bit kernel and 32-bit userspace:
jurij@debian:~$ gcc -E -dM -xc /dev/null | grep -i -e sparc -e arch64
#define sparc 1
#de...
jurij (Jurij Smakov)
08:05 AM Ruby Bug #5244: Continuation causes Bus Error on Debian sparc
I think we figured it out. The problem arises in cont_save_machine_stack() function, where the register windows are flushed using 'flushw' assembler instruction, and the machine stack is then saved by memcpy'ing it from cont->machine_sta... jurij (Jurij Smakov)

10/14/2011

08:19 AM Ruby Bug #5244: Continuation causes Bus Error on Debian sparc
Discussion of this issue is ongoing in this thread on sparclinux mailing list: http://marc.info/?t=131806608400002&r=1&w=2. jurij (Jurij Smakov)

10/07/2011

12:33 AM Ruby Bug #5244: Continuation causes Bus Error on Debian sparc
I looked at it some more (ruby1.9.1-1.9.3~preview1+svn33236 now), and tried to figure out what goes wrong by comparing the binaries compiled with -O0 and -O2. The call to ruby_longjmp does not look suspicious, I've verified that in both ... jurij (Jurij Smakov)

Also available in: Atom