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?
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?
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.
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?
> 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?
> 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.
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.
> 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.
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.
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?