Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Porting to Maemo
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
philip  
View profile  
 More options May 5 2009, 5:46 am
From: philip <philiph...@gmail.com>
Date: Tue, 5 May 2009 02:46:50 -0700 (PDT)
Local: Tues, May 5 2009 5:46 am
Subject: Porting to Maemo
Hi,

I am currently trying to port wvstreams and wvdial to Maemo Linux
operating system.

I got this run time error when running it with a 3G modem. It occurs
before launching PPP daemon to connect with 3G server. Can anyone tell
me the purpose of WvTaskMan class and getcontext function?

wvdial: utils/wvtask.cc:199 WvTaskMan::WvTaskMan(): Assertion
`getcontext(&get_stack_return) == 0' failed.

Thanks in advance.

Regards,
Phi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Mason  
View profile  
 More options May 5 2009, 10:09 am
From: Joe Mason <j...@notcharles.ca>
Date: Tue, 5 May 2009 10:09:53 -0400
Local: Tues, May 5 2009 10:09 am
Subject: Re: Porting to Maemo

On Tue, May 5, 2009 at 5:46 AM, philip <philiph...@gmail.com> wrote:
> I am currently trying to port wvstreams and wvdial to Maemo Linux
> operating system.

> I got this run time error when running it with a 3G modem. It occurs
> before launching PPP daemon to connect with 3G server. Can anyone tell
> me the purpose of WvTaskMan class and getcontext function?

> wvdial: utils/wvtask.cc:199 WvTaskMan::WvTaskMan(): Assertion
> `getcontext(&get_stack_return) == 0' failed.

WvTask is a cooperative threading system, which uses getcontext and
setcontext to save and restore the state of each thread when switching
tasks.  getcontext is a standard library function - "man getcontext"
should explain how it works.

Try running wvstreams through "strace" so you can see the actual error
code returned by getcontext.

Joe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
philip  
View profile  
 More options May 6 2009, 12:20 am
From: philip <philiph...@gmail.com>
Date: Tue, 5 May 2009 21:20:17 -0700 (PDT)
Local: Wed, May 6 2009 12:20 am
Subject: Re: Porting to Maemo
Hi all, is there any workaround for getcontext on ARM platform?

Hi Joe Mason,

Thanks. I have followed your suggestion to use strace. If I got the
following output from strace, do you find any hints which will create
the run-time error I mentioned?

>> wvdial: utils/wvtask.cc:199 WvTaskMan::WvTaskMan(): Assertion `getcontext(&get_stack_return) == 0' failed.

And do you think the problem line is the following line? I am making
such a guess because makedev might be needed to create a new thread?

fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0

Regards,
Philip

On May 5, 10:09 pm, Joe Mason <j...@notcharles.ca> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Avery Pennarun  
View profile  
 More options May 6 2009, 12:39 pm
From: Avery Pennarun <apenw...@gmail.com>
Date: Wed, 6 May 2009 12:39:18 -0400
Local: Wed, May 6 2009 12:39 pm
Subject: Re: Porting to Maemo
Hi Philip,

> Hi all, is there any workaround for getcontext on ARM platform?

I didn't think we would *need* to workaround it on the ARM.  There's
no reason (that I know of) that getcontext wouldn't "just work."

If we send you a patch, can you try applying it and see what happens?

Can you try using the 'revert-wvtask' branch of wvstreams from
git://github.com/apenwarr/wvstreams.git and see if that works any
better?

> And do you think the problem line is the following line? I am making
> such a guess because makedev might be needed to create a new thread?

> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0

The "= 0" at the end means the fstat was successful.  And makedev() in
this case just means "the device object make from major=136, minor=0".

Unfortunately getcontext is not a kernel system call so the advice to
run strace won't actually help much.  But please try my above-linked
git version of wvstreams and let me know if that helps.

Thanks,

Avery


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
philip  
View profile  
 More options May 12 2009, 10:25 pm
From: philip <philiph...@gmail.com>
Date: Tue, 12 May 2009 19:25:22 -0700 (PDT)
Local: Tues, May 12 2009 10:25 pm
Subject: Re: Porting to Maemo
Thanks Avery and Joe. I solved this problem by applying Avery's patch.
The link is purposely re-cap below for complete information for
everyone.

http://groups.google.com/group/wvstreams-devel/browse_thread/thread/b...

Regards,
Philip

On May 7, 12:39 am, Avery Pennarun <apenw...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Avery Pennarun  
View profile  
 More options May 13 2009, 2:46 pm
From: Avery Pennarun <apenw...@gmail.com>
Date: Wed, 13 May 2009 14:46:31 -0400
Local: Wed, May 13 2009 2:46 pm
Subject: Re: Porting to Maemo

On Tue, May 12, 2009 at 10:25 PM, philip <philiph...@gmail.com> wrote:
> Thanks Avery and Joe. I solved this problem by applying Avery's patch.
> The link is purposely re-cap below for complete information for
> everyone.

> http://groups.google.com/group/wvstreams-devel/browse_thread/thread/b...

Hi Philip,

Thanks for confirming back.  That's a really long thread, and I
*think* the important changes discussed there were included in the
revert-wvtask branch in git.  Did you try out that branch to see if it
works without any changes?

Even if you don't use git, you can download a tarball of that version
by clicking the 'download' button at this link:
http://github.com/apenwarr/wvstreams/commits/revert-wvtask

Please let me know if that branch works for you.

Have fun,

Avery


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »