[4621] in SIPB bug reports

home help back first fref pref prev next nref lref last post

bug in pop

daemon@ATHENA.MIT.EDU (douzzer@MIT.EDU)
Tue Jun 14 01:56:41 1994

From: douzzer@MIT.EDU
Date: Tue, 14 Jun 1994 01:56:19 -0400
To: bug-sipb@MIT.EDU, jik@security.ov.com, jik@MIT.EDU


the following bug has cropped up in /afs/sipb/project/sipbsrc/src/pop/pop.c. 
i'll try to repair it myself. meantime if anyone knows why this would
be happening feel free to let me know :-).

[this is a debug run of my own software]
-* gdb inc
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.12 (rs6000-ibm-aix3.2), Copyright 1994 Free Software Foundation, Inc...
(gdb) set args -notruncate
(gdb) run
Starting program: /afs/media-lab.mit.edu/user/d/douzzer/src/mhmail/dmm/inc -notruncate

inbox 1 ? 1-8
PO7.MIT.EDU:
  66+ 13Jun lacsap > amt        New Codes<<The Garden is happy to share its codes for the537255960 804768240
inbox 2 ? 1-8
  67  13Jun boogles > bexley    An accurate description of the net... (fwd)<<<forwarding i537255960 804768240

Program received signal SIGSEGV, Segmentation fault.
0x100103b8 in memcpy ()
(gdb) bt
#0  0x100103b8 in memcpy () <--really bcopy() in the source, fyi.
#1  0x10015f84 in getline (server=0x2005e018) at pop.c:1080
#2  0x100153b8 in pop_multi_next (server=0x2005e018, line=0x2ff7c9f0) at pop.c:633
#3  0x10014f6c in pop_retrieve_next (server=0x2005e018, line=0x2ff7c9f0) at pop.c:560
#4  0x1000a628 in pop_inc_message (num=2,
    file=0x2ff7cf24 "/afs/media-lab.mit.edu/user/d/douzzer/mail/inbox/67", truncatep=0)
    at inc.c:1979
#5  0x100076c4 in process_mail () at inc.c:1372
#6  0x100021fc in main (argc=2, argv=0x2ff7f658) at inc.c:401
#7  0x1000042c in __start ()
(gdb) Q
The program is running.  Quit anyway (and kill it)? (y or n) y
-* 

[this is a run of /afs/athena/contrib/sipb/@sys/pop]
-* pop
pop:  connect -host po7
pop:  list
message size
1       2533
2       1943
3       1279
4       475
5       2125
6       1856
pop:  retr 1
Received: from ATHENA-AS-WELL.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA01168; Mon, 13 Jun 94 17:00:32 EDT
Received: from CAMELOT.AI.MIT.EDU by MIT.EDU with SMTP
        id AA26824; Mon, 13 Jun 94 17:00:20 EDT
Message-Id: <9406132100.AA26824@MIT.EDU>
Received: by martigny.ai.mit.edu
        (1.37.109.4/16.2) id AA09438; Mon, 13 Jun 94 16:59:33 -0400
From: Brian K. Zuzga <boogles@martigny.ai.mit.edu>
Subject: An accurate description of the net... (fwd)
To: bexley@MIT.EDU
Date: Mon, 13 Jun 94 16:59:33 EDT
Mailer: Elm [revision: 70.85]


<forwarding info deleted to protect the guilty>

>        Why the INTERNET is like a penis:
>
> * It can be up or down.  It's more fun when it's up, but it makes it hard
>   to get any real work done.
>
> * In the long-distant past, its only purpose was to transmit information
>   considered vital to the survival of the species.  Some people still
>   think that's the only thing it should be used for, but most folks today
>   use it for fun most of the time.
>
> * It has no conscience and no memory.  Left to its own devices, it will
>   just do the same damn dumb things it did before.
>
> * It provides a way to interact with other people.  Some people take this
>   interaction very seriously, others treat it as a lark.  Sometimes it's
>   hard to tell what kind of person you're dealing with until it's too
>   late.
>
> * If you don't apply the appropriate protective measures, it can spread
Segmentation fault
-* 


here is the full text of the message that causes the error:
-* show 23- -from boogles
(+inbox #25: 2528 bytes, -rw-------)

Received: from ATHENA-AS-WELL.MIT.EDU by po7.MIT.EDU (5.61/4.7) id AA01168; Mon, 13 Jun 94 17:00:32 EDT
Received: from CAMELOT.AI.MIT.EDU by MIT.EDU with SMTP
        id AA26824; Mon, 13 Jun 94 17:00:20 EDT
Message-Id: <9406132100.AA26824@MIT.EDU>
Received: by martigny.ai.mit.edu
        (1.37.109.4/16.2) id AA09438; Mon, 13 Jun 94 16:59:33 -0400
From: Brian K. Zuzga <boogles@martigny.ai.mit.edu>
Subject: An accurate description of the net... (fwd)
To: bexley@MIT.EDU
Date: Mon, 13 Jun 94 16:59:33 EDT
Mailer: Elm [revision: 70.85]


<forwarding info deleted to protect the guilty>

>        Why the INTERNET is like a penis:
>
> * It can be up or down.  It's more fun when it's up, but it makes it hard
>   to get any real work done.
>
> * In the long-distant past, its only purpose was to transmit information
>   considered vital to the survival of the species.  Some people still
>   think that's the only thing it should be used for, but most folks today
>   use it for fun most of the time.
>
> * It has no conscience and no memory.  Left to its own devices, it will
>   just do the same damn dumb things it did before.
>
> * It provides a way to interact with other people.  Some people take this
>   interaction very seriously, others treat it as a lark.  Sometimes it's
>   hard to tell what kind of person you're dealing with until it's too
>   late.
>
> * If you don't apply the appropriate protective measures, it can spread
>   viruses.
>
> * It has no brain of its own.  Instead, it uses yours.  If you use it too
>   much, you'll find it becomes more and more difficult to think coherently.
>
> * We attach an importance to it that is far greater than its actual size
>   and influence warrant.
>
> * If you're not careful what you do with it, it can get you in big trouble.
>
> * It has its own agenda.  Somehow, no matter how good your intentions, it
>   will warp your behavior.  Later you may ask yourself "why on earth did
>   I do that?"
>
> * Some folks have it, some don't.
>
>   Those who have it would be devastated if it were ever cut off.  They
>   think that those who don't have it are somehow inferior.  They think it
>   gives them power.  They are wrong.
>
>   Those who don't have it may agree that it's a nifty toy, but think it's
>   not worth the fuss that those who do have it make about it.  Still, many
>   of those who don't have it would like to try it.
>
> * Once you've started playing with it, it's hard to stop.  Some people
>   would just play with it all day if they didn't have work to do.

home help back first fref pref prev next nref lref last post