miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Starting UPnP devices daemon: MiniUPnPdSegmentation fault

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation
View previous topic :: View next topic  
Author Message
davidphiliplee



Joined: 28 Aug 2012
Posts: 8
Location: Ireland

PostPosted: Tue Sep 11, 2012 8:03 pm    Post subject: Starting UPnP devices daemon: MiniUPnPdSegmentation fault Reply with quote

Installed miniupnpd on debian (already have minissdpd + libminiupnpc5 installed.

When attempting to start the daemon I get the following error:

Code:
Starting UPnP devices daemon: MiniUPnPdSegmentation fault


Does anybody have any ideas as to what the issue may be?

I already verified the ip + subnet of allow parameter in /etc/miniupnpd/miniupnpd.conf

Much appreciated.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1394

PostPosted: Wed Sep 12, 2012 8:33 am    Post subject: Reply with quote

Hu that's pretty bad Sad

have you tried to run with gdb to find out how it crashes ?
should be
Code:
gdb --args /usr/sbin/miniupnpd -f /etc/miniupnpd/miniupnpd.conf

_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
davidphiliplee



Joined: 28 Aug 2012
Posts: 8
Location: Ireland

PostPosted: Wed Sep 12, 2012 9:58 am    Post subject: Reply with quote

Thank you so much for getting back so soon. A web link I found (http://thomas.goirand.fr/blog/?p=9) reports that MiniUPnP (1.7.3) is now fully in debian but it is not available from "deb http://ftp.debian.org/debian wheezy main contrib non-free"

all I could find was the experimental version from "deb http://ftp.debian.org/debian experimental main". I am installing armhf 1.7.4 version on a Raspberry Pi.

On install I get the following error:
Code:
[FAIL] MiniUPnPd: /etc/default/miniupnpd isn't set to START_DAEMON=1: exiting: failed!


as part of the install I made no changes to:
Code:
/etc/miniupnpd/miniupnpd.conf


I changed the following in /etc/default/miniupnpd
Code:
MiniUPnPd_LISTENING_IP=0.0.0.0
START_DAEMON=1


When I run the gbd command it reports "no debugging symbols found".

If you have any suggestions that would be great.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1394

PostPosted: Wed Sep 12, 2012 12:08 pm    Post subject: Reply with quote

davidphiliplee wrote:
Thank you so much for getting back so soon. A web link I found (http://thomas.goirand.fr/blog/?p=9) reports that MiniUPnP (1.7.3) is now fully in debian but it is not available from "deb http://ftp.debian.org/debian wheezy main contrib non-free"

all I could find was the experimental version from "deb http://ftp.debian.org/debian experimental main". I am installing armhf 1.7.4 version on a Raspberry Pi.

On install I get the following error:
Code:
[FAIL] MiniUPnPd: /etc/default/miniupnpd isn't set to START_DAEMON=1: exiting: failed!


as part of the install I made no changes to:
Code:
/etc/miniupnpd/miniupnpd.conf


I changed the following in /etc/default/miniupnpd
Code:
MiniUPnPd_LISTENING_IP=0.0.0.0
START_DAEMON=1


When I run the gbd command it reports "no debugging symbols found".

If you have any suggestions that would be great.

What is the point of setting MiniUPnPd_LISTENING_IP=0.0.0.0 ?
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
davidphiliplee



Joined: 28 Aug 2012
Posts: 8
Location: Ireland

PostPosted: Wed Sep 12, 2012 12:29 pm    Post subject: Reply with quote

I tried the IP address of my device first, but then changed it to 0.0.0.0 in case that was an open wildcard (guessing from comment in config)
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1394

PostPosted: Wed Sep 12, 2012 12:46 pm    Post subject: Reply with quote

you should supply the network address of your "internal" (LAN) network inteface.
such as 192.168.1.254
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
davidphiliplee



Joined: 28 Aug 2012
Posts: 8
Location: Ireland

PostPosted: Wed Sep 12, 2012 3:02 pm    Post subject: Reply with quote

Yes I tried that first, only afterwards did I try 0.0.0.0

Is there a way to get additional debug information out?

Thanks.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1394

PostPosted: Wed Sep 12, 2012 3:04 pm    Post subject: Reply with quote

davidphiliplee wrote:
Yes I tried that first, only afterwards did I try 0.0.0.0

Is there a way to get additional debug information out?

launch miniupnpd with -d option.
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
davidphiliplee



Joined: 28 Aug 2012
Posts: 8
Location: Ireland

PostPosted: Wed Sep 12, 2012 3:13 pm    Post subject: Reply with quote

Unfortunately "segment fault" is the only response still. I can pass any command in but it doesn't matter, looks like its not even reading command arguments.

If it is a "porting to armhf issue", I might have to wait for it to get our of experimental for 1.7.4 wheezy?

Thanks.
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1394

PostPosted: Fri Sep 14, 2012 11:19 am    Post subject: Reply with quote

To understand where the segfault comes from,
you should :
- compile from sources with -g option
- launch in gdb
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
davidphiliplee



Joined: 28 Aug 2012
Posts: 8
Location: Ireland

PostPosted: Sat Sep 15, 2012 12:26 pm    Post subject: Reply with quote

Hi,

I have created a workaround by coding directly what I was doing (SSDP m-search response and notify). Would you like the results of gdb anyhow?
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1394

PostPosted: Sat Sep 15, 2012 3:05 pm    Post subject: Reply with quote

davidphiliplee wrote:
Hi,

I have created a workaround by coding directly what I was doing (SSDP m-search response and notify). Would you like the results of gdb anyhow?

Yes, I would like to understand how the segfault happen !
_________________
Main miniUPnP author.
http://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Abraham12li



Joined: 25 Feb 2015
Posts: 1
Location: Afghanistan

PostPosted: Wed Feb 25, 2015 12:49 pm    Post subject: new title Reply with quote

Will miniupnpd work on the NAT host, which is not the gateway to the client
_________
We are the leading the world in Testking microsoft office certification best certkiller gre and toefl test prep solutions. Our northwood offers for passguide and Florida National University our selftestengine ged is very rare in IT world.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Compilation/Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.