Re: smsd Mac OS X crash EXC_BAD_ACCESS

helpFractal <[email protected]>
Newsgroups gmane.linux.drivers.gnokii
Message-ID <[email protected]>
Hi Daniele, 

Thanks for your reply ...


Daniele Forsi-2 wrote:
> 
> you can configure smsd to use the fake driver (model=fake) and if it
> segfaults in the same place then we can look at what the fake.c and
> atgen.c do in the same way
> 

(gdb) run -u smsd -p smsd -d online_smsd -c localhost -m mysql
Starting program: /opt/local/bin/smsd -u smsd -p smsd -d online_smsd -c
localhost -m mysql
Reading symbols for shared libraries
++++++++++++.........................................................................................................................................
done
Reading symbols for shared libraries ..... done
smsd - version 1.5.2 from gnokii 0.6.31
LOG: debug mask is 0x1
LOG: rlpdebug mask is 0x1
LOG: xdebug mask is 0x1
Config read from file /Users/fractal/.gnokiirc.
Lockfile /var/lock/LCK..cu.HUAWEIMobile-Modem is stale. Overriding it...
phone instance config:
model = fake
port = /dev/cu.HUAWEIMobile-Modem
connection = serial
initlength = default
serial_baudrate = 9600
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 120

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x000000010075d6e8
[Switching to process 35734 thread 0x1603]
0x0000000100123477 in fake_functions ()
(gdb) bt
#0  0x0000000100123477 in fake_functions ()
#1  0x00000001000cf587 in gn_gsm_initialise ()
#2  0x00000001000ce86b in gn_lib_phone_open ()
#3  0x00000001000026c6 in Connect ()
#4  0x00007fff8d6a3742 in _pthread_start ()
#5  0x00007fff8d690181 in thread_start ()
(gdb) 


Daniele Forsi-2 wrote:
> 
> you can also use valgrind to see if uninitialized memory is used, just
> add your usual command line after valgrind arguments:
> valgrind --verbose --leak-check=full /opt/local/bin/smsd -u smsd -p
> smsd -d online_smsd -c
> 

valgrind outputted a whole load of data, see attached file
http://old.nabble.com/file/p34922776/valgrind.log valgrind.log 


Daniele Forsi-2 wrote:
> 
> you can also use smsd with the file module to see if it makes any
> difference (--module file)
> 

(gdb) run -m file
Starting program: /opt/local/bin/smsd -m file
Reading symbols for shared libraries
++++++++++++.........................................................................................................................................
done
Reading symbols for shared libraries . done
smsd - version 1.5.2 from gnokii 0.6.31
You have not set spool directory, sms sending is disabled!
LOG: debug mask is 0x1
LOG: rlpdebug mask is 0x1
LOG: xdebug mask is 0x1
Config read from file /Users/fractal/.gnokiirc.
Lockfile /var/lock/LCK..foobar is stale. Overriding it...
phone instance config:
model = fake
port = foobar
connection = serial
initlength = default
serial_baudrate = 9600
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 120
Initializing...
Connecting

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x0000000100700000
[Switching to process 35780 thread 0x1203]
0x00007fff8d690c5b in bzero$VARIANT$sse2 ()
(gdb) bt
#0  0x00007fff8d690c5b in bzero$VARIANT$sse2 ()
#1  0x00000001000eeb7e in gn_data_clear ()
#2  0x00000001001234b1 in fake_functions ()
#3  0x00000001000cf587 in gn_gsm_initialise ()
#4  0x00000001000ce86b in gn_lib_phone_open ()
#5  0x00000001000026c6 in Connect ()
#6  0x00007fff8d6a3742 in _pthread_start ()
#7  0x00007fff8d690181 in thread_start ()
(gdb)
-- 
View this message in context: http://old.nabble.com/smsd-Mac-OS-X-crash-EXC_BAD_ACCESS-tp34920693p34922776.html
Sent from the gnokii-users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.