Re: POST large amount of data causes segmentation fault

[email protected]
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
If posted size has exceeded, what will happen by SizeLimit?

Thanks



Gesendet mit der Telekom Mail App
<https://www.telekom.de/unterwegs/apps-und-dienste/kommunikation/telekom-e-mail?wt_mc=alias_9998_unterwegs/apps-und-dienste/telekom-email#mail-app>

-----Original-Nachricht-----
Von: Russell Lundberg <[email protected]
<mailto:[email protected]> >
Betreff: Re: POST large amount of data causes segmentation fault
Datum: 09.02.2020, 19:22 Uhr
An: Scott Alexander <[email protected]
<mailto:[email protected]> >
CC: [email protected] <[email protected]
<mailto:[email protected]> >

You might want to have a look at Apache2::SizeLimit instead 
https://perl.apache.org/docs/2.0/api/Apache2/SizeLimit.html
<https://perl.apache.org/docs/2.0/api/Apache2/SizeLimit.html>

You might decide to limit the count if numbers which get submitted with a 
single form.
--
Russell Lundberg
Latest Blog Post for Telecom Pros:  Are you stuck with a messy mobile 
network?
<https://www.linkedin.com/pulse/you-stuck-messy-mobile-network-russell-lundberg/>
Denver, Colorado +1 (808) 217-6975
Follow me on LinkedIn <https://th.linkedin.com/in/russelllundberg>  | 
Twitter <https://twitter.com/intent/follow?screen_name=telecomvoices>  | 
Let's talk
<https://app.acuityscheduling.com/schedule.php?owner=14702481&appointmentType=8878125> 
 | Subscribe to CafeTele Newsletter <https://cafetele.ck.page/newsletter>


On Sun, Feb 9, 2020 at 5:57 PM Scott Alexander <[email protected]
<mailto:[email protected]> > wrote:
  Hi,

  I meant I'm posting data from a form, javascript is collecting a series
  of numbers from a <input type=text> as a string.
  Javascript seperates each number with a '/' then I use split within Perl
  to get the list of numbers into an array.

  The length of the URL where the data is being posted to is just 
  send_message01.pl <http://send_message01.pl>
  The length of URL is fine.

  It's the length of the string being posted which causes problems. If I
  reduce it's length then it works.

  I have a <FORM> with list of users and GSM numbers. If that list is about
  600 users it has worked fine. I was testing with about 4000 users when I
  came across this problem.






  Terveisin/Regards
   
  Scott Alexander
  Asiantuntija, järjestelmät  Systems Specialist
   
  Humak
  Humanistinen ammattikorkeakoulu
  University of Applied Sciences
  www.humak.fi <http://www.humak.fi/>
   
  Tel. +358 (0)50 411 9556

  [email protected] <mailto:[email protected]>

  ----------------------------------------------------------------------
  From: Russell Lundberg <[email protected]
  <mailto:[email protected]> >
  Sent: 09 February 2020 12:12
  To: Scott Alexander <[email protected]
  <mailto:[email protected]> >
  Cc: [email protected] <mailto:[email protected]> <
  [email protected] <mailto:[email protected]> >
  Subject: Re: POST large amount of data causes segmentation fault
   
  Scott,

  Are you saying that the incoming request has a length of 42,000+
  characters?

  Apache docs say 8,192 characters is the maximum length of a URL.

  Would it be possible to reduce the length of the request until the
  segmentation fault stops occurring?
  --
  Russell Lundberg
  Latest Blog Post for Telecom Pros:  Are you stuck with a messy mobile
  network?
  <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fpulse%2Fyou-stuck-messy-mobile-network-russell-lundberg%2F&data=02%7C01%7C%7C2ca2abfe915a4ad6894708d7ad48a4fd%7Ca30a558eb6084b2c8f39a7fa426fa49d%7C0%7C0%7C637168399832316870&sdata=g2VxSCwTl1pz1jweDR6TT0qN9BUHEXxb7n06dcTV634%3D&reserved=0>
  Denver, Colorado +1 (808) 217-6975
  Follow me on LinkedIn
  <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fth.linkedin.com%2Fin%2Frusselllundberg&data=02%7C01%7C%7C2ca2abfe915a4ad6894708d7ad48a4fd%7Ca30a558eb6084b2c8f39a7fa426fa49d%7C0%7C0%7C637168399832316870&sdata=ce7xE6Pf5ZPZKpmvx%2FmyxlFTT2wDW6sKxXzAzTvuLnk%3D&reserved=0> 
   | Twitter
  <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fintent%2Ffollow%3Fscreen_name%3Dtelecomvoices&data=02%7C01%7C%7C2ca2abfe915a4ad6894708d7ad48a4fd%7Ca30a558eb6084b2c8f39a7fa426fa49d%7C0%7C0%7C637168399832326861&sdata=19UcZ%2Fy3nYBZXlQIemhpMe3Hxny1Oocvob02BSctkek%3D&reserved=0> 
   | Let's talk
  <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapp.acuityscheduling.com%2Fschedule.php%3Fowner%3D14702481%26appointmentType%3D8878125&data=02%7C01%7C%7C2ca2abfe915a4ad6894708d7ad48a4fd%7Ca30a558eb6084b2c8f39a7fa426fa49d%7C0%7C0%7C637168399832336856&sdata=X%2FX2ndBiqmihpNjNB%2FuomBiBur6OjqDrDSEzkNDheGA%3D&reserved=0> 
   | Subscribe to CafeTele Newsletter
  <https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcafetele.ck.page%2Fnewsletter&data=02%7C01%7C%7C2ca2abfe915a4ad6894708d7ad48a4fd%7Ca30a558eb6084b2c8f39a7fa426fa49d%7C0%7C0%7C637168399832336856&sdata=ka4gOUc%2FRvbgeBm%2FV63A5irCo7tkiy4DbcskuCZ8R6o%3D&reserved=0>


  On Sun, Feb 9, 2020 at 4:49 PM Scott Alexander <[email protected]
  <mailto:[email protected]> > wrote:
    Hi,

    I have in my code

    $req = Apache2::Request->new($r);

    My code gets to line 41 then causes a "child pid 13766 exit signal
    Segmentation fault (11)"

    $r->log_error("LINE 41") ;
    @number = split /\//, $req->param("numbers") ;
    $r->log_error("LINE 43") ;

    the incoming numbers contains a string of mobile numbers which in this
    test is 3900 numbers long and each number is 10-12 characters long.
    javascript tells me the length of the posted string is 42260 characters
    long.

    Any idea how to fix this problem?

    httpd -v
    Server version: Apache/2.2.15 (Unix)
    Server built:   Jun 19 2018 15:45:13

    but I get the same error on the production server which is

    Server version: Apache/2.4.6 (CentOS)
    Server built:   Aug  8 2019 11:41:18


    Terveisin/Regards
     
    Scott Alexander
    Asiantuntija, järjestelmät  Systems Specialist
     
    Humak
    Humanistinen ammattikorkeakoulu
    University of Applied Sciences
    www.humak.fi <http://www.humak.fi/>
     
    Tel. +358 (0)50 411 9556

    [email protected] <mailto:[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.