Hello All,
I have fixed this problem for temporarily. I got core dump in
wiretap/file_access.c file in lin 684.
> gboolean wtap_dump_close(wtap_dumper *wdh, int *err)
Parameter passed to this function at run time when we close or stop
tethereal :
> wtap_dump_close(0x0, 0x7f7f0d44)
So, the problem comes in the following line:
> if (wdh->subtype_close != NULL) {
I have just included the following line to prevent core dump.
if( ! wdh )
{
return ret;
}
Before modifiying:
wiretap/file_access.c
680 gboolean wtap_dump_close(wtap_dumper *wdh, int *err)
681 {
682 gboolean ret = TRUE;
683
684 if (wdh->subtype_close != NULL) {
After modifiying:
wiretap/file_access.c
680 gboolean wtap_dump_close(wtap_dumper *wdh, int *err)
681 {
682 gboolean ret = TRUE;
683
684 if( ! wdh )
685 {
686 return ret;
687 }
688
689 if (wdh->subtype_close != NULL) {
Now it works fine.
Thanks,
Durai.
----- Original Message -----
From: "Durai" <mail_714@xxxxxxxxxxx>
To: <ethereal-dev@xxxxxxxxxxxx>
Sent: Tuesday, June 01, 2004 8:41 AM
Subject: [Ethereal-dev] Ethereal 0.10.4 core dumped: tethereal -a
filesize:1-b 4 -w test.pcap
> Hello All,
>
> I get core dump when I try to stop( CTRL+C or kill the
> process ) tethereal with the following options on HP-UX PA 11.11 and IPF
> 11.23 . It works fine on HP-UX PA 11.23 machine.
>
> On PA 11.11,
>
> $ tethereal -a filesize:1 -b 4 -w test.pcap
> Capturing on lan0
> 33893
> Memory fault(coredump) // <CTRL+C or kill the process >
>
> On HP-UX IPF 11.23,
>
> $ tethereal -a filesize:1 -b 4 -w test.pcap
> Capturing on lan0
> 2615
> tethereal: "test_00194_20040531102059.pcap" couldn't be closed for some
> unknown reason. // <CTRL+C or kill the process >
> $
>
> On HP-UX PA 11.23, it works fine.
>
> $ tethereal -a filesize:1 -b 4 -w test.pcap
> Capturing on lan0
> 5396
>
> Thanks,
> Durai.
>
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.692 / Virus Database: 453 - Release Date: 5/28/2004
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.692 / Virus Database: 453 - Release Date: 5/28/2004