Re: Compiling ext2fs.static with pthreads

2012-08-15 Thread Thomas DiModica
>How I got around this was to apply Thomas Schwinge's fix_have_kernel_resources >branch to libpthread. Basically, the first thread structure allocated is not >zeroed out, >so have_kernel_resources is some random non-zero number, and thus the thread >neither gets a wakeup port, nor does the kernel_

Re: Compiling ext2fs.static with pthreads

2012-08-15 Thread Thomas DiModica
- Original Message - From: Richard Braun To: Thomas Thomas Cc: bug-hurd@gnu.org Sent: Wednesday, August 15, 2012 3:24 AM Subject: Re: Compiling ext2fs.static with pthreads >On Tue, May 08, 2012 at 07:16:09PM -0700, Thomas Thomas wrote: >> So, it runs as a translator. Spews

Re: Compiling ext2fs.static with pthreads

2012-08-15 Thread Richard Braun
On Wed, Aug 15, 2012 at 11:24:20AM +0200, Richard Braun wrote: > What prevents _hurdsig_init from being called unconditionally and > earlier ? In the meantime, I merely made sigstate_is_global_rcv check that _hurd_global_sigstate isn't NULL. Now I have a subhurd completely populated by pthreads-en

Re: Compiling ext2fs.static with pthreads

2012-08-15 Thread Richard Braun
On Tue, May 08, 2012 at 07:16:09PM -0700, Thomas Thomas wrote: > So, it runs as a translator. Spews out some unexpected debugging info that > Barry > added, but I can add files, delete files, list directories, etc. I haven't > tested it under > load, however. Thank you for the link on debugging t

Re: Compiling ext2fs.static with pthreads

2012-05-10 Thread Thomas Thomas
Some notes here, now that I've thought some more and done some more: >> I caught the output of make to get the full compile command and added >> ../libpthread/cancel-cond.o into it manually, and saved it as a shell script. >> Barry, or someone, rewrote cancel-cond.c from cthreads into a pthreads

Re: Compiling ext2fs.static with pthreads

2012-05-08 Thread Thomas Schwinge
I haven't > tested it under > load, however. Oh great! I'm not sure if somebody already had gotten that far before you. :-) If you can, please do some more testing. If you're confident you can also use it for your main system's rootfs or any other mount points (be

Re: Compiling ext2fs.static with pthreads

2012-05-08 Thread Thomas Thomas
> Hi! Howdy. >On Sun, 6 May 2012 09:25:11 -0700 (PDT), Thomas Thomas >wrote: >> I played around and got it to compile, though how I did so is a nasty hack. >What kind of? I caught the output of make to get the full compile command and added ../libpthread/cancel-cond.o into it manually, and

Re: Compiling ext2fs.static with pthreads

2012-05-07 Thread Thomas Schwinge
Hi! On Sun, 6 May 2012 09:25:11 -0700 (PDT), Thomas Thomas wrote: > I played around and got it to compile, though how I did so is a nasty hack. What kind of? > Should ext2fs.static compiled with pthreads be able to run on cthreads Hurd? > It's a statically linked program that

Re: Compiling ext2fs.static with pthreads

2012-05-06 Thread Thomas Thomas
I played around and got it to compile, though how I did so is a nasty hack. Should ext2fs.static compiled with pthreads be able to run on cthreads Hurd? It's a statically linked program that should have no external dependencies, so it should run in any environment, right? Thomas D

Compiling ext2fs.static with pthreads

2012-05-03 Thread Thomas Thomas
I've applied Barry's patch, and removed all cthreads references that I can find (in the code that gets compiled). I compiled everything in the source tree, so I clobbered the linker script version of libpthread.a. In attempting to run ext2fs.static, I get an assertion failure in pthread

[bug #17131] Different behavior of ext2fs and ext2fs.static

2011-05-21 Thread Harish Badrinath
Follow-up Comment #1, bug #17131 (project hurd): This is old, but still would be help to new Hurd users. The only blocksize supported is 4096. Do "mkfs.ext2 -b 4096 /target/location" and then you can mount it as "settrans -ca /mount/point /hurd/ext2fs /target/location" ___

Re: ext2fs.static: thread-cancel.c:55: hurd_thread_cancel: Assertion '! __spin_lock_locked (&ss->critical_section_lock)' failed

2007-07-19 Thread Thomas Schwinge
Hello! On Sun, Aug 06, 2006 at 01:57:34PM -0700, Roland McGrath wrote: > > Samuel Thibault, le Sat 05 Aug 2006 02:45:34 +0200, a écrit : > > > Samuel Thibault, le Sat 05 Aug 2006 02:27:35 +0200, a écrit : > > > > assert (! __spin_lock_locked (&ss->critical_section_lock)); > > > > __spin_lock (

Re: ext2fs.static: thread-cancel.c:55: hurd_thread_cancel: Assertion '! __spin_lock_locked (&ss->critical_section_lock)' failed

2006-08-06 Thread Roland McGrath
> Samuel Thibault, le Sat 05 Aug 2006 02:45:34 +0200, a écrit : > > Samuel Thibault, le Sat 05 Aug 2006 02:27:35 +0200, a écrit : > > > assert (! __spin_lock_locked (&ss->critical_section_lock)); > > > __spin_lock (&ss->critical_section_lock); > > > > > > Why should one check that a spinlock i

Re: ext2fs.static: thread-cancel.c:55: hurd_thread_cancel: Assertion '! __spin_lock_locked (&ss->critical_section_lock)' failed

2006-08-05 Thread Samuel Thibault
Samuel Thibault, le Sat 05 Aug 2006 02:45:34 +0200, a écrit : > Samuel Thibault, le Sat 05 Aug 2006 02:27:35 +0200, a écrit : > > assert (! __spin_lock_locked (&ss->critical_section_lock)); > > __spin_lock (&ss->critical_section_lock); > > > > Why should one check that a spinlock is free befor

Re: ext2fs.static: thread-cancel.c:55: hurd_thread_cancel: Assertion '! __spin_lock_locked (&ss->critical_section_lock)' failed

2006-08-04 Thread Samuel Thibault
Samuel Thibault, le Sat 05 Aug 2006 02:27:35 +0200, a écrit : > assert (! __spin_lock_locked (&ss->critical_section_lock)); > __spin_lock (&ss->critical_section_lock); > > Why should one check that a spinlock is free before taking it?? Here the > purpose is to cancel _another_ thread, so it _c

ext2fs.static: thread-cancel.c:55: hurd_thread_cancel: Assertion '! __spin_lock_locked (&ss->critical_section_lock)' failed

2006-08-04 Thread Samuel Thibault
Hi, I've met this bug again (it was reported almost 7 years ago in debian bts as #46859 and periodically noticed again), and a quick look at the code upsets me: assert (! __spin_lock_locked (&ss->critical_section_lock)); __spin_lock (&ss->critical_section_lock); Why should one check that a s

[bug #8497] GNU Mach panics if ext2fs.static is too big

2006-07-22 Thread Thomas Schwinge
Update of bug #8497 (project hurd): Status:None => Works For Me Open/Closed:Open => Closed Reproducibility:None => Once _

[bug #8497] GNU Mach panics if ext2fs.static is too big

2006-07-22 Thread Leonardo Lopes Pereira
Follow-up Comment #1, bug #8497 (project hurd): I tried to reproduce that old bug. I made some big ext2fs.static, one with 27MB, everyone worked. So, there are some possibilities to that problem. 1) It was already solved by others patchs. 2) It was never an GNU Mach bug, but a bug of an broken

[bug #17131] Different behavior of ext2fs and ext2fs.static

2006-07-17 Thread Thomas Schwinge
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=17131> Summary: Different behavior of ext2fs and ext2fs.static Project: The GNU Hurd Submitted by: tschwinge Submitted on: Monday 07/17/06 at 11:37

[bug #17130] Different behavior of ext2fs and ext2fs.static

2006-07-17 Thread Thomas Schwinge
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=17130> Summary: Different behavior of ext2fs and ext2fs.static Project: The GNU Hurd Submitted by: tschwinge Submitted on: Monday 07/17/06 at 11:35

ext2fs.static crashing at start-up (was: kernel debugger)

2006-04-03 Thread Thomas Schwinge
[CCed to bug-hurd.] On Mon, Apr 03, 2006 at 02:46:53PM +0300, Constantine Kousoulos wrote: > The problem appears when the binary /hurd/ext2fs.static executes. > > Don't i need the source file as well to debug the binary? Uh, I don't really know how I'd start to debug `ex

Re: ext2fs.static

2005-09-26 Thread Alfred M\. Szmidt
> Oh, Jeroen noted that this won't work with gcc 3.3, but with > > 3.3 it works. Really? libc's defines __attribute_used__ using `used' for gcc 3.1 and later, and `unused' for earlier. What does "won't work" mean? Does 3.3 not accept the `used' attribute, or does it still eli

Re: ext2fs.static

2005-09-24 Thread Roland McGrath
> Oh, Jeroen noted that this won't work with gcc 3.3, but with > 3.3 it > works. Really? libc's defines __attribute_used__ using `used' for gcc 3.1 and later, and `unused' for earlier. What does "won't work" mean? Does 3.3 not accept the `used' attribute, or does it still elide the definition

Re: ext2fs.static

2005-09-24 Thread Alfred M\. Szmidt
Oh, Jeroen noted that this won't work with gcc 3.3, but with > 3.3 it works. ___ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd

Re: ext2fs.static

2005-09-24 Thread Alfred M\. Szmidt
The following fixes the problem: 2005-09-24 Alfred M. Szmidt <[EMAIL PROTECTED]> * store.h (STORE_STD_CLASS): Changed attributed `unused' to `used'. --- libstore/store.h +++ libstore/store.h @@ -627,7 +627,7 @@ #define STORE_STD_CLASS(name) \ static const struct store_cla

ext2fs.static

2005-09-24 Thread Alfred M\. Szmidt
Currently, ext2fs.static fails as follows: (gdb) rr ext2fs.static: ../../src/libdiskfs/init-main.c:40: diskfs_init_main: Unexpected error: Invalid argument. Program received signal SIGABRT, Aborted. 0x080b3a0c in mach_msg_trap () at lock-intern.h:77 77 lock-intern.h: No such file or

Re: Another crash; Assertion failed in ext2fs.static

2005-04-07 Thread Michael Banck
On Thu, Apr 07, 2005 at 10:34:35AM +0200, Thomas Schwinge wrote: > Last night, while I was compiling GNU Mach, I got the following assertion > failure: > #v+ > ext2fs.static: thread_cancel.c:55: hurd_thread_cancel: Assertion `! > __spin_lock_locked (&ss->critical_secti

Another crash; Assertion failed in ext2fs.static

2005-04-07 Thread Thomas Schwinge
Hello! Last night, while I was compiling GNU Mach, I got the following assertion failure: #v+ ext2fs.static: thread_cancel.c:55: hurd_thread_cancel: Assertion `! __spin_lock_locked (&ss->critical_section_lock)' failed. #v- GNU Mach did not enter the kernel debugger, but was just han

Re: hangs with (hd0,2)/hurd/ext2fs.static

2005-02-08 Thread Shakthi Kannan
Hi, Thanks for your reply Patrick Strasser. --- Patrick Strasser <[EMAIL PROTECTED]> wrote: > > Partition check (DOS partitions): > > hd0: hd0: status timeout: status=0xff { Busy } > > hd1: disabled DMA > > hd0: drive not ready for command > > Tell us more about your IDE configuration: > Do

Re: hangs with (hd0,2)/hurd/ext2fs.static

2005-02-07 Thread Patrick Strasser
Shakthi Kannan wrote: Greetings! Rebooted to grub.At grub prompt, ("find /boot/gnumach.gz" returns (hd0,2) Once You've found gnumach.gz you've found your working partition. You can set your default partition for the following commands with "root": root (hd0,2) For the "kernel" and "module" comm

Re: hangs with (hd0,2)/hurd/ext2fs.static

2005-02-06 Thread Bas Wijnen
Alfred M. Szmidt wrote: Other suggestions for what? You didn't tell us what your current problem was (atleast, I couldn't see it). His booting stopped after saying start (hd0,2)/hurd/ext2fs.static: (hd0,2)/hurd/ext2fs.static: (as he described in his original post, and is still in

Re: hangs with (hd0,2)/hurd/ext2fs.static

2005-02-06 Thread Alfred M. Szmidt
Actually, I am typing everything in one line in the grub prompt. Why don't you use menu.lst? It will save you a bit of useless typing... See the grub manual for details. I hit an enter while posting in the mailing list for readability. Please don't, always always leave the input and

Re: hangs with (hd0,2)/hurd/ext2fs.static

2005-02-05 Thread Shakthi Kannan
ule (hd0,2)/hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed Actually, I am typing everything in one line in the grub prompt. I hit an enter while posting in the mailing list

Re: hangs with (hd0,2)/hurd/ext2fs.static

2005-02-05 Thread Alfred M. Szmidt
(hd0,2)/hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed And that is obciously _still_ wrong. It should look like this: module /hurd/ext2fs.static --multiboot-command-line=${ke

Re: hangs with (hd0,2)/hurd/ext2fs.static

2005-02-05 Thread Marco Gerards
should be one line: module (hd0,2)/hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed If you want multiple lines, end the line with a ba

Re: hangs with (hd0,2)/hurd/ext2fs.static

2005-02-05 Thread Ognyan Kulev
hd0: status timeout: status=0xff { Busy} end_request: I/O error, dev 03:00, sector 0 hd0: drive not ready for command unable to read partition table hd1: hd1s1 hd1s2 hd1s3 hd1s4 ... 2 multiboot modules ... task loaded: (hd0,2)/lib/ld.so.1 /hurd/exec start (hd0,2)/hurd/ext2fs.static: (hd0,2

hangs with (hd0,2)/hurd/ext2fs.static

2005-02-05 Thread Shakthi Kannan
ot/gnumach.gz root=device:hd1s3 -s grub>module (hd0,2)/hurd/ext2fs.static --multiboot-command-line=${kernel-command-line} --host-priv-port=${host-port} --device-master-port=${device-port} --exec-server-task=${exec-task} -T typed ${root} $(task-creat

libc0.3-dev 2.3.2.ds1-12.0.1 causes bad build of ext2fs.static

2004-05-23 Thread Ognyan Kulev
Hi, When libc0.3-dev 2.3.2.ds1-12.0.1 by Michael Banck is installed, compilation of the Hurd leads to bad ext2fs.static that always signals SEGV. (ext2fs and other executables seem fine.) When older 2.3.1-5 is installed, ext2fs.static is fine. Unfortunately, it's too difficult for

Re: Hang on ext2fs.static

2004-04-29 Thread Barry deFreese
Ognyan Kulev wrote: Barry deFreese wrote: No messages. It hangs as soon as it tries to load ext2fs.static. So now my machine is borked so no, I haven't tried it on other fs's yet. :-( Just to be sure that you won't reinstall everything: use dpkg-hurd found in root d

Re: Hang on ext2fs.static

2004-04-29 Thread Ognyan Kulev
Barry deFreese wrote: No messages. It hangs as soon as it tries to load ext2fs.static. So now my machine is borked so no, I haven't tried it on other fs's yet. :-( Just to be sure that you won't reinstall everything: use dpkg-hurd found in root directory. It's intended to

Re: Hang on ext2fs.static

2004-04-29 Thread Barry deFreese
Ognyan Kulev wrote: Barry deFreese wrote: I just recompiled Hurd with gcc-3.3 with Ogi's patches and now the machine hangs with ext2fs.static... :-( Any assertion messages? Which version of the patch did you use? Does it hang right after ext2fs.static is started or after some time?

Re: Hang on ext2fs.static

2004-04-28 Thread Ognyan Kulev
Barry deFreese wrote: I just recompiled Hurd with gcc-3.3 with Ogi's patches and now the machine hangs with ext2fs.static... :-( Any assertion messages? Which version of the patch did you use? Does it hang right after ext2fs.static is started or after some time? Have you tried

Re: Hang on ext2fs.static

2004-04-28 Thread Michael Banck
On Wed, Apr 28, 2004 at 02:38:06PM -0700, Barry deFreese wrote: > I just recompiled Hurd with gcc-3.3 with Ogi's patches and now the > machine hangs with ext2fs.static... :-( Uhm, so here's a bit of advice until the demi-gods jump in: I /seem/ to remember that people said th

Hang on ext2fs.static

2004-04-28 Thread Barry deFreese
I just recompiled Hurd with gcc-3.3 with Ogi's patches and now the machine hangs with ext2fs.static... :-( What gives? -- Barry deFreese Debian 3.0r1 "Woody" GNU/Hurd Registered Linux "Newbie" #302256 - Hurd H4XX0r wannabe "Programming today is a race between

[bugs #8497] GNU Mach panics if ext2fs.static is too big

2004-04-08 Thread Marcus Brinkmann
mary: GNU Mach panics if ext2fs.static is too big Original Submission: Hi, we have one report by an user that GNU Mach panics with a message like "unable to allocate contiguous memory" when ext2fs.static is not stripped (>13MB), while it works if ext2fs.static is stripped. The u

Bug#195360: ext2fs.static crash

2003-05-30 Thread Ognyan Kulev
Package: hurd Version: 20020804-1 Tags: unreproducible After some builds of oskit and gnumach I got the following assertion failure: ext2fs.static: thread-cancel.c:55: Assertion `! __spin_lock_locked (&ss->critical_section_lock)' failed. libc0.3 is 2.3.1-5. P.S. The most interes

Assertion failure in ext2fs.static

2001-07-12 Thread Jeff Bailey
I got a different Hurd crash than normal. I don't have any more information than this, sorry. This occured when I was doing an autobuilder run: extfs.static: thread-cancel.c:55: hurd_thread_cancel: Assertion `! __spin_lock_locked (&ss->critical_section_lock)' failed. The crash is unusual in t