View Issue Details

IDProjectCategoryView StatusLast Update
0000585Apache 2.x Bugpublic2020-08-24 03:08
ReporterLewisR Assigned Topsmedley  
PrioritylowSeverityminorReproducibilityalways
Status closedResolutionfixed 
Summary0000585: Apache 2.2.24 2013-09-04 produces multiple TRP files with httpd -k restart - and exits
DescriptionCan't seem to get this build to restart or stop cleanly with httpd -k.
Steps To ReproduceStart Apache
Open second command prompt; change to apache2 dir
execute bin\httpd -k restart

Expected:

Apache should restart

Actual result:

System produces multiple TRP files and logs errors in error_log, then httpd exits.
Additional InformationStripped the following from my test configuration:

httpd-vhosts.conf
httpd-mpm.conf
httpd-php.conf

(No virtual hosts, MPM settings, or PHP loading.)

TRP files seem to reference DOSCALL1. A[ache error log shows:

[Sun Sep 15 11:19:46 2013] [notice] Apache/2.2.24 (OS/2) configured -- resuming normal operations
** Secondary exception occurred in TID 4 at cs:eip FFEF:0000080A **
** Exceptq report suppressed - exceptq in use by TID 3 **
** Secondary exception occurred in TID 5 at cs:eip FFEF:0000080A **
** Exceptq report suppressed - exceptq in use by TID 3 **
** Secondary exception occurred in TID 6 at cs:eip FFEF:0000080A **
** Exceptq report suppressed - exceptq in use by TID 3 **
** Secondary exception occurred in TID 7 at cs:eip FFEF:0000080A **
** Exceptq report suppressed - exceptq in use by TID 3 **
** Secondary exception occurred in TID 1 at cs:eip FFEF:0000E411 **
** Exceptq report suppressed - exceptq in use by TID 3 **
Creating 05A1_03.TRP
013] [error] (OS 10038)Socket operation on non-socket: apr_socket_accept
Creating 05A3_01.TRP
013] [error] (OS 10038)Socket operation on non-socket: apr_socket_accept
Creating 05A4_01.TRP
[Sun Sep 15 11:20:03 2013] [notice] caught SIGTERM, shutting down
Creating 059F_01.TRP

Kernel is 14.105 SMP (eCS 2.1) on non-SMP machine (ThinkPad T43p).

Snippet from attached TRP files:

 Apache2

 OS2/eCS Version: 2.45
 # of Processors: 1
 Physical Memory: 1918 mb
 Virt Addr Limit: 2048 mb
 Exceptq Version: 7.11-shl (May 8 2013)

______________________________________________________________________

 Exception C0010001 - Unknown Exception
______________________________________________________________________

 Process: J:\APPS\APACHE2\BIN\HTTPD.EXE
 PID: 5A4 (1444)
 TID: 01 (1)
 Priority: 200

 Filename: C:\OS2\DLL\DOSCALL1.DLL 05/06/2011 22:45:12 144,677
 Address: FFEF:E411 (0003:0000E411)

______________________________________________________________________

 Failing Instruction
______________________________________________________________________

 FFEF:E402 ADD [BX+SI+0x36ca], DL (0090 ca36)
 FFEF:E406 ADD [BX+SI+0x38ca], DL (0090 ca38)
 FFEF:E40A ADD [BX+SI+0x3667], DL (0090 6736)
 FFEF:E40E CALL FAR WORD [BP+DI+0x4] (ff5b 04)
 FFEF:E411>JMP FAR LARGE 0x5b:0x1ffc777c (66 ea 7c77fc1f 5b00)
 FFEF:E419 XCHG BX, BX (87db)
 FFEF:E41B NOP (90)
 FFEF:E41C PUSH EBP (66 55)

______________________________________________________________________

 Registers
______________________________________________________________________

 EAX : 7D80012F EBX : 0000EFC0 ECX : 00000007 EDX : 00000000
 ESI : 0022FD38 EDI : 297A0000
 ESP : 0025EFB4 EBP : 0022FD28 EIP : 0000E411 EFLG : 00000202
 CS : FFEF CSLIM: 0000FE29 SS : 012F SSLIM: 0000F000
 DS : 0053 ES : 0053 FS : 150B GS : 0000

 EAX : unallocated memory
 EBX : not a valid address
 ECX : not a valid address
 EDX : not a valid address
 ESI : read/write memory on this thread's stack
 EDI : unallocated memory

______________________________________________________________________

 Stack Info for Thread 01
______________________________________________________________________

        Size Base SS:SP Max Top
 16 : 00200000 011F:0000 -> 012F:EFB4 -> 0117:9000 -> 001F:0000
 32 : 00200000 00230000 -> 0025EFB4 -> 00229000 -> 00030000

______________________________________________________________________

 Call Stack
______________________________________________________________________

   EBP Address Module Obj:Offset Nearest Public Symbol
 -------- --------- -------- ------------- -----------------------
 Trap -> FFEF:E411 DOSCALL1 0003:0000E411 between UT32_TARGET + 5 and HT16_STARTUP - B

I have not yet tested on a true SMP box or on this box with the UNI or W4 kernel.
TagsNo tags attached.
Attached Files

Activities

LewisR

2013-09-15 16:04

developer   ~0002493

Just tested with 14.105 UNI, and the problem isn't quite as bad (or perhaps the exit condition was incidental under the SMP kernel). I still get a series of TRP files, but Apache does actually restart or stop, as requested.

Graceful still does not work, though:

[Sun Sep 15 11:58:49 2013] [notice] caught SIGTERM, shutting down
Creating 00B9_01.TRP
[Sun Sep 15 11:58:52 2013] [notice] Apache/2.2.24 (OS/2) configured -- resuming normal operations

(Will attach TRP files.)

psmedley

2013-09-16 02:26

administrator   ~0002495

will try and reproduce. In my initial testing after you posted to the mailing list, I couldn't reproduce and it worked as designed...

LewisR

2013-09-16 13:21

developer   ~0002496

I'll try it on my VM and see what I get. It could very well be isolated to the boot configuration on my ThinkPad. If I get the same condition in the VM, and you are also unable to reproduce, Paul, then we can close this. I'll follow up ASAP.

psmedley

2013-10-10 00:35

administrator   ~0002539

any luck in testing on other systems?

LewisR

2013-10-10 00:42

developer   ~0002540

Bored in Bali? ;-)

Last I tested (and I will again, with a clean system), graceful restart just exited for me. This was under a VM, and not my ThinkPad. I just need a couple more days to get back to test this thoroughly and take some notes before we pursue ot close this, Paul. Thanks!

LewisR

2014-04-22 03:54

developer   ~0002722

Paul,let's close this. Current 2.2 builds (2.2.27) seem to work as before with graceful restart as well as full restart (no .TRP files produced unless daemon has been running for some time - separate issue; not restart related).

psmedley

2014-04-22 04:57

administrator   ~0002723

Fixed in latest drops

Issue History

Date Modified Username Field Change
2013-09-15 15:35 LewisR New Issue
2013-09-15 15:35 LewisR File Added: rosenthal_httpd2-2-24-20130904_trp_files.zip
2013-09-15 16:04 LewisR Note Added: 0002493
2013-09-15 16:04 LewisR File Added: rosenthal_httpd2-2-24-20130904_trp_files_graceful_restart.zip
2013-09-16 02:26 psmedley Note Added: 0002495
2013-09-16 13:21 LewisR Note Added: 0002496
2013-10-10 00:35 psmedley Note Added: 0002539
2013-10-10 00:42 LewisR Note Added: 0002540
2014-04-22 03:54 LewisR Note Added: 0002722
2014-04-22 04:57 psmedley Note Added: 0002723
2014-04-22 04:57 psmedley Status new => resolved
2014-04-22 04:57 psmedley Resolution open => fixed
2014-04-22 04:57 psmedley Assigned To => psmedley
2020-08-24 03:08 psmedley Status resolved => closed