It may be an endless loop which exhausts the process stack.

Edgar, could you please run nightly with -o xtrace and PS4='+$LINENO+
' to get line numbers, i.e. env PS4='+$LINENO+ ' /bin/ksh93 -o
xtrace./nightly -t nightly.sh

Olga

On Wed, Mar 3, 2010 at 4:40 PM, Liane Praza <liane.praza at sun.com> wrote:
> ksh93 folks -- can you help Edgar debug his ksh core?
>
> On 03/ 3/10 02:03 AM, Edgar Liu wrote:
>>
>> Hello Liane,
>>
>> I reinstall OpenSolaris b133 and install package
>> developer/opensolaris/osnet, but I still get core segment fault of ksh.
>> Could you please point me to someone who is expect at this?
>>
>> Another question is where to find log file when running nightly? nightly
>> didn't create log directory under workspace as before.
>>
>> admin at opensolaris:/build/admin/audiong_audiohd$ ls -l
>> total 3
>> drwxr-xr-x 2 admin staff 15 Mar 3 21:43 exception_lists
>> drwxr-xr-x 4 admin staff 4 Mar 3 21:43 usr
>
> I'm guessing that's because ksh coredumped trying to execute nightly, and
> nightly didn't get to do anything...
>
> liane
>
>> admin at opensolaris:/build/admin/audiong_audiohd/usr/src/tools/scripts$
>> pstack core | more
>> core 'core' of 13307: /bin/ksh -p ./nightly -t nightly.sh
>> fffffd7ffefd0d5f sfvprintf () + 17
>> fffffd7ffefc7f7d sfvprints () + 65
>> fffffd7ffefc8071 sfprints () + 89
>> fffffd7ffef823ff init () + 4df
>> fffffd7ffef8e00b _ast_optget () + 223
>> fffffd7fff11059f b_unall () + 8f
>> fffffd7fff110508 b_unset () + 10
>> fffffd7fff172607 sh_exec () + 308f
>> fffffd7fff171253 sh_exec () + 1cdb
>> fffffd7fff16f0ef sh_eval () + 287
>> fffffd7fff10312d b_dot_cmd () + 535
>> fffffd7fff172607 sh_exec () + 308f
>> fffffd7fff17066c sh_exec () + 10f4
>> fffffd7fff17068d sh_exec () + 1115
>> fffffd7fff171253 sh_exec () + 1cdb
>> fffffd7fff16f0ef sh_eval () + 287
>> fffffd7fff10312d b_dot_cmd () + 535
>> fffffd7fff172607 sh_exec () + 308f
>> fffffd7fff17066c sh_exec () + 10f4
>> fffffd7fff17068d sh_exec () + 1115
>> fffffd7fff171253 sh_exec () + 1cdb
>> fffffd7fff16f0ef sh_eval () + 287
>> fffffd7fff10312d b_dot_cmd () + 535
>> fffffd7fff172607 sh_exec () + 308f
>> fffffd7fff17066c sh_exec () + 10f4
>> fffffd7fff17068d sh_exec () + 1115
>> fffffd7fff171253 sh_exec () + 1cdb
>> fffffd7fff16f0ef sh_eval () + 287
>> fffffd7fff10312d b_dot_cmd () + 535
>> fffffd7fff172607 sh_exec () + 308f
>> fffffd7fff17066c sh_exec () + 10f4
>> fffffd7fff17068d sh_exec () + 1115
>> fffffd7fff171253 sh_exec () + 1cdb
>> fffffd7fff16f0ef sh_eval () + 287
>>
>> Liane Praza ??:
>>>
>>> On 03/ 1/10 07:03 PM, Edgar Liu wrote:
>>>>
>>>> When I run navada, nightly could complete, but OpenSolaris always fail.
>>>
>>> That's very strange then -- the gate machines run OpenSolaris and
>>> build ON every night.
>>>
>>>> Just to make clear, after OpenSolaris b133 installation, steps in
>>>> http://src.opensolaris.org/source/xref/pkg/on_ips/usr/src/pkg/README.pkg
>>>> is enough for building? Is there any other prerequisite? Like installing
>>>> some packages?
>>>
>>> Yes, but not having them should cause failures, not coredumps. Here
>>> are instructions
>>> http://hub.opensolaris.org/bin/view/Project+indiana/building_on
>>>
>>>>
>>>> I could re-install OpenSolaris, do it again, and mail you the core file
>>>> if still failed.
>>>
>>> I won't be the best person to debug it. The folks on
>>> ksh93-integration-discuss at opensolaris.org would be.
>>>>
>>>> Thanks,
>>>> Edgar
>>>>
>>>> Liane Praza ??:
>>>>>
>>>>> On 02/28/10 11:27 PM, Edgar Liu wrote:
>>>>>>
>>>>>> Hi Liane,
>>>>>>
>>>>>> Could you please help me on this issue?
>>>>>
>>>>> Sorry that I lost this mail before. :(
>>>>>
>>>>> You're just doing a build of ON on OpenSolaris and ksh is coredumping
>>>>> in nightly? Most importantly: does this happen when you build the ON
>>>>> gate on this system too?
>>>>>
>>>>> We certainly haven't changed ksh itself and should be incapable of
>>>>> changing nightly so that it cause ksh itself to coredump. If you can
>>>>> reproduce this with current bits, it'd be good to get the folks over
>>>>> at ksh93-integration-discuss to take a look at the core.
>>>>>
>>>>>>>
>>>>>>> I start over again by your new guide, but still failed. My system is
>>>>>>> in SWAN, if you need SSH access, please let me know.
>>>>>>>
>>>>>>> The steps I did are list as below:
>>>>>>> 1. Install OpenSolaris b132
>>>>>>> admin at opensolaris:~$ uname -a
>>>>>>> SunOS opensolaris 5.11 snv_132 i86pc i386 i86pc Solaris
>>>>>>> 2. hg clone ON codes
>>>>>>> hg clone ssh://anon at hg.opensolaris.org/hg/pkg/on_ips
>>>>>>> hg clone ssh://mrliberal.central.sun.com//export/gates/on-ips-closed
>>>>>>> on_ips/usr/closed
>>>>>>> 3. ws /build/zl202676/on_ips
>>>>>>> admin at opensolaris:/build/admin/on_ips$ usr/src/tools/scripts/ws
>>>>>>> /build/admin/on_ips
>>>>>>>
>>>>>>> Workspace : /build/admin/on_ips
>>>>>>> Workspace Parent : ssh://anon at hg.opensolaris.org/hg/pkg/on_ips
>>>>>>> Proto area ($ROOT) : /build/admin/on_ips/proto/root_i386
>>>>>>> Root of source ($SRC) : /build/admin/on_ips/usr/src
>>>>>>> Root of test source ($TSRC) : /build/admin/on_ips/usr/ontest
>>>>>>> Prepended to PATH : /build/admin/on_ips/usr/src/tools/scripts
>>>>>>> Current directory ($PWD) : /build/admin/on_ips
>>>>>>> 4. do nightly
>>>>>>> admin at opensolaris:/build/admin/on_ips/usr/src/tools/scripts$
>>>>>>> ./nightly
>>>>>>> nightly.sh
>>>>>>> Segmentation Fault (core dumped)
>>>>>>> admin at opensolaris:/build/admin/on_ips/usr/src/tools/scripts$ pstack
>>>>>>> core | head -30
>>>>>>> core 'core' of 6899: /bin/ksh -p ./nightly nightly.sh
>>>>>>> fffffd7ffefc0d5f sfvprintf () + 17
>>>>>>> fffffd7ffefb7f7d sfvprints () + 65
>>>>>>> fffffd7ffefb8071 sfprints () + 89
>>>>>>> fffffd7ffef723ff init () + 4df
>>>>>>> fffffd7ffef7e00b _ast_optget () + 223
>>>>>>> fffffd7fff10059f b_unall () + 8f
>>>>>>> fffffd7fff100508 b_unset () + 10
>>>>>>> fffffd7fff162607 sh_exec () + 308f
>>>>>>> fffffd7fff161253 sh_exec () + 1cdb
>>>>>>> fffffd7fff15f0ef sh_eval () + 287
>>>>>>> fffffd7fff0f312d b_dot_cmd () + 535
>>>>>>> fffffd7fff162607 sh_exec () + 308f
>>>>>>> fffffd7fff16066c sh_exec () + 10f4
>>>>>>> fffffd7fff16068d sh_exec () + 1115
>>>>>>> fffffd7fff161253 sh_exec () + 1cdb
>>>>>>> fffffd7fff15f0ef sh_eval () + 287
>>>>>>> fffffd7fff0f312d b_dot_cmd () + 535
>>>>>>> fffffd7fff162607 sh_exec () + 308f
>>>>>>> fffffd7fff16066c sh_exec () + 10f4
>>>>>>> fffffd7fff16068d sh_exec () + 1115
>>>>>>> fffffd7fff161253 sh_exec () + 1cdb
>>>>>>> fffffd7fff15f0ef sh_eval () + 287
>>>>>>> fffffd7fff0f312d b_dot_cmd () + 535
>>>>>>> fffffd7fff162607 sh_exec () + 308f
>>>>>>> fffffd7fff16066c sh_exec () + 10f4
>>>>>>> fffffd7fff16068d sh_exec () + 1115
>>>>>>> fffffd7fff161253 sh_exec () + 1cdb
>>>>>>> fffffd7fff15f0ef sh_eval () + 287
>>>>>>> fffffd7fff0f312d b_dot_cmd () + 535
>>>>>
>>>>> liane
>>>>>
>>>>
>>>
>>
>
> _______________________________________________
> ksh93-integration-discuss mailing list
> ksh93-integration-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanovska at gmail.com   \-`\-'----.
 `'-..-| /     Solaris/BSD//C/C++ programmer   \ |-..-'`
      /\/\                                     /\/\
      `--`                                      `--`

Reply via email to