Seg fault when connecting

Bug #68074 reported by Ryan Kavanagh
20
Affects Status Importance Assigned to Milestone
Curl
Unknown
Unknown
bzflag (Ubuntu)
Invalid
Undecided
Unassigned
curl (Ubuntu)
Fix Released
Undecided
Cody A.W. Somerville

Bug Description

Binary package hint: bzflag

Steps to reproduce:
 * Start bzflag
 * Join Game
 * Enter your username and password (for your callsign)
 * Select a sever from the list
 * Connect
 * Watch it crash :)

Please see the attached backtrace.

Revision history for this message
Ryan Kavanagh (ryanakca) wrote :

It seems to be something related to CURL...

Revision history for this message
Javier Jardón (jjardon) wrote :

In Kubuntu edgy

no crash for me (i have a ati FireGL8800i and I use opensource 3d ati drivers (r200))

Revision history for this message
nagy.pite (nagy.pite) wrote :

problem is the same.
ubuntu is edgy.
it happens about 4 times out of 5.

Revision history for this message
nagy.pite (nagy.pite) wrote :

sorry, forgot: it just appeared a few days before edgy became non-beta. (i used the beta one)
before it worked perfectly.

Revision history for this message
ville palo (vi64pa) wrote :

Happens on my edgy too, status changed to confirmed

Changed in bzflag:
status: Unconfirmed → Confirmed
Revision history for this message
ville palo (vi64pa) wrote :
Revision history for this message
ville palo (vi64pa) wrote :

Comments from upstream:

"This looks like a libcurl bug, please refer it to them.
As a workaround, use an older version of libcurl."

Revision history for this message
ville palo (vi64pa) wrote :

More info from upstream:

"It seems this issue has been raised with libcurl team before at
http://sourceforge.net/tracker/index.php?func=detail&aid=1523466&group_id=976&atid=100976
According to the thread it may have been fixed in cvs."

ville palo (vi64pa)
Changed in bzflag:
assignee: nobody → vi64pa
ville palo (vi64pa)
Changed in bzflag:
assignee: vi64pa → nobody
Revision history for this message
ville palo (vi64pa) wrote :

Changing curl bug status to fix committed, because fix is in curl CVS.

Changed in curl:
status: Unconfirmed → Fix Committed
Revision history for this message
ville palo (vi64pa) wrote :

Changing bzflag bug status to fix committed, because bug was in curl and fix is already in the CVS of curl

Changed in bzflag:
status: Confirmed → Fix Committed
Revision history for this message
Kolja Giedke (giedke) wrote :

Steps to reproduce:

 * Start bzflag -solo 5
 * start server
 * trying to connect
 * crashes....

Revision history for this message
Paul Zaremba (pez-launchpad) wrote :

This is still broken in Edgy and will be broken until Curl 7.15.5 is available for general use.

This bug *needs* to be reopened.

As a workaround (for people that find this bug) I downloaded the source and diff from the Feisty page for 7.15.5-1ubuntu1 and compiled the packages for edgy. bzflag doesn't crash anymore when I join games.

Changed in curl:
status: Fix Committed → Confirmed
Revision history for this message
Paul Zaremba (pez-launchpad) wrote :

curl still broken in edgy, re-opening

Changed in bzflag:
status: Fix Committed → Confirmed
Revision history for this message
Cody A.W. Somerville (cody-somerville) wrote :

Rejecting bzflag: This is a bug in curl, not bzflag.

Changed in bzflag:
status: Confirmed → Rejected
Revision history for this message
ville palo (vi64pa) wrote :

Curl will be broken in edgy forever without SRU request. For SRU request new bug report must be filled.

https://wiki.ubuntu.com/BugWorkflow?highlight=%28fix+committed%29:
"Fix Committed: A fix has been included in the code, but this code is not necessarily available in a released version."

Revision history for this message
Cody A.W. Somerville (cody-somerville) wrote :

From: Jari Sundell <sundell.software_at_gmail.com>
Date: 2006-07-16

On 7/16/06, Jari Sundell <email address hidden> wrote:
>
> On 7/16/06, Jari Sundell <email address hidden> wrote:
> >
> > Having looked at the splay code, I think the implementation could have
> > been cleaner and more robust.
> >
>
> The attached patch makes Curl_splayremovebyaddr properly handle double
> remove errors even if there's a node with the same key or the removed node
> was in the 'same' list.
>

The above changes got me closer to the point of failure. I found that
curl_multi_remove_handle sets easy->easy_handle->multi to NULL before
Curl_done is called, thus Curl_expire won't remove the timenode.

--
Rakshasa
Nyaa?

http://curl.haxx.se/mail/lib-2006-07/0169.html

---

Attaching patch that was committed to SVN upstream. Maybe we can do a sru?

Cody A.W. Somerville

Revision history for this message
Daniel Stenberg (daniel-haxx) wrote : Re: [Bug 68074] Re: Seg fault when connecting

On Mon, 27 Nov 2006, Cody A.W. Somerville wrote:

Please remove me as CC for this "bug". This is not a bug in any recent curl,
but a bug in your version of curl and we (in the curl project) fixed it a long
time ago.

Revision history for this message
Cody A.W. Somerville (cody-somerville) wrote :

Fixed in Edgy. Please file new bug report for sru.

Daniel: This should be the last e-mail you get.

Changed in curl:
status: Confirmed → Fix Released
Revision history for this message
Cody A.W. Somerville (cody-somerville) wrote :

Correction. Meant to say fix fixed in Feisty. An SRU is in progress for edgy.

Changed in curl:
assignee: nobody → cody-somerville
Revision history for this message
Michael Vogt (mvo) wrote :

I'm unable to verifiy the crash on a stock edgy install. This is important for the sru-verificaton step. Do I need to connect to a special server?

Revision history for this message
Paul Zaremba (pez-launchpad) wrote :

It's random. Sometimes it would happen if I reconnected to a server, but try four or five times in the same session and it should eventually crash.

Revision history for this message
Cody A.W. Somerville (cody-somerville) wrote :

See bug #73447 for SRU request.

Revision history for this message
catay (mertens-steven) wrote :

To simulate it you have to be a registered bzflag user. If I remember correctly it doesn't
crash with a not-registered user.

Create an account on the official forum : http://my.bzflag.org/bb/ .
You should use the callsign/password provided there in your bzflag client to connect
to a server.

Hope this helps.

Rgds.

S.

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for this additional information. I was able to verify it now.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.