Bug 1064763

Summary: [QE] (6.4.z) standalone.sh fails to start server with debug argument on solaris 10 and HP-UX hosts
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: Scripts and CommandsAssignee: Tomas Hofman <thofman>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Kopecky <mkopecky>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbaranow, brian.stansberry, cdewolf, fnasser, jawilson, pgier, pkremens, rsvoboda, thofman
Target Milestone: CR2Keywords: Reopened
Target Release: EAP 6.4.1   
Hardware: Unspecified   
OS: Solaris   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1072228 1134802 (view as bug list) Environment:
Last Closed: 2014-03-04 19:56:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1072228, 1134802, 1207953    

Description Petr Kremensky 2014-02-13 09:26:29 UTC
Description of problem:
 I am unable to start standalone server with --debug [PORT] argument on Solaris 10 hosts. 

SunOS 5.10 Generic_142910-17 i86pc i386 i86pc
[user@host bin]$ ./standalone.sh --debug
./standalone.sh: cannot shift
[user@host bin]$ ./standalone.sh --debug 8787
./standalone.sh: bad substitution

SunOS 5.10 Generic_118833-36 sun4v sparc SUNW,Sun-Fire-T1000
[user@host bin]$ ./standalone.sh --debug
./standalone.sh: cannot shift
[user@host bin]$ ./standalone.sh --debug 8787
./standalone.sh: bad substitution

Version-Release number of selected component (if applicable):
 EAP 6.3.0.DR0

How reproducible:
 Always

Steps to Reproduce:
 1. Navigate to $JBOSS_HOME/bin and run: ./standalone.sh --debug [PORT]

Actual results:
 Server fails to start

Expected results:
 Server will start with debugger attached to $PORT (8787 if no $PORT)

Comment 1 Permaine Cheung 2014-02-13 13:50:05 UTC
Brian, please investigate. Thanks!

Comment 3 Petr Kremensky 2014-03-05 09:31:41 UTC
I am not sure that this is a duplicate of bug 1063289.

Difference:
BZ1063289
-command
[user@host bin]$ ./standalone.sh --debug 
-result
Server fails to start with
ERROR [stderr] (main) JBAS015801: Invalid option ''
-workaround
[user@host bin]$ ./standalone.sh --debug 8787
server starts with debugger attached to port 8787

BZ1064763
Solaris 10 specific
[user@host bin]$ ./standalone.sh --debug
Server fails to start with
./standalone.sh: cannot shift
[user@host bin]$ ./standalone.sh --debug 8787
Server fails to start with
./standalone.sh: bad substitution

Comment 4 Petr Kremensky 2014-03-31 12:35:09 UTC
This is also a problem on HP-UX
./standalone.sh  --debug 
fails to start a server with
./standalone.sh[28]: shift: bad number

Comment 5 Permaine Cheung 2014-03-31 12:45:31 UTC
Jason, can you please reassign accordingly? I'm not sure who can help with looking into this one. Thanks!

Comment 6 Petr Kremensky 2014-07-09 08:04:16 UTC
*** 6.3.0.ER9 ***
Solaris10:
./standalone --debug
./standalone.sh: cannot shift

./standalone --debug 7878
./standalone.sh: bad substitution

Solaris11:
./standalone --debug
./standalone.sh[28]: shift: (null): bad number

HP-UX:
./standalone --debug
./standalone.sh[28]: shift: bad number

Comment 7 Martin Swiech 2015-03-09 12:43:26 UTC
*** Bug 1199194 has been marked as a duplicate of this bug. ***

Comment 8 Tomas Hofman 2015-04-23 08:43:03 UTC
PR: https://github.com/jbossas/jboss-eap/pull/2399

Comment 9 Rostislav Svoboda 2015-04-23 12:40:31 UTC
Re-acking after "qa_ack flag reset for and jboss-eap-6.4.0 and jboss-eap-6.4.z items" cleanup.
No new test is needed, we have this covered.

Comment 10 Marek Kopecky 2015-05-15 08:41:27 UTC
Verified on EAP 6.4.1.CP.CR2

Comment 11 Petr Penicka 2017-01-17 10:00:58 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.

Comment 12 Petr Penicka 2017-01-17 10:01:04 UTC
Retroactively bulk-closing issues from released EAP 6.4 cummulative patches.