All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] system hangs with "ifconfig eth0 down"
@ 2008-06-04 13:10 Markus Osterried
  2008-06-04 13:40 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 7+ messages in thread
From: Markus Osterried @ 2008-06-04 13:10 UTC (permalink / raw)
  To: Xenomai-core

[-- Attachment #1: Type: text/plain, Size: 682 bytes --]

Hi,
 
I am using Xenomai with pSOS-skin.
The application and the whole system crashes when I call the following
statement from a pSOS-thread:
 
system("ifconfig eth0 down");
 
Any other call to system(), e.g. system("ls") works fine.
On the other hand, if I call "ifconfig eth0 down" from a shell outside
the Xenomai-application, it works also fine.
 
I have reduced the whole application to only one pSOS-thread which only
call system(), it crashes.
If I call system() in the main() function before creating/starting the
pSOS-thread, it works fine.
 
Anybody any idea why this call to system() doesn't work from inside the
application?
 
Thanks.
 
Markus
 

[-- Attachment #2: Type: text/html, Size: 2494 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] system hangs with "ifconfig eth0 down"
  2008-06-04 13:10 [Xenomai-core] system hangs with "ifconfig eth0 down" Markus Osterried
@ 2008-06-04 13:40 ` Gilles Chanteperdrix
  2008-06-04 14:35   ` Markus Osterried
  0 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2008-06-04 13:40 UTC (permalink / raw)
  To: Markus Osterried; +Cc: Xenomai-core

On Wed, Jun 4, 2008 at 3:10 PM, Markus Osterried
<markus.osterried@domain.hid> wrote:
> Hi,
>
> I am using Xenomai with pSOS-skin.
> The application and the whole system crashes when I call the following
> statement from a pSOS-thread:
>
> system("ifconfig eth0 down");
>
> Any other call to system(), e.g. system("ls") works fine.
> On the other hand, if I call "ifconfig eth0 down" from a shell outside the
> Xenomai-application, it works also fine.
>
> I have reduced the whole application to only one pSOS-thread which only call
> system(), it crashes.
> If I call system() in the main() function before creating/starting the
> pSOS-thread, it works fine.
>
> Anybody any idea why this call to system() doesn't work from inside the
> application?

A similar issue has been fixed in recent I-pipe patches. Could you try
a more recent I-pipe patch ?

-- 
 Gilles


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] system hangs with "ifconfig eth0 down"
  2008-06-04 13:40 ` Gilles Chanteperdrix
@ 2008-06-04 14:35   ` Markus Osterried
  2008-06-04 14:54     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 7+ messages in thread
From: Markus Osterried @ 2008-06-04 14:35 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: Xenomai-core

Hi,

thank you for the fast response.
Can you give me a hint which patch this is?
We use kernel 2.6.18 and ipipe 1.5-01, which I think is the latest for
this kernel.
We could backport the ipipe patch, but we don't want to change the
kernel.
Thanks.

Markus



-----Original Message-----
From: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Sent: Mittwoch, 4. Juni 2008 15:40
To: Markus Osterried
Cc: Xenomai-core@domain.hid
Subject: Re: [Xenomai-core] system hangs with "ifconfig eth0 down"

On Wed, Jun 4, 2008 at 3:10 PM, Markus Osterried
<markus.osterried@domain.hid> wrote:
> Hi,
>
> I am using Xenomai with pSOS-skin.
> The application and the whole system crashes when I call the following

> statement from a pSOS-thread:
>
> system("ifconfig eth0 down");
>
> Any other call to system(), e.g. system("ls") works fine.
> On the other hand, if I call "ifconfig eth0 down" from a shell outside

> the Xenomai-application, it works also fine.
>
> I have reduced the whole application to only one pSOS-thread which 
> only call system(), it crashes.
> If I call system() in the main() function before creating/starting the

> pSOS-thread, it works fine.
>
> Anybody any idea why this call to system() doesn't work from inside 
> the application?

A similar issue has been fixed in recent I-pipe patches. Could you try a
more recent I-pipe patch ?

--
 Gilles


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] system hangs with "ifconfig eth0 down"
  2008-06-04 14:35   ` Markus Osterried
@ 2008-06-04 14:54     ` Gilles Chanteperdrix
  2008-06-04 15:09       ` Markus Osterried
  0 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2008-06-04 14:54 UTC (permalink / raw)
  To: Markus Osterried; +Cc: Xenomai-core

On Wed, Jun 4, 2008 at 4:35 PM, Markus Osterried
<markus.osterried@domain.hid> wrote:
> Hi,
>
> thank you for the fast response.
> Can you give me a hint which patch this is?
> We use kernel 2.6.18 and ipipe 1.5-01, which I think is the latest for
> this kernel.
> We could backport the ipipe patch, but we don't want to change the
> kernel.
> Thanks.

Could you try with the latest kernel first ? We will tell you what to
backport if this solves your issue.

-- 
 Gilles


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] system hangs with "ifconfig eth0 down"
  2008-06-04 14:54     ` Gilles Chanteperdrix
@ 2008-06-04 15:09       ` Markus Osterried
  2008-06-04 16:40         ` Gilles Chanteperdrix
  2008-06-04 16:59         ` Philippe Gerum
  0 siblings, 2 replies; 7+ messages in thread
From: Markus Osterried @ 2008-06-04 15:09 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: Xenomai-core

Hi,

our kernel (along with the device drivers) is specifically adapted to
our embedded system, it would be a huge bunch of work to change the
kernel.
I think to do the ipipe backport is a lot easier.

Markus


-----Original Message-----
From: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Sent: Mittwoch, 4. Juni 2008 16:55
To: Markus Osterried
Cc: Xenomai-core@domain.hid
Subject: Re: [Xenomai-core] system hangs with "ifconfig eth0 down"

On Wed, Jun 4, 2008 at 4:35 PM, Markus Osterried
<markus.osterried@domain.hid> wrote:
> Hi,
>
> thank you for the fast response.
> Can you give me a hint which patch this is?
> We use kernel 2.6.18 and ipipe 1.5-01, which I think is the latest for

> this kernel.
> We could backport the ipipe patch, but we don't want to change the 
> kernel.
> Thanks.

Could you try with the latest kernel first ? We will tell you what to
backport if this solves your issue.

--
 Gilles


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] system hangs with "ifconfig eth0 down"
  2008-06-04 15:09       ` Markus Osterried
@ 2008-06-04 16:40         ` Gilles Chanteperdrix
  2008-06-04 16:59         ` Philippe Gerum
  1 sibling, 0 replies; 7+ messages in thread
From: Gilles Chanteperdrix @ 2008-06-04 16:40 UTC (permalink / raw)
  To: Markus Osterried; +Cc: Xenomai-core

On Wed, Jun 4, 2008 at 5:09 PM, Markus Osterried
<markus.osterried@domain.hid> wrote:
> Hi,
>
> our kernel (along with the device drivers) is specifically adapted to
> our embedded system, it would be a huge bunch of work to change the
> kernel.
> I think to do the ipipe backport is a lot easier.

I do not have time to do a git diff right now, but you can find the
changes yourself by looking into the latest patches for the changes in
include/linux/mm.h and mm/memory.c


-- 
 Gilles


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] system hangs with "ifconfig eth0 down"
  2008-06-04 15:09       ` Markus Osterried
  2008-06-04 16:40         ` Gilles Chanteperdrix
@ 2008-06-04 16:59         ` Philippe Gerum
  1 sibling, 0 replies; 7+ messages in thread
From: Philippe Gerum @ 2008-06-04 16:59 UTC (permalink / raw)
  To: Markus Osterried; +Cc: Xenomai-core

Markus Osterried wrote:
> Hi,
> 
> our kernel (along with the device drivers) is specifically adapted to
> our embedded system, it would be a huge bunch of work to change the
> kernel.
> I think to do the ipipe backport is a lot easier.
>

http://www.denx.de/cgi-bin/gitweb.cgi?p=ipipe-2.6.git;a=shortlog;h=refs/heads/ipipe-2.6.24-noarch

Have a look at recent Gilles's fixes impacting mm/, including the kmap_atomic() one.

> Markus
> 
> 
> -----Original Message-----
> From: Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org] 
> Sent: Mittwoch, 4. Juni 2008 16:55
> To: Markus Osterried
> Cc: Xenomai-core@domain.hid
> Subject: Re: [Xenomai-core] system hangs with "ifconfig eth0 down"
> 
> On Wed, Jun 4, 2008 at 4:35 PM, Markus Osterried
> <markus.osterried@domain.hid> wrote:
>> Hi,
>>
>> thank you for the fast response.
>> Can you give me a hint which patch this is?
>> We use kernel 2.6.18 and ipipe 1.5-01, which I think is the latest for
> 
>> this kernel.
>> We could backport the ipipe patch, but we don't want to change the 
>> kernel.
>> Thanks.
> 
> Could you try with the latest kernel first ? We will tell you what to
> backport if this solves your issue.
> 
> --
>  Gilles
> 
> _______________________________________________
> Xenomai-core mailing list
> Xenomai-core@domain.hid
> https://mail.gna.org/listinfo/xenomai-core
> 


-- 
Philippe.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-06-04 16:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-04 13:10 [Xenomai-core] system hangs with "ifconfig eth0 down" Markus Osterried
2008-06-04 13:40 ` Gilles Chanteperdrix
2008-06-04 14:35   ` Markus Osterried
2008-06-04 14:54     ` Gilles Chanteperdrix
2008-06-04 15:09       ` Markus Osterried
2008-06-04 16:40         ` Gilles Chanteperdrix
2008-06-04 16:59         ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.