[MacPorts] #27673: ssmtp 2.62 segfaults

MacPorts noreply at macports.org
Sat Jan 15 15:48:54 PST 2011


#27673: ssmtp 2.62 segfaults
--------------------------------+-------------------------------------------
 Reporter:  jmdeldin@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.9.2                                
 Keywords:  ssmtp, segfault     |        Port:  ssmtp                                
--------------------------------+-------------------------------------------

Comment(by dmitry@…):

 Here's some more data:

 {{{
 (gdb) run
 Starting program: /Users/russo/Temp/ssmtp/ssmtp
 Reading symbols for shared libraries +++... done

 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_INVALID_ADDRESS at address: 0x0000000000800008
 0x00007fff880a5380 in strcmp ()
 (gdb) bt
 #0  0x00007fff880a5380 in strcmp ()
 #1  0x00000001000014b8 in parse_options (argc=1, argv=0x7fff5fbff960) at
 ssmtp.c:1720
 #2  0x000000010000413b in main (argc=1, argv=0x7fff5fbff960) at
 ssmtp.c:2075
 }}}

 And this is the function that is breaking everything (the if statement
 fails):
 {{{
 1720     if(strcmp(prog, "mailq") == 0) {
 1721         /* Someone wants to know the queue state... */
 1722         paq("mailq: Mail queue is empty\n");
 1723     }
 }}}

 here's where "prog" gets set:
 {{{
 2066     /* Set the globals */
 2067     prog = basename(argv[0]);
 }}}

 Any idea what might have broken it on 10.6.5/10.6.6? I know I've had this
 package running before.

-- 
Ticket URL: <https://trac.macports.org/ticket/27673#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list