gtk-gnutella-devel Digest, Vol 29, Issue 4

View: New views
1 Messages — Rating Filter:   Alert me  

gtk-gnutella-devel Digest, Vol 29, Issue 4

by gtk-gnutella-devel-request :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Send gtk-gnutella-devel mailing list submissions to
        gtk-gnutella-devel@...

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel
or, via email, send a message with subject or body 'help' to
        gtk-gnutella-devel-request@...

You can reach the person managing the list at
        gtk-gnutella-devel-owner@...

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-gnutella-devel digest..."


Today's Topics:

   1. Re:  Crash at startup (Raphael Manfredi)
   2. Re:  Crash at startup (Christian Biere)
   3. Re:  Crash at startup (Raphael Manfredi)
   4. Re:  Crash at startup (Christian Biere)
   5. Re:  Crash at startup (Raphael Manfredi)
   6. Re:  Crash at startup (Hauke Hachmann)
   7. Re:  Crash at startup (Christian Biere)
   8. Re:  Crash at startup (Raphael Manfredi)


----------------------------------------------------------------------

Message: 1
Date: Fri, 29 May 2009 19:38:56 +0000 (UTC)
From: Raphael_Manfredi@... (Raphael Manfredi)
Subject: Re: [gtk-gnutella-devel] Crash at startup
To: gtk-gnutella-devel@...
Message-ID: <gvpdkg$v79$1@...>
Content-Type: text/plain; charset="iso-8859-1"

Quoting Hauke Hachmann <haxe@...> from ml.softs.gtk-gnutella.devel:
:On Friday 29 May 2009, Christian Biere wrote:
:> This is probably fixed in SVN since r16807 now.
:
:Nope, the newest revision (16813) still crashes on startup. But with a
:different error message this time:
:
:FATAL: Assertion failure in vmm.c:2311: "amount != 0"

Sorry, fixed in r16815.

Raphael



------------------------------

Message: 2
Date: Fri, 29 May 2009 21:46:38 +0200
From: Christian Biere <christianbiere@...>
Subject: Re: [gtk-gnutella-devel] Crash at startup
To: gtk-gnutella-devel@...
Message-ID: <20090529194638.GC22203@...>
Content-Type: text/plain; charset=utf-8

Hauke Hachmann wrote:
> On Friday 29 May 2009, Christian Biere wrote:
> > This is probably fixed in SVN since r16807 now.

> Nope, the newest revision (16813) still crashes on startup.

Indeed, I can still reproduce the issues with Help->FAQ but
it takes a bit longer than before.

> But with a different error message this time:
> FATAL: Assertion failure in vmm.c:2311: "amount != 0"

I couldn't reproduce this. Not even on a 32-bit *inux machine.
You're using gtk-gnutella on a 64-bit *inux machine, right?

I suspect this might be have to do with src/lib/halloc.c which
uses a pagetable for 32-bit systems but a less efficient hashtable
for other systems.

--
Christian



------------------------------

Message: 3
Date: Fri, 29 May 2009 20:02:34 +0000 (UTC)
From: Raphael_Manfredi@... (Raphael Manfredi)
Subject: Re: [gtk-gnutella-devel] Crash at startup
To: gtk-gnutella-devel@...
Message-ID: <gvpf0q$3h9$1@...>
Content-Type: text/plain; charset="iso-8859-1"

Quoting Christian Biere <christianbiere@...> from ml.softs.gtk-gnutella.devel:
:Hauke Hachmann wrote:
:> On Friday 29 May 2009, Christian Biere wrote:
:> > This is probably fixed in SVN since r16807 now.
:
:> Nope, the newest revision (16813) still crashes on startup.
:
:Indeed, I can still reproduce the issues with Help->FAQ but
:it takes a bit longer than before.

This is because vmm_munmap(), in its present form, was wrong.  I could
swear I had written it correctly, otherwise it's a stupid mistake, sorry.

Please test with r16816.

Raphael



------------------------------

Message: 4
Date: Fri, 29 May 2009 22:43:39 +0200
From: Christian Biere <christianbiere@...>
Subject: Re: [gtk-gnutella-devel] Crash at startup
To: gtk-gnutella-devel@...
Message-ID: <20090529204339.GA20398@...>
Content-Type: text/plain; charset=utf-8

Raphael Manfredi wrote:

> Quoting Christian Biere <christianbiere@...> from ml.softs.gtk-gnutella.devel:
> :Hauke Hachmann wrote:
> :> On Friday 29 May 2009, Christian Biere wrote:
> :> > This is probably fixed in SVN since r16807 now.
> :
> :> Nope, the newest revision (16813) still crashes on startup.
> :
> :Indeed, I can still reproduce the issues with Help->FAQ but
> :it takes a bit longer than before.
>
> This is because vmm_munmap(), in its present form, was wrong.  I could
> swear I had written it correctly, otherwise it's a stupid mistake, sorry.

This was actually my mistake. I don't like testing against '-1' when the
only successful return value is zero. I added a warning in case of failure
now, which would have made this inverted logic of mine obvious sooner.

I doubt this fixes Hauke's issue though. The assertion failure seems to
imply that mmap() didn't like the hint.

--
Christian



------------------------------

Message: 5
Date: Fri, 29 May 2009 20:52:42 +0000 (UTC)
From: Raphael_Manfredi@... (Raphael Manfredi)
Subject: Re: [gtk-gnutella-devel] Crash at startup
To: gtk-gnutella-devel@...
Message-ID: <gvphuq$8jg$1@...>
Content-Type: text/plain; charset="iso-8859-1"

Quoting Christian Biere <christianbiere@...> from ml.softs.gtk-gnutella.devel:
:I doubt this fixes Hauke's issue though. The assertion failure seems to
:imply that mmap() didn't like the hint.

Only he can tell that, but my guess is that the hint was falling in a
newly mapped region that was not loaded in the kernel pmap, and this
triggered a reload.  Then it hit my bug whereby I called vmm_reserve_stack(0)
and forgot to move down the pre-condition to the region where we have no
kernel map loaded in that vmm_reserve_stack() routine.

What made me look at vmm_munmap() was the behaviour you described, that
was working for me previously.  I disabled locally my kernel map loading,
hit "Help -> FAQ" and boom.  I had the bug.

Raphael



------------------------------

Message: 6
Date: Fri, 29 May 2009 23:37:11 +0200
From: Hauke Hachmann <haxe@...>
Subject: Re: [gtk-gnutella-devel] Crash at startup
To: gtk-gnutella-devel@...
Message-ID: <200905292337.11528.haxe@...>
Content-Type: Text/Plain;  charset="iso-8859-1"

On Friday 29 May 2009, Christian Biere wrote:
> I couldn't reproduce this. Not even on a 32-bit *inux machine.
> You're using gtk-gnutella on a 64-bit *inux machine, right?

Correct, I am using x86-64 Linux (current Debian "testing", which means
software versions roughly being: kernel 2.6.26, glibc 2.9, GCC 4.3.3).

On Friday 29 May 2009, Christian Biere wrote:
> I doubt this fixes Hauke's issue though.

Again correct (unfortunately). Revision 16818 still crashes at startup.
The message this time:

FATAL: Assertion failure in vmm.c:755: "foreign"

Hauke




------------------------------

Message: 7
Date: Fri, 29 May 2009 23:46:05 +0200
From: Christian Biere <christianbiere@...>
Subject: Re: [gtk-gnutella-devel] Crash at startup
To: gtk-gnutella-devel@...
Message-ID: <20090529214605.GA8504@...>
Content-Type: text/plain; charset=utf-8

Hauke Hachmann wrote:

> On Friday 29 May 2009, Christian Biere wrote:
> > I couldn't reproduce this. Not even on a 32-bit *inux machine.
> > You're using gtk-gnutella on a 64-bit *inux machine, right?
>
> Correct, I am using x86-64 Linux (current Debian "testing", which means
> software versions roughly being: kernel 2.6.26, glibc 2.9, GCC 4.3.3).
>
> On Friday 29 May 2009, Christian Biere wrote:
> > I doubt this fixes Hauke's issue though.
>
> Again correct (unfortunately). Revision 16818 still crashes at startup.
> The message this time:
>
> FATAL: Assertion failure in vmm.c:755: "foreign"

Could you provide a stack trace and a cat of /proc/self/maps?
Maybe any of it gives some obvious glue.

--
Christian



------------------------------

Message: 8
Date: Fri, 29 May 2009 22:09:22 +0000 (UTC)
From: Raphael_Manfredi@... (Raphael Manfredi)
Subject: Re: [gtk-gnutella-devel] Crash at startup
To: gtk-gnutella-devel@...
Message-ID: <gvpmei$jd4$1@...>
Content-Type: text/plain; charset="iso-8859-1"

Quoting Christian Biere <christianbiere@...> from ml.softs.gtk-gnutella.devel:
:Hauke Hachmann wrote:
:> On Friday 29 May 2009, Christian Biere wrote:
:> > I couldn't reproduce this. Not even on a 32-bit *inux machine.
:> > You're using gtk-gnutella on a 64-bit *inux machine, right?
:>
:> Correct, I am using x86-64 Linux (current Debian "testing", which means
:> software versions roughly being: kernel 2.6.26, glibc 2.9, GCC 4.3.3).
:>
:> On Friday 29 May 2009, Christian Biere wrote:
:> > I doubt this fixes Hauke's issue though.
:>
:> Again correct (unfortunately). Revision 16818 still crashes at startup.
:> The message this time:
:>
:> FATAL: Assertion failure in vmm.c:755: "foreign"
:
:Could you provide a stack trace and a cat of /proc/self/maps?
:Maybe any of it gives some obvious glue.

And please, could you turn on vmm_debug to 1 and show the last "VMM" messages
before the crash?

Thanks,
Raphael



------------------------------

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 

------------------------------

_______________________________________________
gtk-gnutella-devel mailing list
gtk-gnutella-devel@...
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel


End of gtk-gnutella-devel Digest, Vol 29, Issue 4
*************************************************