Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    UPnP IGD & PCP Service crashes and fails to start

    Plus 25.03 Develoment Snapshots
    5
    19
    786
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      netblues
      last edited by netblues

      After 4 days of operation, and without changing anything, service fails to start with stack overflow error logged
      I also saw it on previous beta but it recovered after rebooting. Now its here again.

      status is like this
      4bcc49aa-bd55-4d62-a236-71c4d073ed32-image.png

      Apr 15 12:28:04 	miniupnpd 	52599 	stack overflow detected; terminated
      Apr 15 12:28:04 	miniupnpd 	52599 	Listening for NAT-PMP/PCP traffic on port 5351
      Apr 15 12:28:04 	miniupnpd 	52599 	no HTTP IPv6 address, disabling IPv6
      Apr 15 12:28:04 	miniupnpd 	52599 	HTTP listening on port 2189
      Apr 14 19:01:42 	miniupnpd 	79415 	stack overflow detected; terminated
      Apr 14 19:01:02 	miniupnpd 	79415 	could not find redirect rule to delete eport=38450
      Apr 14 19:01:02 	miniupnpd 	79415 	could not find redirect rule to delete eport=38450
      Apr 14 19:01:02 	miniupnpd 	79415 	Failed to remove PCP mapping to 192.168.31.87:38450 UDP
      Apr 14 19:01:02 	miniupnpd 	79415 	Failed to remove PCP mapping to 192.168.31.87:38450 TCP
      Apr 14 03:43:57 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:59201
      Apr 14 03:43:57 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:60982
      Apr 13 21:31:30 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:49551
      Apr 13 21:31:30 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:52198
      Apr 13 21:31:30 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:56936
      Apr 13 21:26:41 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:49722
      Apr 13 21:26:41 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:60372
      Apr 13 21:26:41 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:49694
      Apr 13 21:18:37 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:50654
      Apr 13 21:18:37 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:49847
      Apr 13 21:18:37 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:60249
      Apr 13 20:46:56 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:50153
      Apr 13 20:46:56 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:56196
      Apr 11 20:19:36 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:62202
      Apr 11 20:19:36 	miniupnpd 	79415 	Unknown udp packet received from 192.168.41.36:55547
      Apr 11 16:49:18 	miniupnpd 	79415 	upnp_event_process_notify: connect(192.168.41.28:2869): Operation timed out
      Apr 11 16:49:10 	miniupnpd 	79415 	upnp_event_process_notify: connect(192.168.41.28:2869): Operation timed out
      Apr 11 12:07:39 	miniupnpd 	79415 	upnpevents_processfds: 0x65f7b438080, remove subscriber uuid:3e392fd3-16b4-11f0-b9f6-589cfc10ffcf after an ERROR cb: http://192.168.41.37:2869/upnp/eventing/hvhezryjus
      Apr 11 12:07:39 	miniupnpd 	79415 	upnp_event_process_notify: connect(192.168.41.37:2869): Operation timed out
      Apr 11 12:07:39 	miniupnpd 	79415 	upnpevents_processfds: 0x65f7b438000, remove subscriber uuid:3e35ef1c-16b4-11f0-b9f6-589cfc10ffcf after an ERROR cb: http://192.168.41.37:2869/upnp/eventing/wcpgizilrc
      Apr 11 12:07:39 	miniupnpd 	79415 	upnp_event_process_notify: connect(192.168.41.37:2869): Operation timed out
      Apr 11 12:07:39 	miniupnpd 	79415 	upnp_event_process_notify: connect(192.168.41.37:2869): Operation timed out
      Apr 11 06:46:29 	miniupnpd 	79415 	Listening for NAT-PMP/PCP traffic on port 5351
      Apr 11 06:46:29 	miniupnpd 	79415 	no HTTP IPv6 address, disabling IPv6
      Apr 11 06:46:29 	miniupnpd 	79415 	HTTP listening on port 2189
      Apr 11 06:44:03 	miniupnpd 	92767 	stack overflow detected; terminated
      Apr 11 06:44:03 	miniupnpd 	92767 	Listening for NAT-PMP/PCP traffic on port 5351
      Apr 11 06:44:03 	miniupnpd 	92767 	no HTTP IPv6 address, disabling IPv6
      Apr 11 06:44:03 	miniupnpd 	92767 	HTTP listening on port 2189
      Apr 11 06:43:36 	miniupnpd 	31016 	stack overflow detected; terminated
      Apr 11 06:43:36 	miniupnpd 	31016 	Listening for NAT-PMP/PCP traffic on port 5351
      Apr 11 06:43:36 	miniupnpd 	31016 	no HTTP IPv6 address, disabling IPv6
      Apr 11 06:43:36 	miniupnpd 	31016 	HTTP listening on port 2189
      Apr 11 06:42:12 	miniupnpd 	34188 	stack overflow detected; terminated
      Apr 11 06:42:12 	miniupnpd 	34188 	Listening for NAT-PMP/PCP traffic on port 5351
      Apr 11 06:42:12 	miniupnpd 	34188 	no HTTP IPv6 address, disabling IPv6
      Apr 11 06:42:12 	miniupnpd 	34188 	HTTP listening on port 2189 
      

      Also this
      Apr 15 13:01:33 kernel pid 93101 (miniupnpd), jid 0, uid 0: exited on signal 6 (core dumped)

      1 Reply Last reply Reply Quote 0
      • M
        marcosm Netgate
        last edited by

        Is that on the latest April beta?

        N 1 Reply Last reply Reply Quote 0
        • N
          netblues @marcosm
          last edited by netblues

          @marcosm
          25.03.b.20250409.2208
          I am now on 414
          Looks good, but takes some time for the issue to appear. 3-4 days.

          1 Reply Last reply Reply Quote 0
          • M
            marcosm Netgate
            last edited by

            What version where you on previously (that presumably worked)?

            N 1 Reply Last reply Reply Quote 0
            • N
              netblues @marcosm
              last edited by

              @marcosm
              24.11 long term

              1 Reply Last reply Reply Quote 0
              • M
                marcosm Netgate
                last edited by

                Any core dumps? IIRC they get saved to /root/.

                N 1 Reply Last reply Reply Quote 0
                • N
                  netblues @marcosm
                  last edited by netblues

                  @marcosm Yes, there is a 13Mbyte miniupnp.core file which compresses to 150 k

                  K 1 Reply Last reply Reply Quote 0
                  • K
                    kprovost @netblues
                    last edited by

                    @netblues Can you try this build: https://www.codepro.be/files/miniupnpd-2.3.7_2,1.pkg ?
                    It contains debug symbols and will hopefully let us figure out where miniupnpd crashes.

                    N 1 Reply Last reply Reply Quote 1
                    • N
                      netblues @kprovost
                      last edited by

                      @kprovost Installed, restarted and waiting.

                      I see two active port maps in status.

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        townsenk64 @netblues
                        last edited by

                        @netblues anything more on this? I'm having the same issue.

                        N 1 Reply Last reply Reply Quote 0
                        • N
                          netblues @townsenk64
                          last edited by

                          @townsenk64
                          I have the debug build running.
                          It didn't occur so far., but it does take a couple of days.

                          1 Reply Last reply Reply Quote 0
                          • T
                            townsenk64
                            last edited by

                            For me the service fails within two minutes after reboot generating the previously mentioned core file. Let me know if help is needed troubleshooting.

                            N 1 Reply Last reply Reply Quote 0
                            • N
                              netblues @townsenk64
                              last edited by

                              @townsenk64 Do you run the debug version?

                              T 1 Reply Last reply Reply Quote 0
                              • T
                                townsenk64 @netblues
                                last edited by

                                @netblues Not yet, I'm not exactly sure the proper way to upgrade a single package locally. I assume the pkg add command?

                                cmcdonaldC 1 Reply Last reply Reply Quote 0
                                • cmcdonaldC
                                  cmcdonald Netgate Developer @townsenk64
                                  last edited by

                                  @townsenk64 said in UPnP IGD & PCP Service crashes and fails to start:

                                  @netblues Not yet, I'm not exactly sure the proper way to upgrade a single package locally. I assume the pkg add command?

                                  pkg add -f <path to .pkg>
                                  

                                  Need help fast? https://www.netgate.com/support

                                  1 Reply Last reply Reply Quote 0
                                  • T
                                    townsenk64
                                    last edited by

                                    @kprovost said in UPnP IGD & PCP Service crashes and fails to start:

                                    https://www.codepro.be/files/miniupnpd-2.3.7_2,1.pkg

                                    I am now running the debug build. Does it contain changes other than having the debugging enabled? The reason I ask is that the service hasn't crashed almost immediately after rebooting like it did before. I will leave it running and see if it behaves.

                                    N 1 Reply Last reply Reply Quote 0
                                    • N
                                      netblues @townsenk64
                                      last edited by

                                      @townsenk64 Well actually it just has debug symbols, which means its more meaningful when looking at the dump.

                                      Most probably network conditions have changed, something has timed out and is not triggering the issue anymore.

                                      Do keep in mind that in upnp we make ports available to the wider Internet, and usually there is little control on what happens next.
                                      From a security point of view its a nightmare, but in a home scenario its too practical to ignore ;-)

                                      1 Reply Last reply Reply Quote 0
                                      • T
                                        townsenk64
                                        last edited by

                                        I rolled the system back to a previous state using the package without the debugging symbols and the service crash immediately happened again upon reboot. I then went with the shotgun approach and ran from command line.

                                        pkg clean -y
                                        pkg upgrade -f

                                        This apparently replaced/upgraded the package and the service is again running without issue.

                                        N 1 Reply Last reply Reply Quote 0
                                        • N
                                          netblues @townsenk64
                                          last edited by

                                          @townsenk64 Same here, no issues since I put the debug version.
                                          Maybe a leftover glitch from the upgrades?

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.